Agent-Forge is a robust multi-agent automation framework designed to generate production-grade code through a rigorous "Plan-Execute-Audit" closed loop.
Unlike traditional "fire-and-forget" AI coding tools, agent-forge introduces a Human-in-the-loop planning confirmation mechanism and an Audit-Driven acceptance workflow. Code is only accepted after passing strict static analysis and verification standards.
- Interactive Planning:
- The Orchestrator automatically generates a detailed execution plan based on a
TASK_ID(saved in.claude/plan/). - User Confirmation Required: Execution only begins after you verify and approve the plan.
- The Orchestrator automatically generates a detailed execution plan based on a
- Strict Quality Gates:
- An embedded
Audit Agentforces a review of all artifacts. - Substandard code automatically enters a "Rework Loop" until it receives a
PASSrating.
- An embedded
- Adaptive Worker:
- The Worker Agent dynamically adopts roles such as "Backend Dev", "Frontend Dev", "QA Engineer", or "Architect" based on task requirements.
- Session-based XML Logging:
- Logs are isolated by
TASK_IDandTIMESTAMP. - Action Log: Tracks the system's operational timeline.
- Audit Log: Records detailed code review feedback and scores.
- Logs are isolated by
-
Orchestrator (Manager & Planner):
- Brain: Decomposes tasks, generates plan files, and requests user approval.
- Dispatcher: Manages Sub-agent calls and file paths.
- Constraint: Does not write code directly.
-
Worker (Adaptive Executer):
- Polymorphic: Accepts
role_definitionto implement logic and write tests. - Responsive: Fixes code based on specific Audit feedback.
- Polymorphic: Accepts
-
Audit (Quality Control):
- Inspector: Scores outputs against Acceptance Criteria.
- Output: Appends XML-formatted reports to the specific session log.
-
Recorder (Scribe):
- Logger: Maintains the "System Truth" by appending all events to the XML action log.
Ensure your cc (Claude Code) environment is configured as follows:
Create the configuration directories in your home folder:
mkdir -p ~/.claude/agents
mkdir -p ~/.claude/skillsNote: During runtime, the system will automatically create .claude/plan/, .claude/audit/, and .claude/action/ in your current project root.
Save the generated Prompt files here:
orchestrator.md: Master logic with planning and confirmation.worker.md: Adaptive worker prompt with role injection.audit.md: Audit prompt with XML append capability.recorder.md: Recorder prompt with XML append capability.
- Start: Load the Orchestrator Agent.
- Initialize:
- The system will request a
TASK_ID(e.g.,Refactor_Login_Module).
- The system will request a
- Confirm Plan:
- The Orchestrator generates a plan in
.claude/plan/. - Review the plan and reply "Yes" or "Approve".
- The Orchestrator generates a plan in
- Auto-Execution:
- The system begins dispatching Workers and generating logs in
.claude/audit/and.claude/action/.
- The system begins dispatching Workers and generating logs in
All logs are stored in XML format and isolated by session:
- Execution Plan:
.claude/plan/plan_{TASK_ID}_{TIME}.md - Action Stream:
.claude/action/action_{TASK_ID}_{TIME}.xml - Audit Details:
.claude/audit/audit_{TASK_ID}_{TIME}.xml