Skip to content

feat: add implementation-notes tracking to code and review phases#3

Open
Nam9111999 wants to merge 1 commit into
zanep298:mainfrom
Nam9111999:feat/implementation-notes
Open

feat: add implementation-notes tracking to code and review phases#3
Nam9111999 wants to merge 1 commit into
zanep298:mainfrom
Nam9111999:feat/implementation-notes

Conversation

@Nam9111999

Copy link
Copy Markdown

Summary

  • Code phase now instructs the agent to maintain a running implementation-notes.md in .zforge/tasks/<ID>/ while implementing — recording decisions not in the spec, plan deviations, tradeoffs, and anything the reviewer should know
  • Review phase reads implementation-notes.md as an input so the reviewer understands why deviations happened before judging them
  • context.rs auto-injects the file as a /file ref in the review prompt when present (skipped if file doesn't exist or is empty, so backward-compatible)

Files changed

File Change
templates/code.tmpl Step 8: append to implementation-notes.md as you go
templates/agents/code-agent.md Output #3: implementation-notes.md
templates/agents/review-agent.md Added as input
templates/review.tmpl Rule: read notes before judging deviations
src/prompt/context.rs Auto-load notes into review context via has_content_ref

Test plan

  • cargo check passes (verified)
  • Run zforge code <ID> — agent produces implementation-notes.md
  • Run zforge review <ID> — notes appear in rendered prompt context

- code.tmpl: instruct agent to maintain implementation-notes.md during coding
- code-agent.md: list implementation-notes.md as required output
- review-agent.md: add implementation-notes.md as review input
- review.tmpl: instruct reviewer to read notes before judging deviations
- context.rs: auto-inject implementation-notes.md into review context when present
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant