# Changelog — 2026-03-28 — 03 ## Context Separation: Extract all AI context into JSON files ### Summary Extracted all hardcoded AI prompts, tool definitions, tool metadata, and vault context templates from TypeScript source code into standalone JSON files under `src/context/`. This makes all AI-facing context easily discoverable and editable without needing to understand TypeScript. ### New Files - `src/context/system-prompt.json` — structured system prompt (tool instructions, linking rules, editing workflow, batch tools, etc.) - `src/context/vault-context-template.json` — template for formatting vault context into the system prompt - `src/context/tools/search-files.json` — search_files tool definition + metadata - `src/context/tools/read-file.json` — read_file tool definition + metadata - `src/context/tools/delete-file.json` — delete_file tool definition + metadata - `src/context/tools/get-current-note.json` — get_current_note tool definition + metadata - `src/context/tools/edit-file.json` — edit_file tool definition + metadata - `src/context/tools/grep-search.json` — grep_search tool definition + metadata - `src/context/tools/create-file.json` — create_file tool definition + metadata - `src/context/tools/move-file.json` — move_file tool definition + metadata - `src/context/tools/set-frontmatter.json` — set_frontmatter tool definition + metadata - `src/context/tools/batch-search-files.json` — batch_search_files tool definition + metadata - `src/context/tools/batch-grep-search.json` — batch_grep_search tool definition + metadata - `src/context/tools/batch-delete-file.json` — batch_delete_file tool definition + metadata - `src/context/tools/batch-move-file.json` — batch_move_file tool definition + metadata - `src/context/tools/batch-set-frontmatter.json` — batch_set_frontmatter tool definition + metadata - `src/context/tools/batch-edit-file.json` — batch_edit_file tool definition + metadata - `.rules/default/project_conventions.md` — new project conventions doc (context separation is rule #1) ### Modified Files - `tsconfig.json` — added `resolveJsonModule: true` - `src/ollama-client.ts` — imports system-prompt.json, builds TOOL_SYSTEM_PROMPT from structured JSON via `buildToolSystemPrompt()` - `src/vault-context.ts` — imports vault-context-template.json, uses template to format vault context - `src/tools.ts` — imports all 15 tool JSON files, TOOL_REGISTRY spreads JSON context and only defines runtime callbacks inline