Skip to content

Instantly share code, notes, and snippets.

Slash Commands

The following are some notes taken while testing and intercepting requests from the Zed Assistant Panel (Zed version 0.150.4) to their server hosting Claude 3.5 Sonnet model.

@itsfrank
itsfrank / codecompanion-save.lua
Last active August 21, 2025 03:23
Snippet to add the ability to save/load CodeCompanion chats in neovim
-- add 2 commands:
-- CodeCompanionSave [space delimited args]
-- CodeCompanionLoad
-- Save will save current chat in a md file named 'space-delimited-args.md'
-- Load will use a telescope filepicker to open a previously saved chat
-- create a folder to store our chats
local Path = require("plenary.path")
local data_path = vim.fn.stdpath("data")
local save_folder = Path:new(data_path, "cc_saves")