agenttwin 0.3.34 → 0.3.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -18,6 +18,19 @@ In about ten seconds it picks a workflow, runs it on twins, breaks it on purpose
18
18
 
19
19
  The rest of this page is the full reference.
20
20
 
21
+ ## Coding agents test with AgentTwin
22
+
23
+ ```bash
24
+ npx agenttwin agents --hook
25
+ ```
26
+
27
+ Writes the testing guide into `AGENTS.md`, `CLAUDE.md` and Cursor rules, registers the AgentTwin MCP server in `.mcp.json` and `.cursor/mcp.json`, adds an AgentTwin skill for Claude Code, and (with `--hook`) a git pre-push check. Only marked blocks are edited; running it again changes nothing. Commit the files so every teammate's agent gets the same setup.
28
+
29
+ Agents then call two MCP tools:
30
+
31
+ - `check_change`: after editing code, tests the workflows the change touches (uncommitted edits included) against digital twins with production failures injected, and returns pass or fail with each problem's file, line, cost and fix. Same as `npx agenttwin check --working-tree`.
32
+ - `find_and_fix`: the full loop on one workflow, with a fix applied and proven on the same faults when `applyFix` is true.
33
+
21
34
  ## Install and discover
22
35
 
23
36
  Works with any Node.js version. Run discovery from your project; npx installs the CLI automatically: