Skip to content

A full-featured CRM built with React, shadcn/ui, and Supabase.

Apply review

Jonathan ARNAULTdb65bad72cb2
diff --git a/.claude/hooks/lib/teams.mjs b/.claude/hooks/lib/teams.mjs
index 9698cadd..31363aed 100644
--- a/.claude/hooks/lib/teams.mjs
+++ b/.claude/hooks/lib/teams.mjs
@@ -1,6 +1,5 @@
// Agent identity helpers — the single source for every hook that gates on who
-// an agent is. (The team-config enumeration that used to live here was removed
-// with the team flow; dispatch is now background-subagent only.)
+// an agent is.
export const getFirstTaskId = (text) => (String(text ?? "").match(/TASK-[0-9]+/) || [])[0] || "";
diff --git a/.claude/hooks/restrict-documentator-bash.mjs b/.claude/hooks/restrict-documentator-bash.mjs
index dcfa952a..8985d3c4 100755
--- a/.claude/hooks/restrict-documentator-bash.mjs
+++ b/.claude/hooks/restrict-documentator-bash.mjs
@@ -5,7 +5,7 @@ import { readFileSync } from "node:fs";
import { createHookContext } from "./lib/context.mjs";
// Detect the documentator EITHER by DOCUMENTATOR_RUN=1 (legacy standalone
-// `claude -p` — a top-level process with no agent_type) OR by agent_type ===
+// run — a top-level process with no agent_type) OR by agent_type ===
// "documentator" (an Agent-dispatched documentator subagent, the same signal the
// other PreToolUse hooks use). Read the payload first so agent_type is available.
//
diff --git a/.claude/hooks/restrict-documentator-write.mjs b/.claude/hooks/restrict-documentator-write.mjs
index 5b98409b..dc1a8f9b 100755
--- a/.claude/hooks/restrict-documentator-write.mjs
+++ b/.claude/hooks/restrict-documentator-write.mjs
@@ -7,7 +7,7 @@ import { createHookContext } from "./lib/context.mjs";
import { REPO, CONFIG_DIR } from "./lib/paths.mjs";
// Detect the documentator EITHER by DOCUMENTATOR_RUN=1 (legacy standalone
-// `claude -p` — a top-level process with no agent_type) OR by agent_type ===
+// run — a top-level process with no agent_type) OR by agent_type ===
// "documentator" (an Agent-dispatched documentator subagent). Read the payload
// first so agent_type is available.
//
diff --git a/CLAUDE.md b/CLAUDE.md
index 2afefa23..2531e129 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -19,7 +19,7 @@ The **chat-orchestrator** is the user-facing entry point. It routes, narrates pr
4. **merger** — `git merge --no-ff` only; never `git add` / `git commit`. One merger is dispatched per ticket (Stage A: feature branch → session branch); a final promotion merger (`MODE: promote`) moves the session branch onto `main` once the wave is done, serialised across sessions by a `flock` on the shared `.git`.
5. **documentator** — auto-runs at the end of every COMPLEX session, appending business knowledge to `MEMORY.md` from the session diff. (Mode 1 also captures reusable rules/skills on explicit user request.)
-There is no agent team and no cross-agent messaging: the orchestrator dispatches every agent as a **background subagent** (`Agent({..., run_in_background: true})`) and drives the wave from an event-driven state machine (chat-orchestrator.md STATE B), reacting to each subagent's completion. Each agent's last output line is an **output contract** (`DONE: …` / `FAILED: …` / `APPROVED` / `REJECTED: …`) that the orchestrator parses to choose the next dispatch (see `.claude/rules/agent-output-format.md`). PreToolUse/Agent hooks prepare the worktree (`setup-worktree`) and gate the flow (`enforce-dev-dispatch`, `block-merger-without-review`, `block-promote-unmerged`); SubagentStop hooks validate (`validate-on-stop`) and record review verdicts (`record-review-verdict`).
+There is no cross-agent messaging: the orchestrator dispatches every agent as a **background subagent** (`Agent({..., run_in_background: true})`) and drives the wave from an event-driven state machine (chat-orchestrator.md STATE B), reacting to each subagent's completion. Each agent's last output line is an **output contract** (`DONE: …` / `FAILED: …` / `APPROVED` / `REJECTED: …`) that the orchestrator parses to choose the next dispatch (see `.claude/rules/agent-output-format.md`). PreToolUse/Agent hooks prepare the worktree (`setup-worktree`) and gate the flow (`enforce-dev-dispatch`, `block-merger-without-review`, `block-promote-unmerged`); SubagentStop hooks validate (`validate-on-stop`) and record review verdicts (`record-review-verdict`).
## Agent team