Repository navigation
Description
Description
Nanocoder currently features a planner mode, but the plans and task tracking are largely ephemeral—they exist only within the terminal output or chat history. We should implement an Artifacts System inspired by Advanced Agentic IDEs (like Antigravity), where the agent automatically generates and persists structured markdown files to organize its work.
Crucially, these files must not pollute the user's working repository. They should be stored in an isolated, hidden directory per session (e.g., ~/.nanocoder/brain/<session-id>/ or a git-ignored .nanocoder/artifacts/ folder).
Use Case
For complex architectural changes, reading a giant wall of text in the terminal is difficult. The agent needs a structured way to plan, execute, and report.
With this feature, when a user asks for a complex task, the agent will:
- Enter Planning Mode and write an
implementation_plan.mddetailing the proposed changes and open questions. The user can review this file in their editor and approve it. - During execution, the agent maintains a
task.mdTODO list, checking off items as it goes so the user has real-time visibility into the progress. - When finished, the agent writes a
walkthrough.mdsummarizing exactly what files were changed, what was tested, and how to verify the work.
Proposed Solution
- Add a new
ArtifactManagermodule that intercepts requests to create/update specific artifact files. - Extend the existing
planmode to automatically trigger the creation ofimplementation_plan.mdinstead of just dumping text to stdout. - Introduce a new tool
write_artifactfor the agent to use, which automatically routes the file to the isolated~/.nanocoder/brain/<session-id>/directory. - UX for VS Code: Surface these files in the Webview UI using
file://URIs so the user can click and open them directly in a new editor tab. - UX for CLI: Use Nanocoder's
Ink.jsUI to render a polished, clickable visual card (e.g.,╭─ Plan Generated ─╮ (Cmd+Click to open)) so CLI users get a premium experience instead of just silent file creation.
Alternatives Considered
- Inline terminal output: The current behavior. It's fine for simple tasks but breaks down completely for multi-file refactors.
- Writing directly to the workspace: We could write
plan.mdinto the user's project root, but users hate having AI temp files pollute their Git status. An isolated directory is required.
Additional Context
- I have searched existing issues to ensure this is not a duplicate
- This feature aligns with the project's goals (local-first AI assistance)
Activity
2409324124 commentedon Aug 7, 2026
Hey @akramcodez, I'd like to work on this issue.