Numable authoring docsthe same content is available in the terminal: `numable docs <topic>`中文

agent — global reports for Claude Code and Codex

Local Claude Code and Codex share report protocols and rendering, with separate user-level instructions and hooks. No new model key or second model call is required. Install the CLI and local Chrome / Chromium first. Cloud sessions need installation in their execution environment; configuring this machine does not enable ordinary browser chats.

Install, status and uninstall

numable agent install --target all --scope user
numable agent status --target all --json
numable agent uninstall --target all --scope user

--target accepts claude, codex or all (default); only user scope is supported. Installation appends managed report instructions and merges UserPromptSubmit and Stop hooks, preserving existing settings and hooks. Reinstallation is idempotent.

Host Global instructions Hooks
Claude Code ~/.claude/CLAUDE.md ~/.claude/settings.json
Codex ~/.codex/AGENTS.md, or a non-empty global AGENTS.override.md when present ~/.codex/hooks.json

The host variables CLAUDE_CONFIG_DIR and CODEX_HOME are respected. Instructions and hooks use the current CLI's absolute runtime path. Install from a permanent location and rerun installation after moving or replacing it.

Backups are stored in ~/.numable/report-agent/backups/. Uninstall removes only managed sections and hooks, preserving original and subsequently added user content, reports and backups. Edited managed sections are preserved with an error instead of overwritten. Unknown flags fail rather than silently taking effect.

Host activation and verification

Installation means configuration was written, not that the host loaded or verified it. Start a new session; review and trust Codex's non-managed hooks through /hooks. The CLI never writes trust records or bypasses approval. Claude Code is also subject to workspace trust and disabled-hook settings.

status checks that each hook exists once, instruction markers exist and the CLI file exists. These static checks do not prove live-session operation. Run a small task in a fresh session of each host: confirm request injection, report invocation and an output-file reference in the reply. Embed images where supported; otherwise provide an accessible local PNG path.

Per-turn report protocol

After a user prompt, the hook creates a separate request file and supplies its path to the AI. The current agent owns dates, task facts and template selection; use numable docs reports for selection rules. Keep template geometry fixed and update data.

numable agent report --request /absolute/path/request.json --template conclusion --data finding.json --json
numable agent skip --request /absolute/path/request.json --reason "用户明确不需要图片" --json

report writes PNG and metadata inside the turn's directory and registers success. skip requires a real reason such as user preference or an unavailable rendering environment; it is not the default escape. Render failure is recorded and returns a non-zero code, allowing an explanation and a text-only ending.

Stop checks for a current image and its path in the final message. It asks for continuation at most once, and does not block an already hook-continued turn. Internal continuations reuse the request. Subagents do not create separate reports. Full chat transcripts are neither read nor uploaded; user message text is not stored.

If no request was supplied, create one manually and use the returned request:

numable agent begin --target codex --json

Records are separated by host, session and turn; stale requests cannot register a new turn. The default is ~/.numable/report-agent/sessions/; NUMABLE_REPORTS_HOME changes the storage root. Users manage history and uninstall never deletes it.

Runtime boundaries

Guidance requests an image each turn, respecting an explicit user refusal. Hooks provide one reminder, not evidence authentication or an ability to force unsupported clients to execute commands. Existing chats may not reload configuration; verify a fresh session.

Node, CLI and Chrome must be accessible in the host execution environment. Separate machines, cloud and restricted environments need separate integration. Web rendering and hook replay do not replace fresh host-session testing or device verification.