A full-featured CRM built with React, shadcn/ui, and Supabase.
Reword
François Zaninotto587ec4d327ac
diff --git a/doc/src/content/docs/developers/agent-harness.mdx b/doc/src/content/docs/developers/agent-harness.mdxindex 313b8d61..82082a83 100644--- a/doc/src/content/docs/developers/agent-harness.mdx+++ b/doc/src/content/docs/developers/agent-harness.mdx@@ -3,7 +3,7 @@ title: Agent Harnessdescription: How to use the Atomic CRM agent harness to implement CRM changes with a coordinated team of Claude Code agents.----Atomic CRM ships a local **agent harness** for Claude Code: a coordinated team of agents that turns a feature request in natural language into working code. Instead of implementing a change yourself, you can describe what you want and the harness plans, implements, reviews, and merges it through a deterministic pipeline.+Atomic CRM ships an *agent harness*: a team of specialized Claude Code agents — planner, developer, reviewer, tester, documenter — that turns a plain-English feature request into planned, tested, reviewed and committed code through a deterministic pipeline. The agents share the same coding guidelines as the Atomic CRM core team, and add tools that cut token usage and speed up development.## Prerequisites@@ -11,17 +11,21 @@ Atomic CRM ships a local **agent harness** for Claude Code: a coordinated team o- Project dependencies installed (`make install`).- For full-stack runs only: a local Supabase instance up (`make start-supabase`).-## Launching a Session+## Usage-To start a Claude Code session directly with the harness:+Start a Claude Code session as usual. In your prompt, mention the harness to trigger it. For instance:-```sh-make harness+```+Create a new field for lost deal reasons, and implement it with the harness.++# or++Build a CRM for my company Acme, a recruiting agency, using the harness.```-This launches the **chat-orchestrator** agent in automatic-permission mode. Type your request once the session opens, and the orchestrator takes over.+The harness starts immediately (or once you exit plan mode): Claude Code will delegate the coordination of the work to a specialized subagent called `chat-orchestrator`, and this agent will spawn other specialized agents depending on the complexity of the task.-You can also pre-fill the first message:+You can also launch the harness from the terminal with a specialized make command. For example:```shmake harness REQUEST="Add a reason for a lost deal"@@ -29,41 +33,51 @@ make harness REQUEST="Add a reason for a lost deal"<script src="https://asciinema.org/a/YnU8RU7vCtJsi3yC.js" id="asciicast-YnU8RU7vCtJsi3yC" data-speed="4" async="true"></script>-Or, you can start a plan mode and at the end, **chat-orchestrator** will implement it with the harness.+:::caution+The harness runs in automatic-permission mode, which means it can execute arbitrary commands on your machine and may modify or delete files. We advise you to run the harness in a sandboxed environment, such as a DevContainer (already configured in the repo) or a VM.+::::::tip-**Heads up**: The harness runs in automatic-permission mode, which means it can execute arbitrary commands on your machine. We advise you to run the harness in a disposable environment, such as a DevContainer (already configured in the repo) or a throwaway VM.+The subagents work in a temporary directory (in `/tmp/<repo-slug>`) to keep your main checkout clean. The harness eventually backports the changes to your checkout in a branch and merges it with the current branch.:::-The orchestrator will determine the type of your request and launch the appropriate sub-agents. There are two types of requests:+:::tip+Based on the complexity of the feature request, the orchestrator runs either one of two workflows:- **Simple**: a single cosmetic edit, a single-field change on an existing entity, or a filter reusing existing components. One developer agent, no planning overhead.- **Complex**: everything else. The planner decomposes it into tickets; developers, reviewers, and the merger run as a coordinated wave.+:::-Then, all the work will take place in a git worktree to keep your branch clean. The orchestrator creates a new branch and, once the change is complete, **merges it automatically into the branch you started from**.-## Undoing a Session+## Reverting a Change-Because the merge is automatic, if you need to roll back, you can use the command:+Because the merge is automatic, the agent harness may make a change you're not happy with. You can use the following command to revert the last session and return to the state of your branch before the harness started:```shmake clean-harness```-This removes everything the last session created (worktrees, session branches) and hard-resets your start branch to the exact commit it was on before the session began.+This hard-resets your start branch to the exact commit it was on before the session began.:::caution`make clean-harness` is a hard reset: any uncommitted work is stashed first (recover it with `git stash pop`), but committed work made *after* the session started on that branch is also dropped. Run it only when you want to discard the whole session.:::-## Disabling the harness+## Disabling the Harness++Sometimes Claude Code may use the harness even though you didn't ask for it. If you don't want to use it, you can opt out in your request. For instance:++```+Create a new field for lost deal reasons #no-harness-If you'd rather have the change implemented directly, without the harness, say so in your request. Any of these opt out:+## or-- `#no-harness`-- *"implement directly"*-- *"without the agent team"*-- *"skip harness"*+Create a new field for lost deal reasons without the agent team++## or++Create a new field for lost deal reasons, skipping the agent team+```The main thread then implements the change itself, no agents, even after a plan is approved. Add *"no-harness for this session"* to keep it off for the whole session.