what_changed
Find what changed recently in a directory or agent session: reports commits, changed paths from git snapshots, or command categories from shell history.
Instructions
What changed in a directory, or in one agent session, recently. For an agent session with git snapshots (taken at its first prompt and at each turn end; Claude Code, Codex, OpenCode and Cursor), pass session_id to get what was observed: the commits made between the two snapshots, read from the repository now, and the paths whose git status changed or that those commits touched, with provenance observed — paths only, never contents, and changed in the repository, not necessarily by the agent. Without snapshots, and for a directory window, it returns the recorded commands and their exit codes (observed), then a category breakdown — writes, deletions, git, installs — inferred from the command text of the ones that exited 0, and lists the sessions in the window that have snapshots. A category is a reading of the command, not a confirmed change.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hours | No | How many hours back to look (default: 4) | |
| limit | No | Max rows in this page (default: 500) | |
| detail | No | Add directory, duration, executor and session to each row (default: false) | |
| offset | No | Rows to skip; pass the response's next_offset to page forward | |
| executor | No | Filter by executor (e.g. claude-code, cursor) | |
| directory | No | Directory to analyze, including its subtree (defaults to all) | |
| session_id | No | One agent session (e.g. claude-<id>, codex-<id>, opencode-<id>, cursor-<id>, or the agent's own id): report its git snapshots; directory, hours and executor are then ignored, and limit/offset page its files |