firefly-hefeng/VESTI-SKILLS
Open agent skills by VESTI: vesti-memory and vesti-handoff
VESTI Skills – Cross‑agent local memory for coding assistants
What it is – VESTI is a set‑of open‑source components that collect the chat histories of local AI‑powered coding assistants (Codex, Claude Code, Kimi Code, Cursor, Qoder, WorkBuddy, Trae, …) and store them in a single SQLite database. A Skill (plugin) and a read‑only MCP (Message‑Control‑Protocol) server let each assistant retrieve the relevant past turns, files, or project‑level context on demand, so you can switch agents or start a new session without re‑explaining everything.
Core pieces
| Package / Skill | Role |
|---|---|
@vesti/memory (packages/vesti-memory) |
CLI that installs the Skill, registers the MCP, starts the background capture daemon, and provides diagnostic commands (status, sync, doctor). |
@vesti/capture-runtime |
Daemon that watches the local storage of supported assistants, extracts conversation records, and writes them to the shared SQLite DB. |
@vesti/mcp |
Simple stdio‑based read‑only server that the Skill calls to query the DB (search sessions, files, timelines, etc.). |
@vesti/memory-core |
SQLite schema, migrations and low‑level retrieval primitives used by the daemon and MCP. |
@vesti/search-files-core |
Stand‑alone logic for locating files that ever appeared in a conversation (no DB needed). |
vesti-memory skill |
Encodes the “when‑and‑how” to call the MCP (search, timeline, get‑turns) so the assistant can answer a user query with concrete historical evidence. |
vesti-handoff skill |
Generates a structured hand‑off package that can be shared between agents; works even without the full VESTI stack. |
How it works (high‑level flow)
- Capture daemon reads the local chat logs of any supported client and writes normalized records into
~/.vesti/db/vesti.db(SQLite). It runs once per user session and keeps the DB up‑to‑date via file‑watching/polling. - The MCP server (read‑only) exposes commands such as
vesti_search,vesti_search_files,vesti_timeline,vesti_get_turns. - The Skill installed in the assistant decides which MCP command to invoke based on the user’s natural‑language request, gradually narrowing the result set (first find the right session, then the file, then the exact turns).
- The assistant receives the retrieved snippets and can optionally call
vesti_summarize, which forwards selected turns to a configurable OpenAI‑compatible LLM for a concise summary.
Supported coding assistants
| Client | Skill directory | MCP config location |
|---|---|---|
| Codex | ~/.agents/skills/vesti-memory/ |
~/.codex/config.toml → [mcp_servers.vesti] |
| Claude Code | ~/.claude/skills/vesti-memory/ |
~/.claude.json → mcpServers.vesti |
| Kimi Code | ~/.kimi-code/skills/vesti-memory/ |
~/.kimi-code/mcp.json → mcpServers.vesti |
| Cursor | ~/.cursor/skills/vesti-memory/ |
~/.cursor/mcp.json → mcpServers.vesti |
| Qoder desktop | ~/.qoder/skills/vesti-memory/ |
<user‑data>/Qoder/SharedClientCache/mcp.json |
| Qoder CLI | ~/.qoder/skills/vesti-memory/ |
~/.qoder/settings.json → mcpServers.vesti |
| WorkBuddy | ~/.workbuddy/skills/vesti-memory/ |
~/.workbuddy/mcp.json → mcpServers.vesti |
| Trae (and CN / SOLO variants) | ~/.trae*/skills/vesti-memory/ |
Various mcp.json under the app’s data folder |
The installer (node packages/vesti-memory/dist/cli.js setup) auto‑detects which of these clients are present and writes the appropriate configuration. Use --host <client> to target a single one.
Quick start (source install)
# 1️⃣ Clone & build
git clone https://github.com/firefly-hefeng/VESTI-SKILLS.git
cd VESTI-SKILLS
corepack enable # enables pnpm via Corepack
corepack pnpm install --frozen-lockfile
corepack pnpm build
# 2️⃣ Register the skill / MCP for all detected clients
node packages/vesti-memory/dist/cli.js setup
# 3️⃣ Verify
node packages/vesti-memory/dist/cli.js status # should show Skill=ready, MCP=ready
node packages/vesti-memory/dist/cli.js doctor # all checks PASS
Keep the repository in a permanent folder; the absolute build path is written into each client’s config.
Optional LLM summarisation
VESTI’s core retrieval works completely offline. If you want the vesti_summarize tool to produce a model‑generated recap, create ~/.vesti/config/llm.json (or point VESTI_LLM_CONFIG at a custom file) with an OpenAI‑compatible endpoint:
{
"baseUrl": "https://api.your‑provider.com/v1",
"apiKey": "YOUR_KEY",
"model": "gpt‑4o-mini",
"timeoutMs": 30000,
"maxTokens": 1500
}
The CLI can test the connection (llm test) and show the current status (llm status). Summarisation is only invoked when the assistant calls the vesti_summarize skill with a list of turn IDs (max 20 turns).
Typical user workflow
- Ask the assistant – e.g. “Continue the login‑module work; show which files were edited and what problems remain.”
- The vesti‑memory skill:
- Calls
vesti_searchto locate the relevant session(s). - Optionally runs
vesti_search_filesto surface file paths mentioned. - Retrieves a timeline (
vesti_timeline) and then the exact turns (vesti_get_turns).
- Calls
- The assistant replies with the concrete excerpts and the original session IDs, letting you verify the source.
- If you need a concise recap, you can request
vesti_summarize, which forwards the selected turns to the configured LLM and returns the model’s summary together with the source references.
Data layout & environment variables
~/.vesti/
├─ db/vesti.db # SQLite store of all captured conversations
├─ vault/ # optional user‑provided blobs
├─ logs/capture-daemon.log
└─ runtime/ # temporary IPC sockets, etc.
VESTI_HOME– move the whole~/.vestitree.VESTI_DB_PATH– override only the SQLite file location.VESTI_CAPTURE_DISABLED=1– run the MCP in read‑only mode (no daemon).- LLM‑related vars (
VESTI_LLM_BASE_URL,VESTI_LLM_API_KEY, …) can also be supplied via the environment.
Optional UI integrations
- VESTI‑APP – a separate desktop app for browsing the database; it does not replace the core daemon, MCP, or skills.
- VESTI browser extension – imports web‑based chat logs into the same SQLite store.
License
MIT – see the LICENSE file.
Bottom line
VESTI Skills gives you a single, searchable memory bank that works across the major locally‑run coding agents. Install the daemon once, let the skill sit in each assistant, and you’ll be able to pick up a project in a new tool without re‑typing the whole conversation history.
Related
- Project
- Project
- Project
- Project