feat(coding-agent): added plan mode with approval workflow and tool gating

- Plan mode provides structured workflow where agents propose plans for user approval before execution.
- Added plan:// internal URL protocol for accessing plan files and injecting plan-mode context into subagent prompts.
- Added plan mode toggle shortcut and paused status indicator in status line.
- Fixed plan reference injection to properly pass workflow state to plan-mode system prompts.
- Improved autocomplete fuzzy matching to support subsequence matching for skill suggestions.
This commit is contained in:
can1357
2026-01-25 19:24:51 +01:00
parent d26f759b80
commit 79079e6ecd
100 changed files with 2310 additions and 304 deletions
@@ -43,7 +43,7 @@ describe("createTools python fallback", () => {
const tools = await createTools(session, ["python"]);
const names = tools.map(tool => tool.name).sort();
expect(names).toEqual(["bash"]);
expect(names).toEqual(["bash", "exit_plan_mode"]);
availabilitySpy.mockRestore();
});