Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 56 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ codexometer --codex /path/to/codex
| `t` | Cycle color themes |
| `Tab` | Select the next top-level tab: Quota, Sessions, Usage, or Benchmark |
| `Shift+Tab` | Select the previous top-level tab |
| `r` | Refresh account history in Usage; otherwise refresh quota data |
| `r` | Open Resume from the Sessions list; refresh account history in Usage or quota data on other tabs |
| `v` | Cycle views within Quota or Usage |
| `z` | Zero the Sessions baseline |
| `s` | Open Benchmark Scope (Benchmark view only) |
Expand Down Expand Up @@ -1381,6 +1381,18 @@ twice. Legacy spawned-agent rollouts without an ordinal boundary are separated
at the child session timestamp: inherited cumulative totals establish the child
counter baseline but are not reported as new usage.

Select the **AGENTS** count or use **`/subagents`** to inspect the selected
session's linked workers. The picker shows each known agent's status; open
one to read its completed transcript without switching the parent composer,
moving approvals, or changing token totals. Transcript reads require a
connected shared app-server and omit turns that cannot be attributed to the
child (including inherited parent history).

Use **`/ps`** from a live session's command browser to list the background
terminals reported by its shared app-server. The read-only panel shows the
command and directory, plus a PID only when Codex provides one. Refresh with
**R** in the terminal or **Refresh** in the browser. It never stops a process.

Attention detection reads only content-free lifecycle metadata, per-thread
writer-lock state, and—when available—the shared app-server's runtime thread
status. A held writer lock plus a completed turn reliably identifies an open
Expand All @@ -1405,17 +1417,46 @@ reveals its session even if it was filtered out. On a shared app-server, names
follow Codex rename events and are refreshed on reconnection; ordinary CLI
sessions still use Codex’s local name index.

**Include history** is off by default. With a local, shared Codex **0.170.0+**
app-server signed in to ChatGPT, enable it under the **All** sessions category
to browse this account’s non-archived saved sessions across model providers,
including providers you no longer use. In the terminal use **Tab** to focus
the checkbox, **Space** to toggle it, then **Tab** to the results. Use **↑/↓**
and **Enter** to open a result or load more; **Esc** or **[←]** returns from
the saved detail. The filter searches metadata in the pages loaded so far,
not message text. Each saved result can show up to ten completed turns,
newest first. Browsing never resumes a session, marks it as read, changes
the totals, or enables a write action. There is no new on-disk index; without
a compatible shared server, the live filter still works.
**Finding an older conversation:** choose **`/resume`** in the slash-command
browser. In the terminal Sessions list, press **R** or **/** or click **Resume**,
even with no live session to select. The web Sessions page also has a
**Saved sessions** button.
With a shared Codex **0.170.0+** app-server signed in to ChatGPT, the picker
starts with recent non-archived saved sessions. Type part of a session name to
filter, regardless of case; Resume does not search paths, IDs or conversation
text. Codexometer loads saved-session metadata in the background and filters
it in memory. Verified matches appear without waiting for older pages. The
index is cleared when the shared connection or account changes. Transcripts
load only when you open a preview, and preview and resume still verify the
target with Codex.
Leave the field empty to browse unnamed sessions too. If the search has
not reached the end of the saved list, choose **Search older sessions** to
continue. **Time ago** shows when Codex last updated each session; a dash means
Codex did not report a timestamp. In the **SAVED // SESSIONS** box, use **↑/↓** to move the cursor
through the results and **Enter** or **R** to resume the highlighted session.
While the search field is focused, **R** types normally. Use **→** or click a
match to preview up to ten completed turns without resuming. Saved replies
and linked-agent transcripts use the same Markdown formatting as live replies.
The browser provides a **Resume** button on the preview. A resumed idle session has a
composer. If the live session takes longer to appear, the picker keeps waiting.
If the outcome is unknown, check Codex before trying again; Codexometer does
not automatically resend the request. Resume does not send a prompt; existing
automation, such as an active goal, still follows Codex's rules. The read-only web
app offers the same search under **Saved sessions** without the Resume action.
This does not build a separate on-disk index or change the live Filter box.

**Starting a conversation:** in the terminal Sessions list, choose
**New session** next to **Zero** and **Close all** (or press **N**).
In write-enabled web mode, choose **New session** beside **Saved sessions**.
With the same shared server, this opens a blank composer without creating a
Codex thread. Check the working directory, then send the first message to
start it using Codex's normal defaults. The selected directory must already
be explicitly trusted in Codex's user configuration; use the same directory
where you approved folder trust in Codex (usually the repository root).
Codexometer does not grant trust. Type **`/resume`** or choose **Resume**
(**Saved sessions** in web mode) in the draft to open an existing conversation instead.
Closing the picker returns to your draft. Closing the draft before sending
creates nothing. If Codexometer cannot verify a send, it will not retry it.

Named sessions show `<short session ID> // <name>` in the left telemetry panel's border
title, with the directory path inside the box beneath model information when
Expand Down Expand Up @@ -4000,9 +4041,9 @@ temporary.
The [slash-command support audit](docs/slash-command-support.md#recommended-delivery-order)
is the canonical prioritised backlog. Native reviewer controls and exact-action
retry consent are delivered in v0.30.0, not pending work. Recommended next
increments are read-only `/ps`, `/status` and `/warnings` views, followed by
compaction, linked-agent navigation and reviewed background-terminal stopping.
Thread creation/resume/fork and full project-context transitions need their own
increments are read-only `/status` and `/warnings` views, followed by
compaction and reviewed background-terminal stopping. Thread creation/fork
and full project-context transitions need their own
lifecycle foundation. These are proposals, not delivery commitments.

### Go 1.27 follow-ups
Expand Down
Binary file modified assets/screenshots/approval.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 6 additions & 6 deletions assets/screenshots/manifest.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified assets/screenshots/scheduler.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/screenshots/sessions.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 7 additions & 7 deletions docs/slash-command-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ These are adapter/workflow gaps. Where an API exists it is listed.
| --- | --- | --- | --- |
| `/new` | P1 | High | `thread/start` exists; needs creation options and selection/handoff to the new thread. Proposed next increment: build the common thread-creation/handoff foundation, including subscriptions, drafts and selection. |
| `/clear` | P2 | Medium | Native clear starts a new chat and clears its terminal; no combined local clear/`thread/start` workflow. Hiding monitor rows is different. Proposed next increment: a local clear/new-chat action after the /new foundation exists; Medium assumes that dependency is complete. |
| `/resume` | P1 | High | Sessions can browse paginated saved history read-only; this does not resume a thread. A native resume command still needs verified load/handoff; share the lifecycle foundation with /new and /fork. |
| `/resume` | Implemented | Done | Search current-account saved sessions, preview completed turns, and explicitly load a selected thread into Sessions detail without sending a turn. The browser only enables the Resume action in write mode. |
| `/fork` | P1 | High | `thread/fork` exists; needs options, confirmation and handoff while preserving source drafts. Proposed next increment: a reviewed fork and verified new-thread selection, retaining source history/draft and correct telemetry accounting. |
| `/worktree` | P2 | Very high | Needs actual Git worktree creation/ownership/cleanup plus thread creation/fork. No worktree manager; a cwd update is insufficient. Proposed next increment: managed worktree creation and conversation transition after thread handoff and project-context changes are supported. |
| `/archive` | P2 | Medium | `thread/archive` exists; no archive confirmation/handoff. Close/Close All only hide rows. Proposed next increment: confirm the exact session, observe archive completion and select another row without discarding unrelated drafts. |
Expand All @@ -92,7 +92,7 @@ These are adapter/workflow gaps. Where an API exists it is listed.
| `/recap` | P2 | High | Native summarization workflow has no adapter/progress UI; verify that workflow before choosing a server operation or prompt. Provisional estimate: first establish the native summarization semantics, then add a reviewed summary workflow without changing the source conversation unexpectedly. |
| `/review` | P2 | High | `review/start` exists; no review-target picker, delivery mode or progress UI. Proposed next increment: target/delivery selection, confirmed start and a dedicated review-progress/result view. |
| `/side`, `/btw` | P3 | High | No slash-driven side-conversation creation/return workflow. Codexometer already observes persisted attached side chats as independent rows, preserving their attachment separately from spawned-agent lineage; observation is not native creation/navigation parity. Proposed next increment: reviewed creation, exact thread routing, separate drafts and source-thread return using the lifecycle foundation. |
| `/ps` | P1 | Medium | `thread/backgroundTerminals/list` exists; no list/detail adapter. Telemetry process/session views do not reproduce it. Proposed next increment: a read-only, session-scoped terminal list with command/state detail and refresh; foundation for /stop. |
| `/ps` | Implemented | Done | Lists background terminals for the selected connected session using `thread/backgroundTerminals/list`, with refresh. Read-only in both interfaces; does not stop processes. |
| `/stop`, `/clean` | P1 | Medium | `thread/backgroundTerminals/clean` exists; no session-scoped stop-all review and verification. Turn interruption is a different action. Proposed next increment: confirm and verify stop-all for the selected session, using the /ps inventory and leaving other sessions alone. |
| `/status` | P1 | Medium | Settings/usage reads exist; detail/footer show related data, but no consolidated status slash view. Proposed next increment: a consolidated read-only view of running configuration, permission scope, directory and usage; live configuration adds work beyond a navigation alias. |
| `/debug-config` | P2 | Medium | `config/read` with layers and `configRequirements/read` exist; no directory-aware configuration-source/requirements inspector. Proposed next increment: a read-only effective-layer/requirements inspector with bounded display and sensitive-value handling. |
Expand All @@ -116,7 +116,7 @@ These require Codexometer UX, not forwarding the command name to a server.
| `/presets` | P3 | High | Native saved prompt/slash-command presets use the CLI's quick-dial picker and local settings; no Codexometer adapter or preset editor exists. Proposed next increment: explicitly scoped save/edit/delete and invocation of reusable prompts/commands, with separate persistence, target validation and confirmation of any resulting action. Never treat a saved slash command as a model prompt. |
| `/config` | P3 | High | Native preferences browser launches editors for CLI-local presentation, providers and other settings. Codexometer has local theme/statusline preferences but no equivalent configuration hub or native global-settings editor. Proposed next increment: begin with the read-only `/debug-config` foundation; design any persistent editor separately with effective-scope, ownership and reload/restart handling. |
| `/agents` | P2 | High | Native agent command center has no adapter; linked-session grouping is not a matching management center. Proposed next increment: a dedicated agent state/management view with capability-aware controls and exact child/root routing. |
| `/subagents` | P1 | Medium | Linked agents are visible in grouping; no slash picker switches their native CLI views. Proposed next increment: a linked-agent picker with separate child detail and preserved root/draft state; native-client switching is not implied. |
| `/subagents` | Implemented | Done | Opens a read-only picker for linked agents and attributable child transcripts; the parent remains the target for composing and approvals. |
| `/export` | P2 | High | No Markdown export; needs complete paginated history plus a file/download destination. Proposed next increment: complete paginated transcript retrieval and Markdown export with bounded streaming/file/download handling; existing excerpts are insufficient. |
| `/diff` | P2 | High | No repository diff browser with tracked/untracked handling and explicit repository context. Proposed next increment: a directory-aware tracked/untracked diff view with large/binary-file handling and no inferred repository scope. |
| `/mention` | P2 | High | No structured file-mention picker or associated attachment/input metadata routing. Proposed next increment: file search/selection plus structured input metadata through review, send/steer and draft handling. |
Expand All @@ -143,12 +143,12 @@ These require Codexometer UX, not forwarding the command name to a server.

## Recommended delivery order

1. **P1 read-only additions:** `/ps`, `/status` and `/warnings` views. The Low-complexity `/usage` and `/copy` aliases are implemented. They build on existing controls and improve visibility before adding more mutations.
2. **P1 session controls:** `/compact`, the linked-agent `/subagents` picker, and reviewed `/stop`/`clean` built on `/ps`. `/approve` and the native reviewer controls are delivered; exact child-thread review routing would be a separate extension, not a reason to list `/approve` as missing.
3. **P1 lifecycle foundation:** `/new`, `/resume` and `/fork`, sharing subscription, selection, draft and history-handoff handling. Then pursue full `/cd` project-context parity; it depends on this foundation and remains Very high complexity.
1. **P1 read-only additions:** `/status` and `/warnings` views. `/ps`, `/usage` and `/copy` are implemented. They build on existing controls and improve visibility before adding more mutations.
2. **P1 session controls:** `/compact` and reviewed `/stop`/`clean` built on `/ps`. `/subagents`, `/approve` and the native reviewer controls are delivered; exact child-thread review routing would be a separate extension, not a reason to list `/approve` as missing.
3. **P1 lifecycle foundation:** `/new` and `/fork`, reusing the subscription, selection, draft and history handoff used by `/resume`. Then pursue full `/cd` project-context parity; it depends on this foundation and remains Very high complexity.
4. **P2 extensions:** `/plan` inline prompts, `/archive`, `/debug-config`, daemon diagnostics and reviewed `/init`; then `/review`, `/export`, `/diff`, `/mention`, skill invocation and MCP login/inspection. Put `/clear` after `/new`, agent management after linked-agent navigation, and `/worktree` after lifecycle/project-context support. `/goal` is now implemented.
5. **P3/Defer:** optional global/account, `/presets`, `/config`, import, installation, sandbox, daemon lifecycle, keymap and composer-mode work require explicit scope and demand. Treat daemon diagnostics as the smaller first step to its P2 workflow. Voice, IDE integration and pets should not displace core monitoring/control work. Exclude internal debug and retired/unregistered names.

The next recommended feature PR remains **`/ps`**, a Medium-complexity read-only background-terminal inventory. Add **`/status`** and **`/warnings`** as separate read-only increments. Native `/approve` and reviewer configuration are already delivered in v0.30.0; the local `/usage`, `/copy`, `/theme`, `/exit`/`quit` and statusline features also remain implemented. Subsequent PRs can add compaction and background-terminal stopping using those views. Full directory-context transitions need a separate design and PR covering project configuration/trust loading, conversation handoff and attached-client behavior. These are roadmap recommendations, not new features in this documentation update.
The next recommended feature PRs are **`/status`** and **`/warnings`** as separate read-only increments. Subsequent PRs can add compaction and reviewed background-terminal stopping. Full directory-context transitions need a separate design covering project configuration/trust loading, conversation handoff and attached-client behavior.

For future updates, compare both the next installed version's registry and generated protocol. Omission from the published list is not evidence that a command is unsupported.
1 change: 1 addition & 0 deletions internal/codex/daemon_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ type sessionStatusProvider interface {
type sessionDaemonSnapshot struct {
Names map[string]string
SavedScope string
ResumedThreads map[string]struct{}
AttachedThreads map[string]string
ReadStates map[string]SessionReadState
Goals map[string]*SessionGoal
Expand Down
Loading
Loading