# ed file-changes

> Observe one selected workspace recursively and retain a bounded debugging timeline. Commands route to the fileChangeTimeline extension's running owner.

- Canonical URL: https://getedith.pro/docs/cli/file-changes
- Updated: 2026-12-02

Observe one selected workspace recursively and retain a bounded debugging
timeline. Commands route to the `fileChangeTimeline` extension's running owner.

[The `ed` command line](https://getedith.pro/docs/cli)

| Command | Arguments and behavior |
| --- | --- |
| `ed file-changes status` | Show preparing, watching or stopped state, event and bookmark counts, eviction count and any watcher error. This is the default subcommand. |
| `ed file-changes watch <workspace>` | Select a folder, absolute or relative to the current directory, and begin preparing a new baseline. The workspace is stored as its real path, so `/tmp/x` becomes `/private/tmp/x`. Repeat `--exclude <relative-path>` for excluded subtrees; surrounding whitespace and trailing slashes are ignored, so `build/` excludes `build`. Without this option, `.git` is excluded. An explicit list replaces that default; `--exclude ''` watches with no exclusions. |
| `ed file-changes events` | Show retained bursts with event UUIDs, types and paths. Use `--kind create`, `modify`, `rename` or `remove` to filter observations. |
| `ed file-changes stop` | Release the watcher and retain the current timeline. |
| `ed file-changes restart` | Restart the selected workspace with a fresh baseline and a new burst boundary. The workspace and exclusions are remembered across app launches, so `restart` resumes the last selection. |
| `ed file-changes bookmark <id>` | Save an event UUID from the retained timeline. Add `--remove` to remove that bookmark. An id that is not in the retained timeline is rejected. |
| `ed file-changes bookmarks` | List saved events with their original workspace. |

All commands accept `--json`. `watch` and `restart` return while baseline
preparation is pending. Poll `status --json` until `watching` is true; inspect
`error` if preparation fails. Invalid exclusions are rejected before replacing
the active watcher. A runtime scan failure appears in status rather than a
previous command's exit code.

The timeline retains at most 1,000 events. Consecutive observations within one
second join a burst, for at most five seconds. Stop and restart retain the
timeline but separate subsequent bursts. Changing the workspace or exclusion
list clears that session's timeline. Bookmarks have a separate 100-event limit
and persist in the extension's preferences. Watching ends on extension disable
or app exit. The selected workspace and exclusions persist in the extension's
preferences and come back stopped after a relaunch; `restart` resumes them.

## JSON contracts

`status`, `watch`, `stop` and `restart` return a snapshot with `configuration`
(`workspace`, `exclusions`), `watching`, `scanning`, `bursts`, `bookmarks`,
`evicted`, `unreadable` (up to 100 relative folders that could not be read), and
optional `notice` and `error` fields. `events` returns the `bursts`
array. `bookmarks` and `bookmark` return the bookmark array. Dates use ISO 8601.

A burst contains `id`, `started`, `ended` and `events`. An event contains `id`,
`kind` (`create`, `modify`, `rename`, `remove`), `path`, `date` and optional
`previousPath`. Paths are relative to the selected workspace. A bookmark stores
`workspace` and the original `event`; its identity is the event UUID. JSON escapes
paths containing newlines and other special characters.

```sh
ed file-changes watch /tmp/timeline-example --exclude .git --exclude cache --json
ed file-changes status --json
ed file-changes events --json
ed file-changes bookmark <event-uuid> --json
ed file-changes restart --json
```

The watcher reads file metadata and records observations. Symlink targets are
not traversed. Exclusions are literal relative subtrees, not glob or regex
patterns. Changes inside excluded subtrees never trigger a scan. The scan limit
is 100,000 entries. A folder that vanishes during a scan is skipped without
stopping the watcher. A folder that cannot be read keeps its earlier entries and
is listed in `unreadable`. Watching stops with an `error` only when the
workspace itself is missing or unreadable or the limit is exceeded; restart
recovers. Renaming or removing a folder records one rename or remove for the
folder rather than one per descendant. Transient files and intermediate writes
between snapshots may be absent; event dates identify observations.

## Exit codes

| Code | When |
| --- | --- |
| 0 | The command completed. `watch` and `restart` return while the baseline is still being prepared |
| 1 | The bookmark limit of 100 is reached |
| 2 | The command line was wrong: an unknown `--kind`, a malformed event UUID, or an invalid `--exclude` path such as `../outside`, `a//b` or `./cache` |
| 3 | The `watch` folder does not exist, the `bookmark` event is not in the retained timeline, or `restart` has no selected workspace |
| 4 | The File change timeline extension is not running |

## Get Edith

Edith is a native Mac app for macOS 14 or later on Apple silicon with 100+ extensions, the `ed` command line and an MCP server. $35 once for one Mac, plus $7 for each additional Mac, with no subscription and a 30-day refund.

- [Buy Edith](https://getedith.pro/pricing): $35 once for one Mac, plus $7 for each additional Mac
- [Download Edith](https://getedith.pro/download): the installer, or Homebrew
