Skip to content

feat(config-watch): AGENTS.md change detector (#86)#125

Merged
Siddhant-K-code merged 2 commits into
mainfrom
feat/86-config-change-detector
May 23, 2026
Merged

feat(config-watch): AGENTS.md change detector (#86)#125
Siddhant-K-code merged 2 commits into
mainfrom
feat/86-config-change-detector

Conversation

@Siddhant-K-code
Copy link
Copy Markdown
Owner

What

Adds agent-strace config-watch — a command to snapshot agent configuration files (AGENTS.md, CLAUDE.md, system prompts, etc.) and detect what changed between sessions.

Closes #86

Commands

Subcommand Purpose
snapshot SHA-256 hash all watched config files; save to .agent-traces/config-snapshots.json
check Diff current state vs last snapshot; exit 1 if anything changed (CI gate)
history List all snapshots with timestamps and labels
affected Find sessions that ran after a config change

Default watched files: AGENTS.md, CLAUDE.md, system_prompt.md, system_prompt.txt, .cursorrules, .github/copilot-instructions.md. Extra paths via --watch.

Changes

  • src/agent_trace/config_watch.py — new module
  • src/agent_trace/cli.py — registers config-watch subparser
  • tests/test_config_watch.py — 42 tests
  • README.md — new section + command reference entries
  • src/agent_trace/__init__.py — version 0.49.0 → 0.50.0

Siddhant-K-code and others added 2 commits May 23, 2026 08:21
- config_watch.py: take_snapshot, diff_snapshots, find_affected_sessions, cmd_config_watch
- Subcommands: snapshot, check, history, affected
- SHA-256 hashing of watched config files; snapshots stored in .agent-traces/config-snapshots.json
- Default watch list: AGENTS.md, CLAUDE.md, system_prompt.md/txt, .cursorrules, .github/copilot-instructions.md
- check exits 1 when config has changed (CI gate)
- 42 tests in tests/test_config_watch.py
- README: new config-watch section and command reference entries
- Version bump 0.49.0 → 0.50.0

Closes #86

Co-authored-by: Ona <no-reply@ona.com>
@Siddhant-K-code Siddhant-K-code merged commit 77b0038 into main May 23, 2026
4 checks passed
@Siddhant-K-code Siddhant-K-code deleted the feat/86-config-change-detector branch May 23, 2026 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: AGENTS.md change detector — auto-flag drift after config changes

1 participant