@stitchdb/agent
v0.3.0
Published
Memory layer for AI coding agents — MCP-native, BYO-LLM
Maintainers
Readme
@stitchdb/agent
Memory layer for AI coding agents — MCP-native, BYO-LLM.
Install
npm install @stitchdb/agentQuickstart
import { Stitch } from '@stitchdb/agent'
const stitch = new Stitch({ apiKey: process.env.STITCHDB_API_KEY! })
await stitch.remember('Use Drizzle ORM with libSQL', { kind: 'decision', tags: ['db'] })
const hits = await stitch.recall('which ORM did we pick?', { k: 3 })
console.log(hits)Add to Claude Code (MCP)
claude mcp add stitch \
https://db.stitchdb.com/mcp/v1/<workspace_id> \
--transport http \
--header "Authorization: Bearer sdb_sk_..."That's it. Claude Code now has remember, recall, forget, thread_append,
thread_recall available as tools, plus two read-only resources.
Threads (conversation logs)
const chat = stitch.thread('session-2026-05-09')
await chat.append({ role: 'user', content: 'How does auth work in this project?' })
await chat.append({ role: 'assistant', content: 'Cookies for the dashboard, API keys for clients.' })
// Recover context next session.
const ctx = await chat.recall({ last: 10, semantic: 'auth' })Privacy
- We never see your LLM API keys (Anthropic/OpenAI/etc).
- We never see prompts or completions unless you explicitly send them via
remember()/thread.append(). - Your data exports as JSON, anytime.
- Soft-deleted memories are recoverable for 30 days.
License
MIT
