@@ -100,34 +100,34 @@ pnpm docs:dev
100100
101101## Quickstart
102102
103- Analyze the current working tree:
103+ Give your coding agent a CodeDecay task bundle for the current working tree:
104104
105105``` bash
106- npx codedecay analyze --format markdown
106+ npx codedecay ai --format markdown
107107```
108108
109- Analyze a pull request range :
109+ Guide the agent before it edits :
110110
111111``` bash
112- npx codedecay analyze --base main --head HEAD --format markdown
112+ npx codedecay ai preflight --task " Add an authorized billing export API " --format markdown
113113```
114114
115- Generate a red-team report :
115+ Run the AI workflow on a pull request range :
116116
117117``` bash
118- npx codedecay redteam --base main --head HEAD --format markdown
118+ npx codedecay ai --base main --head HEAD --format markdown
119119```
120120
121- Include configured test/ build/ probe/tool evidence in that report :
121+ Include explicitly configured test, build, probe, and OSS-tool evidence :
122122
123123``` bash
124- npx codedecay redteam --with-checks --base main --head HEAD --format markdown
124+ npx codedecay ai --with-checks --base main --head HEAD --format markdown
125125```
126126
127- Create a task bundle for your coding agent :
127+ Use deterministic analysis directly when you only want the risk report :
128128
129129``` bash
130- npx codedecay agent --profile codex --base main --head HEAD --format markdown
130+ npx codedecay analyze --base main --head HEAD --format markdown
131131```
132132
133133Fail CI on high-risk PRs:
@@ -168,6 +168,7 @@ npx codedecay product --target web --generate-tests --run-generated-tests --form
168168
169169| Command | Purpose |
170170| --- | --- |
171+ | ` codedecay ai ` | Recommended AI-first workflow: preflight guidance, post-diff evidence, optional explicit investigation, configured proof, and a Codex-ready task bundle. |
171172| ` codedecay analyze ` | Deterministic PR risk, impact, and decay analysis. |
172173| ` codedecay snapshot ` | Emit a stable repository health snapshot and compare it with a previous snapshot artifact. |
173174| ` codedecay redteam ` | Merge-safety report with impact, weak-test evidence, verification status, edge cases, memory, skills, and fix tasks. |
@@ -198,8 +199,8 @@ Common flags:
198199| ` --format json\|markdown\|sarif ` | Output format. SARIF is supported by ` analyze ` . |
199200| ` --output <path> ` | Write output to a file instead of stdout. Relative paths resolve from ` --cwd ` . |
200201| ` --fail-on low\|medium\|high ` | Exit non-zero when the risk level reaches the threshold. |
201- | ` --with-checks ` | For ` redteam ` , run configured checks through CodeDecay safety gates and include verification evidence. |
202- | ` --profile generic\|codex\|claude-code\|cursor\|pi\|opencode\|desktop ` | Agent handoff profile for ` codedecay agent ` . |
202+ | ` --with-checks ` | For ` ai ` or ` redteam ` , run configured checks through CodeDecay safety gates and include verification evidence. |
203+ | ` --profile generic\|codex\|claude-code\|cursor\|pi\|opencode\|desktop ` | Agent handoff profile for ` codedecay ai ` or ` codedecay agent` . |
203204
204205Exit codes:
205206
@@ -224,7 +225,7 @@ codedecay uninstall --purge-local
224225
225226| Workflow | Default | What it does today |
226227| --- | --- | --- |
227- | ` codedecay analyze ` , ` redteam ` , ` agent ` , ` snapshot ` | Yes | Runs deterministic local analysis with no model calls. |
228+ | ` codedecay ai ` , ` analyze ` , ` redteam ` , ` agent ` , ` snapshot ` | Yes | Runs deterministic local analysis with no model calls unless ` --investigate ` is explicit . |
228229| ` codedecay execute ` , ` differential ` | No | Runs only repo-allowlisted local commands after explicit opt-in. |
229230| ` codedecay product --explore ` | No | Uses a project-provided Playwright install to crawl configured live app targets after explicit opt-in. |
230231| ` codedecay llm-review ` | No | Calls a user-owned provider only when the user invokes it directly. |
0 commit comments