Files
CHORUS/docs/plans/AutonomousCodeEditing.md

18 lines
866 B
Markdown

# Plan: Autonomous Code Editing (`chrs-code-edit`)
## 1. Goal
Enable CHORUS agents to autonomously write, modify, and compile code within isolated Git worktrees, closing the loop from "reasoning" to "delivery."
## 2. Components
- **Git Worktree Manager:** Integration of `git2-rs` to spawn isolated branches for every task.
- **Atomic File Ops:** A toolset for agents to perform RMWV (Read-Modify-Write-Verify) on source files.
- **Compiler Feedback Loop:** Wiring `chrs-exec` results (errors/warnings) back into the agent's `think` phase for self-correction.
## 3. Workflow
1. Agent receives `implementation_task`.
2. Agent creates a new Git branch `task/<uuid>`.
3. Agent uses `chrs-exec` to test the current state.
4. Agent writes code changes.
5. Agent verifies via `cargo check` inside the container.
6. Agent commits and signals `PR_READY` via `chrs-mail`.