Memory architecture
Memory provides project-scoped committed code and Markdown discovery backed by local SQLite and FTS. Parsing is deterministic and uses no model or remote API. Successful snapshots survive failed refreshes, and indexing attempts are recorded independently. Natural-language memory CRUD executes immediately without drafts.
Entry points
init.ts— Plugin lifecycle, core context, and command/AI registration.adapter.ts— CLI parsing and per-command dispatch.definition.ts— Aggregated command definitions.ai.ts— Tool schemas, code/Markdown dispatch, and direct memory-row operations.db.ts— Local SQLite opening, migrations, and memory-row CRUD.discovery.ts— Independent code/Markdown parsing attempts and joint ranked search.commands/— Help, row list/show, code, Markdown, and project-status surfaces.commands/shared/— Entity/input schemas, message representations, and render helpers.
Modules
- Code intelligence owns TypeScript graphs, project status, external-target navigation, and explicit opt-in Git hooks.
- Markdown intelligence owns committed Markdown snapshots, headings/chunks, local search, and document links/backlinks.
See Memory design and progress and user guide.