whereismyai
Trace2rules
Trace2rules is a local-first CLI that mines and audits coding-agent sessions into evidence-backed AGENTS.md rules.
Trace2rules is a local-first CLI tool designed to ingest agent trajectories, mine recurring friction, and audit existing AGENTS.md or CLAUDE.md rules against real coding sessions. It identifies whether each rule is observed, compliant, violated, unobserved, or already enforced by CI or pre-commit hooks. Users can ingest agent sessions from sources like Claude Code, Codex, Pi, OMP, and OpenCode into DuckDB to detect patterns, recovery loops, and validation gaps. The tool outputs proposals rather than automatically applying changes, allowing developers to review evidence and validate rules through deterministic auditing commands. It targets developers and teams looking to maintain durable, normative agent guidelines based on actual session data.
Trace2rules at a glance
- Best for: Software engineer
- Runs on: CLI, self-hosted, open source
- Pricing: Free
- Released: November 2026
- Category: AI coding tool
- Website: github.com/rkkautsar/trace2rules
Key features
- Ingest agent trajectories and tool events into DuckDB
- Mine recurring friction, hotspots, and correction loops
- Audit existing AGENTS.md rules against real sessions
- Generate readable Markdown evidence prompts for agents
- Mine repo-local sequential rules with support and confidence
- Verify proposed rules using deterministic commands
- Support time-based holdout splitting for audits
Use it for
- Auditing existing AGENTS.md and CLAUDE.md rules against sessions
- Generating evidence-backed rule proposals from local sessions
- Analyzing recurring friction and error sequences in agent runs
- Validating proposed Markdown rules before applying them
Alternatives to Trace2rules
- Agent Trace Mechanism — Lets AI agents read local Codex and Claude Code session files and tool activity.
- Tracequest — It groups failed tool calls, estimates costs, and reads multiple coding agent formats.
- Ruleherd — Audits existing agent instruction files for contradictions and drift without new formats.
- Claude Tap — Inspect prompts, tool calls, and token usage locally without a hosted dashboard.
- TraceRoot — Closes the self-improving loop for coding agents using production traces and evals.
- Tracely — Turns production failures into regression tests that block pull requests.
- Agent Archive — Hand off coding sessions between Claude Code, Codex, and Cursor across machines.
- HarnessRouter — One API to manage agent runtimes, sandboxes, and execution lifecycles.
- Rokan — Inspects agent traces securely in the browser without uploading files.
- Mindwalk — Visualize how coding agents explore and edit files on a 3D repository map.
- Reviewer Agent — It uses a separate AI model to review code and prevent premature agent stopping.
- Runway — Control Claude Code and Codex sessions on local or cloud machines from any phone.
All Trace2rules alternatives