Skip to content

[Feature] AI Artifact System (Implementation Plans, Tasks, Walkthroughs) #805

Closed

Description

@akramcodez

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:

  1. Enter Planning Mode and write an implementation_plan.md detailing the proposed changes and open questions. The user can review this file in their editor and approve it.
  2. During execution, the agent maintains a task.md TODO list, checking off items as it goes so the user has real-time visibility into the progress.
  3. When finished, the agent writes a walkthrough.md summarizing exactly what files were changed, what was tested, and how to verify the work.

Proposed Solution

  • Add a new ArtifactManager module that intercepts requests to create/update specific artifact files.
  • Extend the existing plan mode to automatically trigger the creation of implementation_plan.md instead of just dumping text to stdout.
  • Introduce a new tool write_artifact for 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.js UI 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.md into 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

  1. added
    enhancement
    architecture
    on Aug 6, 2026
  2. 2409324124 commented on Aug 7, 2026

    @2409324124
    Contributor

    Hey @akramcodez, I'd like to work on this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

architectureenhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions