result

A command that retrieves the saved output of a completed Codex job. It can use the latest finished job or a specified job reference.

In plain words
What is it for?
Use it to fetch stored Codex output and its metadata after an asynchronous task finishes.
Why use it?
It lets you read results from background jobs without rerunning them, while explaining whether a job is still running, unknown, or missing.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/xiaolai/cc-suite/result
Clone the repo
git clone --depth 1 https://github.com/xiaolai/cc-suite
Per session 9 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 561 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00009 $0.00561
Opus 5 $0.00005 $0.00280
Sonnet 5 $0.00002 $0.00112
Haiku 4.5 $0.00001 $0.00056

Measured 2d ago against content hash ec0f2a172f88, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

result scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/result.md · 68 lines

How it starts

The opening of the file, as written. The whole thing — 68 lines — stays where its author put it; the contents beside it link to each section on GitHub.

User Input

$ARGUMENTS

Workflow

Step 1: Resolve the job and read its stored result

Resolve the reference (empty → most recent finished job for this session; otherwise exact or prefix match) and load the stored result in one call:

node -e "
  const { resolveResultJob, readStoredJob } = await import('${CLAUDE_PLUGIN_ROOT}/scripts/lib/job-control.mjs');
  try {
    const reference = process.argv[1] || undefined;
    const { workspaceRoot, job } = resolveResultJob(process.cwd(), reference);
    const stored = readStoredJob(workspaceRoot, job.id);
    console.log(JSON.stringify({ job, stored }, null, 2));
  } catch (error) {
    console.error(error.message);
    process.exitCode = 1;
  }
" -- "$ARGUMENTS"

If the command exits non-zero, relay the single-line message it printed to stderr verbatim (it already distinguishes still-running jobs, unknown references, ambiguous prefixes, and no-finished-jobs) and STOP.

Step 2: Check the stored payload

stored contains the raw Codex output and metadata. If stored is null or does not contain usable output, report Result file missing or unreadable for job {job-id} — it may have been pruned. Run /cc-suite:status to see available jobs. and STOP.

Step 3: Display the result

# Codex Result

**Job**: {id}
**Kind**: {kind}
**Status**: {status}
**Duration**: {duration}
**Thread ID**: `{threadId}` _(use `/continue {threadId}` to iterate)_

---

{raw Codex output}

---

_Job: `{id}` | Thread: `{threadId}` | Run `/continue {threadId}` to follow up._

If the job failed, show the error message instead of the raw output.

Step 4: Offer next steps

Based on the job kind:

  • audit: "Fix issues with /audit-fix, verify with /verify, or drill deeper with /continue {threadId}"
  • implement: "Review changes with git diff, run tests, or continue with /continue {threadId}"
  • bug-analyze: "Apply the fix, or drill deeper with /continue {threadId}"
  • verify: "Run /audit for a fresh scan, or /audit-fix to fix remaining issues"

Read the full file on GitHub · 68 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 68 lines · 9 tokens per session scan A ec0f2a172f88

Subscribe to this mod's changes

result is a command published in the GitHub repository xiaolai/cc-suite (44 stars, last pushed 24d ago), licensed ISC. It adds 9 tokens to every session and 561 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.