| name | ctx-history |
| description | Browse session history. Use when referencing past discussions or finding context from previous work. |
| allowed-tools | Bash(ctx:*) |
Browse, inspect, and import AI session history.
When to Use
- When the user asks "what did we do last time?" or references
a past discussion
- When looking for context from previous work sessions
- When importing sessions to the journal for enrichment
- When searching for a specific session by topic, date, or ID
When NOT to Use
- When the user just wants current context (use
/ctx-status
or /ctx-agent instead)
- When session data is already loaded in context (no need to
re-fetch)
- For modifying session content (source browsing is read-only;
edit journal files directly)
Usage Examples
/ctx-history
/ctx-history list --limit 5
/ctx-history show <slug-or-id>
/ctx-history import --all
Subcommands
ctx journal source
List recent sessions, newest first.
| Flag | Short | Default | Purpose |
|---|
--limit | -n | 20 | Maximum sessions to show |
--project | -p | "" | Filter by project name |