# ed agent tasks

> Submits and inspects work owned by Edith's background agent. Closing the submitting app or CLI does not discard accepted work.

- Canonical URL: https://getedith.pro/docs/cli/agent/tasks
- Updated: 2026-12-02

Submits and inspects work owned by Edith's background agent. Closing the submitting app or CLI
does not discard accepted work. `ed agent tasks` defaults to `ed agent tasks ls`.

```text
ed agent tasks ls [--json]
ed agent tasks inspect <id> [--json]
ed agent tasks cancel <id> [--json]
ed agent tasks exec [--json] [--detach] [--timeout 300] -- /absolute/executable [arguments...]
```

`ed agent tasks exec` requires `--` before an absolute executable path. Everything
after that separator belongs to the child command, including `--help` and
`--json`. Without `--detach`, the CLI waits and returns the child's exit code.
`--detach` returns the accepted task UUID immediately. JSON returns the task
snapshot when detached, or the completed command result when waiting.

`ed agent tasks inspect` returns the snapshot, retained output and result.
`ed agent tasks cancel` requests cancellation and returns the resulting snapshot.
Inspect again to distinguish stopping from final cancellation. Queued work can
be cancelled before it starts, and running commands stop their owned process group.

The background agent limits queue concurrency and retained output. Active work interrupted
by a restart remains inspectable as interrupted, while completed results stay
available. Cancellation does not roll back a command's earlier external effects.

```sh
ed agent tasks exec --detach --json -- /bin/sh -c 'sleep 2; printf "finished\n"'
ed agent tasks ls --json
ed agent tasks inspect 11111111-1111-1111-1111-111111111111 --json
```

- [`ed agent`](https://getedith.pro/docs/cli/agent), the rest of this group
- [All `ed` commands](https://getedith.pro/docs/cli)

## 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
