> ## Documentation Index
> Fetch the complete documentation index at: https://docs.actual.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# actual session

> Report what Actual AI did in a coding session

```bash theme={null}
actual session <COMMAND>
```

## Subcommands

| Command | What it does |
| - | - |
| [`actual session summary`](#actual-session-summary) | One line on the ADRs a session added to the agent's context, and the areas it worked in that no ADR covers |

## actual session summary

One line on the ADRs a session added to the agent's context, and the areas it worked in that no ADR covers

```bash theme={null}
actual session summary [OPTIONS]
```

**Options**

| Option | Default | What it does |
| - | - | - |
| `--claude-hook` | | Read a Claude Code `Stop` envelope from stdin and print the line when an ADR was added or an area with no ADR found, and the line changed since it was last shown, recording it as shown. Prints nothing otherwise, and always exits 0 |
| `--codex-hook` | | The same for a Codex `Stop` envelope, printed as the hook's `{"systemMessage": …}` reply so Codex shows it to the user |
| `--session <ID>` | | The session to summarize, in direct mode, which prints the current line and never records it as shown. A rule set holding no decision has no line |
| `--repo <PATH>` | | Repository root. Defaults to the current directory, under `--claude-hook` too: the envelope's `cwd` is never read |
| `--rules-dir <PATH>` | | Rule directory, when it is not `<repo>/.actual/rules` |
| `--json` | | Print the counts, the decisions added, the areas with no ADR and the line as JSON, in direct mode |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.