Repository navigation
AgentDetox 0.3.0
AgentDetox 0.3.0 brings a review workflow for changes to agent memory, instructions, rules and config.
- Review diffs and attribution evidence; accept an exact version or dismiss one finding.
- Preview recovery before applying it. Newer edits are protected by stale-version checks and current content is backed up first.
- Use indexed SQLite history with transactional migration, preserved original files, explicit retention and JSONL export.
- Keep hook failures and interrupted recovery visible, including disabled Claude Code hooks.
- Inspect weekly context changes with
agentdetox review --since 7d.
Upgrade with uv tool upgrade agentdetox, then try agentdetox demo and agentdetox doctor. Migration occurs on the next state-writing command or hook. Keep a backup of the entire store, including objects/; JSONL export is an inspection format, not a full backup.
Validation: 289 local tests passed with one platform skip; 13 modules type-checked. Five 100-sample hook benchmarks met their documented P95 budgets on the reference Mac. Twenty authorized real Claude Code sessions were used, including fixture and notice retests; all final scenario assertions passed. Guardrail success is reported separately from whether the user's requested task completed. See lab notes and latency results.
Claude Code remains the primary supported agent. Text attribution is inference, paraphrases remain a gap, and optional contradiction detection remains experimental.