diff options
Diffstat (limited to '.rules')
| -rw-r--r-- | .rules/changelog/2026-03/24/15.md | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/.rules/changelog/2026-03/24/15.md b/.rules/changelog/2026-03/24/15.md new file mode 100644 index 0000000..8652a7f --- /dev/null +++ b/.rules/changelog/2026-03/24/15.md @@ -0,0 +1,43 @@ +# Changelog — 2026-03-24 (15) + +## New Tools + +- **grep_search**: Case-insensitive text search across markdown file contents with optional file path filter. Returns `path:line: text` format, capped at 50 results. +- **create_file**: Create new files with content. Auto-creates parent folders. Requires approval. Shows content preview in approval dialog. +- **move_file**: Move/rename files using `fileManager.renameFile()` which auto-updates all `[[wiki-links]]`. Auto-creates target folders. Requires approval. + +## Wiki-Link Support in AI Responses + +- System prompt now instructs the AI to use `[[Note Name]]` wiki-link syntax when referencing vault notes. +- Added click handlers on rendered `a.internal-link` elements in chat bubbles so links navigate to the target note via `workspace.openLinkText()`. + +## Custom System Prompt from Vault File + +- New settings: "Use Custom Instructions" toggle and "Prompt File" path input (default `agent.md`). +- When enabled, reads the vault note content at send time and injects it as a system prompt alongside the built-in tool instructions. +- Works even when no tools are enabled. +- File path input appears greyed out and disabled when the toggle is off. + +## Model Badge + +- Added a pill-shaped model indicator in the top left of the chat area. +- Shows the currently selected model name, or "No model selected" in muted italic when none is configured. +- Updates automatically when the settings modal closes. + +## System Prompt Updates + +- Added LINKING TO NOTES, CREATING FILES, MOVING/RENAMING FILES, and SEARCHING FILE CONTENTS sections to the tool system prompt. +- Updated approval tool list to include `create_file` and `move_file`. + +## Research Notes + +- Created `.notes/research/plugin-feature-ideas.md` with 12 potential feature ideas organized by impact level. + +## Files Changed + +- `src/tools.ts` — three new tool execute functions and TOOL_REGISTRY entries +- `src/ollama-client.ts` — system prompt updates, `userSystemPrompt` plumbing through agent loop and both chat functions +- `src/chat-view.ts` — wiki-link click handlers, system prompt file reading, model badge, create_file approval preview +- `src/settings.ts` — `useSystemPromptFile` and `systemPromptFile` settings +- `src/settings-modal.ts` — toggle + file path input for custom instructions +- `styles.css` — disabled setting style, model badge styles |
