Hi HN! I notice I have a lot of session data and wonder if everything I put into AGENTS.md is actually being followed in my sessions. And I realized I can also mine agent's repeated mistakes and suggest is as rules to be added, or even actual enforcement. That's why I built this fully local tool to mine your local sessions and audit existing AGENTS.md. The rules are mostly heuristic and patterns I see from actual real world AGENTS.md. Audit is deterministic. But it can also outputs evidence for your agent to synthesize into suggestions. Same thing for mining new rules, it outputs evidence with some context window, then your agent synthesize it into actionable rules. Let me know if you got any surprising suggestion from it!
Repository
rkkautsar/trace2rules
trace2rules
rkkautsar/trace2rules
trace2rules
A local-first CLI tool that mines coding-agent session logs to generate evidence-backed AGENTS.md rules and audits existing rules against real sessions for compliance and violations.
Visit project- First shared
- Nov 21, 2026
- HN activity
- 21
Show HN@rkkautsarNov 21, 2026
Show HN: trace2rules – Mine and audit coding-agent logs into AGENTS.md rules
Community