codex/skills/seq/SKILL.md
Mine Codex session JSONL (`~/.codex/sessions`) and memories (`~/.codex/memories`) for explicit `$seq` and artifact-forensics questions. Prefer `artifact-search`, then `adjudication-audit` for selected/rejected review-adjudication audits, then `skill-success-rank`, `skill-audit`, `workflow-audit`, `tool-audit`, `memory-inventory`, `message-search`, `workdir-report`, `skill-blocks`, `plan-search`, `session-prompts`, `session-tooling`, `orchestration-concurrency`, then `query-diagnose`, then generic `query`. Run opencode only when the request literally says `opencode`.
npx skillsauth add tkersey/dotfiles seqInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Mine ~/.codex/sessions/ JSONL and ~/.codex/memories/ files quickly and consistently with the Zig seq CLI. Explicit $seq requests and artifact-forensics questions are seq-first. Focus on skill usage, format compliance, token counts, tool-call/tooling forensics, memory-file mining, and session-backed proof.
$seq asks.$plan artifacts (<proposed_plan> blocks) for a repo, session, or time window."use $seq to find it" / "what did that session actually say")."what's in MEMORY.md", "which rollout produced this memory", "is this memory stale", "how do memory_summary.md and rollout_summaries relate").Orchestration Ledger, subagent lifecycle events, concurrency counts).max_concurrency, effective fanout, occurrences of peak parallelism, planned rows vs actual parallelism).seq first for explicit $seq asks and artifact-forensics work; do not jump to generic shell search unless seq cannot cover the need.seq artifact-search for broad forensics; use seq plan-search first when the request is specifically about finalized <proposed_plan> artifacts.plan-search for finalized $plan artifact retrieval; otherwise artifact-search.memory-provenance for "why is this memory here now?" / "which rollout introduced it?" questions about one memory thread or rollout summary.memory-history for "what changed over time?" questions about one memory thread or a topic across the memory corpus.memory-map for "what artifacts exist for this topic/thread and what's the fastest evidence path?" questions.skill-blocks for exact historical <skill>...</skill> extraction by skill name, with full block bodies and distinct-version history.plan-search for strict repo/session/time/text retrieval of complete <proposed_plan> blocks.find-session for prompt-to-session lookup.session-prompts for "what did that session actually say" and transcript proof.adjudication-audit for selected/rejected $review-adjudication audits, including root-equivalent workflows such as $resolve when explicitly included.skill-success-rank for ranked successful skill activation reports over recent windows without raw mention inflation.skill-audit for raw skill mention summaries, one-skill mention rows, and one-skill daily trends.workflow-audit for workflow-cohort utilization reports across text, skill mentions, tool traces, session graph roles, and outcome signals.tool-audit for shell/tool command summaries by executable/tool/session/workdir/command plus row, args, and unresolved modes.memory-inventory for memory category/file/block/stage1/extension inventory without hand-writing memory_* query specs.message-search for direct message text search with --contains, --regex, --contains-any, or --contains-all.workdir-report for canonical session summaries and session lists by cwd.session-tooling for shell/tool summaries.orchestration-concurrency for ledger/concurrency proof.sessions for trace inventory: session ids, paths, cwd/repo, status, model, token totals, and worker kind.turns for canonical turn-level questions: per-turn status, user/final previews, duration, tokens, compaction, and errors.session-detail for full per-session proof: session metadata, turns, tools, graph edges, and warnings in one JSON or markdown artifact.tool-lifecycle when lifecycle completeness matters: declared/completed/failed/unresolved calls, exit/status/output evidence, and typed tool endings.session-graph for worker/orchestrator relationships, including parent/worker proof paths and DOT output.tail for active sessions or one-shot trace event status from the current/newest rollout.message-audit for role/session summaries around repeated message searches, especially when the next step would otherwise be jq grouping.skill-cohort for "what else appears in sessions that used this skill?" cohort work.tool-search for lifecycle-aware command/tool text search plus summary or argument grouping.memory-extension-audit for live memory extension inventory; treat its provenance fields as inventory evidence, not causal proof of behavior.token-window for max rolling token windows over timestamp-sorted token_deltas.opencode-prompts / opencode-events only when the literal gate is satisfied.query-diagnose when a seq query run needs lifecycle debugging or deterministic next actions.seq query only when no specialized command covers the question.query-diagnose as a diagnostic tool for seq query, not the default artifact-discovery entrypoint.artifact-search or plan-search, then specialized memory/session/tooling/orchestration/trace surfaces, then query-diagnose, and only then generic query.~/.codex/memories as a file-backed memory workspace, not an opaque store.seq CLI remains the structured inventory, provenance, history, session-correlation, and reporting surface.memory_summary.md: compact routing/index layer. Use it first when the question is broad or you need to decide where to dig.MEMORY.md: durable handbook/registry. Use it first when the question is about reusable guidance, prior decisions, or task-family history.raw_memories.md: merged stage-1 raw memories. Use it for recency and inventory, especially when tracing newly added or removed memory inputs.rollout_summaries/*.md as per-rollout markdown summaries, not JSONL logs.
thread_id, updated_at, cwd, rollout_path, and sometimes git_branch.rollout_path to jump to the original session JSONL under ~/.codex/sessions when you need raw evidence.skills/ under the memory root as optional memory-derived helper assets.seq first for inventory, routing, and timestamp/category analysis; do not pretend it replaces reading the target markdown files.seq has identified the relevant artifact; if they are unavailable, fall back to targeted file reads from ~/.codex/memories.seq memory-inventory --mode categories to see what categories and files exist.memory_summary.md.MEMORY.md.
3b. If the question is about one memory thread or one rollout summary artifact, prefer memory-provenance before manual markdown reads.
3c. If the question is about a topic across the memory corpus, prefer memory-map or memory-history before raw query.rollout_summaries/*.md file.rollout_path into ~/.codex/sessions/...jsonl; use seq session/orchestration commands only when they accept the handle you actually have, otherwise inspect the file directly.MEMORY.md / memory_summary.md over raw_memories.md when both cover the topic; raw_memories.md is a lower-level consolidation input, not the highest-level answer.opencode.seq opencode-promptsseq opencode-eventsseq query specs targeting dataset opencode_prompts or opencode_eventsopencode cue, hard-skip the opencode branch and continue with non-opencode seq datasets only.When iterating on the Zig-backed seq helper CLI path, use these two repos:
skills-zig ($HOME/workspace/tk/skills-zig): source for the seq Zig binary, build/test wiring, and release tags.homebrew-tap ($HOME/workspace/tk/homebrew-tap): Homebrew formula updates/checksum bumps for released seq binaries.run_seq() {
local os="$(uname -s)"
if command -v seq >/dev/null 2>&1 && seq --help 2>&1 | grep -q "skills-rank"; then
seq "$@"
return
fi
if [ "$os" = "Darwin" ]; then
if ! command -v brew >/dev/null 2>&1; then
echo "homebrew is required on macOS: https://brew.sh/" >&2
return 1
fi
if ! brew install tkersey/tap/seq; then
echo "brew install tkersey/tap/seq failed." >&2
return 1
fi
else
echo "seq runtime bootstrap is Homebrew/tap-backed; install seq from a released package before using this skill." >&2
return 1
fi
if command -v seq >/dev/null 2>&1 && seq --help 2>&1 | grep -q "skills-rank"; then
seq "$@"
return
fi
echo "no compatible seq binary found after install attempt." >&2
if [ "$os" = "Darwin" ]; then
echo "expected install path: brew install tkersey/tap/seq" >&2
fi
return 1
}
run_seq datasets --root ~/.codex/sessions
Commands below use seq directly for brevity. Use run_seq when you want brew-aware bootstrap with binary-only execution.
Run flexible mining via query with a small JSON spec (inline or @spec.json).
List datasets:
seq datasets --root ~/.codex/sessions
Show dataset fields/params:
seq dataset-schema --dataset token_deltas --root ~/.codex/sessions
Examples:
Rank skill usage:
seq query --root ~/.codex/sessions --spec \
'{"dataset":"skill_mentions","group_by":["skill"],"metrics":[{"op":"count","as":"count"}],"sort":["-count"],"limit":20,"format":"table"}'
Prefer the lifted shortcut:
seq skill-success-rank --root ~/.codex/sessions --last 14d --format table
seq skill-success-rank --root ~/.codex/sessions --skill seq --mode sessions --last 14d --format jsonl
seq skill-audit --root ~/.codex/sessions --limit 20 --format table
seq skill-audit --root ~/.codex/sessions --skill seq --mode trend --format table
seq workflow-audit --root ~/.codex/sessions --workflow fixed-point-driver --mode summary --since 2026-04-01T00:00:00Z --format table
seq workflow-audit --root ~/.codex/sessions --workflow fixed-point-driver --mode report --since 2026-04-01T00:00:00Z --format markdown
Audit command/tool usage:
seq tool-audit --root ~/.codex/sessions --group-by executable --limit 20 --format table
seq tool-audit --root ~/.codex/sessions --mode unresolved --format jsonl
Inventory file-backed memories:
seq memory-inventory --memory-root ~/.codex/memories --mode categories --format table
seq memory-inventory --memory-root ~/.codex/memories --mode blocks --contains synesthesia --limit 10 --format table
Search session messages:
seq message-search --root ~/.codex/sessions --contains "release workflow" --roles user,assistant --limit 20 --format table
seq message-search --root ~/.codex/sessions --contains-any "stale packet,transport-invalid" --format jsonl
seq message-audit --root ~/.codex/sessions --contains-any "jq,seq query" --roles user,assistant --exclude-current --format table
seq message-audit --root ~/.codex/sessions --contains "release workflow" --mode sessions --show-query --format json
Audit skill cohorts and tool searches without ad hoc post-processing:
seq skill-cohort --root ~/.codex/sessions --skill seq --since 2026-04-01T00:00:00Z --exclude-current --format table
seq skill-cohort --root ~/.codex/sessions --skill fixed-point-driver --mode mentions --format jsonl
seq tool-search --root ~/.codex/sessions --contains "seq query" --mode rows --exclude-current --format table
seq tool-search --root ~/.codex/sessions --session-id <session_id> --contains-any "jq,shasum,brew test" --mode rows --format table
seq tool-search --root ~/.codex/sessions --contains "jq " --mode args --format jsonl
Report workdir/cwd session activity:
seq workdir-report --root ~/.codex/sessions --workdir /Users/tk/workspace/tk/skills-zig --format table
seq workdir-report --root ~/.codex/sessions --contains "/Users/tk/workspace/tk" --mode sessions --limit 20 --format table
Daily token totals (from token_count events):
seq query --root ~/.codex/sessions --spec \
'{"dataset":"token_deltas","group_by":["day"],"metrics":[{"op":"sum","field":"delta_total_tokens","as":"tokens"}],"sort":["day"],"format":"table"}'
Use token-usage --tz ... instead when the user means local calendar days or asks for averages/summaries rather than raw UTC buckets.
Use token-window when the question is a rolling window, not a calendar bucket:
seq token-window --root ~/.codex/sessions --window-hours 24 --since 2026-04-01T00:00:00Z --exclude-current --format table
seq token-window --root ~/.codex/sessions --window-hours 6 --mode rows --format jsonl
Top sessions by total tokens:
seq query --root ~/.codex/sessions --spec \
'{"dataset":"token_sessions","select":["path","total_total_tokens"],"sort":["-total_total_tokens"],"limit":10,"format":"table"}'
Audit memory extensions without implying behavioral causality:
seq memory-extension-audit --extensions-root ~/.codex/memories/extensions --mode rows --format table
seq memory-extension-audit --extensions-root ~/.codex/memories/extensions --mode summary --format json
Rank tool calls:
seq query --root ~/.codex/sessions --spec \
'{"dataset":"tool_calls","group_by":["tool"],"metrics":[{"op":"count","as":"count"}],"sort":["-count"],"limit":20,"format":"table"}'
Prefer lifecycle-aware lifted summaries:
seq tool-audit --root ~/.codex/sessions --group-by executable --limit 20 --format table
Inspect lifecycle-enriched tool invocations:
seq query --root ~/.codex/sessions --spec \
'{"dataset":"tool_invocations","select":["timestamp","tool_name","command_text","workdir","wall_time_ms","exit_code","running_state"],"sort":["-timestamp"],"limit":20,"format":"table"}'
Flatten tool-call argument leaves:
seq query --root ~/.codex/sessions --spec \
'{"dataset":"tool_call_args","where":[{"field":"tool_name","op":"eq","value":"exec_command"}],"select":["timestamp","tool_name","arg_path","value_kind","value_text","value_number","value_bool"],"sort":["-timestamp"],"limit":20,"format":"table"}'
Memory files by category:
seq memory-inventory --mode categories --format table
Explain why a memory exists now:
seq memory-provenance --thread-id 019bae5d-7d12-7b01-9cb5-b8bb6046b85b --format table
Map the fastest evidence path for a memory topic:
seq memory-map --contains synesthesia --limit 5 --format table
Show an observed timeline for one memory thread:
seq memory-history --thread-id 019bae5d-7d12-7b01-9cb5-b8bb6046b85b --format table
Opencode prompts with source override:
seq query --spec \
'{"dataset":"opencode_prompts","params":{"source":"db","opencode_db_path":"~/.local/share/opencode/opencode.db"},"where":[{"field":"part_types","op":"contains","value":"file"}],"select":["session_slug","prompt_text","part_types"],"sort":["-time_created_epoch_ms"],"format":"jsonl"}'
Prebuilt specs live in specs/.
seq query --root ~/.codex/sessions --spec @specs/skills-rank.json
seq query --root ~/.codex/sessions --spec @specs/tools-rank.json
seq query --root ~/.codex/sessions --spec @specs/tokens-top-days.json
seq query --root ~/.codex/sessions --spec @specs/tokens-top-sessions.json
seq query --root ~/.codex/sessions --spec @specs/tk-trend-week.json
Top-level keys:
dataset (string, required)params (object, optional; dataset-specific)where (list of predicates, optional)group_by (list of field names, optional)metrics (list of aggregations, optional; default count when grouping)select (list of field names, optional; for non-grouped queries)sort (list of field names; prefix with - for descending)limit (int, optional)format (table | json | csv | jsonl; default: table when grouped, else jsonl)Where predicate shape:
{"field":"day","op":"eq","value":"2026-02-05"}
Supported where.op:
eq, neqgt, gte, lt, lte (numeric-ish compare)in, nin (value is a JSON list)contains (substring)contains_any (value is a JSON list of substrings; optional case_insensitive: true)regex (regex-like matching with ^, $, and alternation |; optional case_insensitive: true)regex_any (value is a JSON list of regex-like strings; OR semantics)exists, not_existsMetrics shape (grouped queries):
{"op":"sum","field":"delta_total_tokens","as":"tokens"}
Supported metrics.op:
countsum, min, max, avgcount_distinctseq skills-rank --root ~/.codex/sessions
Common options:
--format json|csv--max 20--since 2026-01-01T00:00:00Z--until 2026-03-01T00:00:00ZPrefer skill-success-rank when the question asks which skills were used successfully rather than which skill names were mentioned most:
seq skill-success-rank --root ~/.codex/sessions --last 14d --format table
seq skill-success-rank --root ~/.codex/sessions --skill prove-it --mode sessions --last 14d --format jsonl
seq skill-trend --root ~/.codex/sessions --skill tk --bucket week
seq skill-report --root ~/.codex/sessions --skill tk
Another example:
seq skill-report --root ~/.codex/sessions --skill tk \
--since 2026-03-01T00:00:00Z
seq role-breakdown --root ~/.codex/sessions --format table
seq section-audit --root ~/.codex/sessions \
--sections "Contract,Invariants,Creative Frame"
seq occurrence-export --root ~/.codex/sessions --format jsonl --output occurrences.jsonl
seq report-bundle --root ~/.codex/sessions --top 20
seq token-usage --root ~/.codex/sessions --top 10
Rolling-window summary:
seq token-usage --root ~/.codex/sessions \
--last 24h \
--summary \
--format json
Local-day summary with averages:
seq token-usage --root ~/.codex/sessions \
--since 2026-03-26T00:00:00-07:00 \
--tz local \
--summary \
--format json
Local-day rows without post-processing:
seq token-usage --root ~/.codex/sessions \
--since 2026-03-26T00:00:00-07:00 \
--tz local \
--format table
Path-heavy scope check:
seq token-usage --root ~/.codex/sessions \
--since 2026-03-26T00:00:00-07:00 \
--group-by path \
--top 20 \
--format table
Self-auditing accounting proof for user-visible token totals:
seq token-usage --root ~/.codex/sessions \
--since 2026-03-26T00:00:00-07:00 \
--until 2026-03-27T00:00:00-07:00 \
--tz local \
--summary \
--audit \
--format table
Use --audit when the answer needs to explain or defend the number. It reports the monotonic total_token_usage delta total, the naive last_token_usage total, duplicate-total rows excluded, reset events, null/missing-total rows, requested/observed span days, and bucket counts. State the scope explicitly: this is local ~/.codex/sessions corpus accounting, not OpenAI billing, organization-wide usage, or server-side metering.
When estimating what local Codex token usage would have cost at API prices, prefer native seq token-cost --pricing api with an exact model. If the trace does not record a known exact API model and the user has not supplied one, ask which API model/pricing to use instead of inferring from context window, Codex wording, or a Pro-tier label. Non-interactive/scripted runs should fail closed and tell the caller to pass --model <name>.
seq token-cost --root ~/.codex/sessions \
--last 24h \
--pricing api \
--model gpt-5.5 \
--reasoning-effort high \
--summary \
--format json
API pricing keeps cached tokens as their own billed input bucket: uncached input = total input tokens - cached input tokens; cached input uses cached-input pricing; output tokens are already the billable output bucket, while reasoning_output_tokens is reported separately and must not be double-counted. GPT-5.5 long-context pricing is reported separately when the input-token threshold is crossed.
Run stable workloads with fixed warmup/sample counts and optional baseline comparison.
zig build bench -Doptimize=ReleaseFast -- --config perf/frozen/workload_config.json
seq find-session --root ~/.codex/sessions --prompt "adapter=auto" --limit 20
Constrain to a session window:
seq find-session --root ~/.codex/sessions \
--prompt "adapter=auto" \
--since 2026-03-01T00:00:00Z \
--until 2026-03-05T00:00:00Z \
--limit 20
seq session-prompts --root ~/.codex/sessions --session-id <session_id> \
--roles user,assistant --strip-skill-blocks --limit 100 --format jsonl
Constrain to a time window within that session:
seq session-prompts --root ~/.codex/sessions --session-id <session_id> \
--roles user,assistant --since 2026-03-01T00:00:00Z --until 2026-03-05T00:00:00Z \
--strip-skill-blocks --limit 100 --format jsonl
Current session from the active Codex thread:
seq session-prompts --root ~/.codex/sessions --current \
--roles user,assistant --strip-skill-blocks --limit 100 --format jsonl
Return all distinct historical versions for one skill:
seq skill-blocks --root ~/.codex/sessions --skill accretive --format jsonl
Target one known session:
seq skill-blocks --root ~/.codex/sessions \
--skill accretive \
--session-id 019d2d3e-3f14-7e23-b5b9-cf4899a456df \
--format jsonl
Return every exact occurrence instead of distinct versions:
seq skill-blocks --root ~/.codex/sessions \
--skill accretive \
--history all \
--format jsonl
Return only the newest distinct version:
seq skill-blocks --root ~/.codex/sessions \
--skill accretive \
--history latest \
--format json
Repo-scoped metadata rows:
seq plan-search --root ~/.codex/sessions \
--repo "$HOME/workspace/tk/shift" \
--since 2026-03-01T00:00:00Z \
--format table
Filter by title/body text and show scan counters:
seq plan-search --root ~/.codex/sessions \
--repo "$HOME/workspace/tk/shift" \
--contains "PromptMode" \
--stats \
--format jsonl
Target one known session and include the exact plan block:
seq plan-search --root ~/.codex/sessions \
--session-id 019ce80b-9fb4-72a1-9c1e-3d626d4e4913 \
--include-body \
--format jsonl
Use these before raw seq query when the request matches the shape:
seq skill-audit --root ~/.codex/sessions --skill seq --mode trend --since 2026-04-01T00:00:00Z --format table
seq workflow-audit --root ~/.codex/sessions --workflow fixed-point-driver --mode report --since 2026-04-01T00:00:00Z --format markdown
seq tool-audit --root ~/.codex/sessions --group-by executable --since 2026-04-01T00:00:00Z --limit 20 --format table
seq memory-inventory --mode blocks --contains "release" --limit 20 --format table
seq message-search --root ~/.codex/sessions --contains-any "release,homebrew,tap" --roles user,assistant --limit 20 --format table
seq workdir-report --root ~/.codex/sessions --workdir "$HOME/workspace/tk/skills-zig" --mode sessions --format table
Summarize tool/shell activity for one session:
seq session-tooling --root ~/.codex/sessions --session-id <session_id> \
--since 2026-03-01T00:00:00Z --until 2026-03-05T00:00:00Z \
--summary --group-by executable --format table
Inspect seq query lifecycle health for one session:
seq query-diagnose --root ~/.codex/sessions --session-id <session_id> \
--since 2026-03-01T00:00:00Z --until 2026-03-05T00:00:00Z \
--threshold-ms 10000 --next-actions --format json
seq routing-gap --root ~/.codex/sessions \
--cue-spec @cue-spec.json \
--discovery-skills grill-me,prove-it,complexity-mitigator,invariant-ace,tk \
--format table
seq orchestration-concurrency --root ~/.codex/sessions --session-id <session_id> --format table
Or target one JSONL directly:
seq orchestration-concurrency --path /absolute/path/to/rollout.jsonl --format json
Assert the floor gate for non-trivial runs:
seq orchestration-concurrency --path /absolute/path/to/rollout.jsonl \
--floor-threshold 3 --fail-on-floor --format table
Only run this section when the user request explicitly includes opencode.
seq opencode-prompts --limit 20 --format jsonl
Filter and project:
seq opencode-prompts \
--source db \
--contains "grill me" \
--mode normal \
--part-type file \
--select session_slug,message_id,prompt_text,part_types \
--sort -time_created_epoch_ms \
--format table
Hybrid with --spec (CLI convenience flags override conflicting spec values):
seq opencode-prompts --spec @opencode-spec.json --contains "$plan" --limit 10
Only run this section when the user request explicitly includes opencode.
seq opencode-events --limit 50 --format jsonl
Filter event rows:
seq opencode-events \
--source db \
--role assistant \
--tool shell \
--status completed \
--select session_slug,message_id,event_index,part_type,tool_name,tool_status,text \
--sort -time_created_epoch_ms \
--format table
seq query --spec \
'{"dataset":"memory_files","group_by":["category"],"metrics":[{"op":"count","as":"count"}],"sort":["-count"],"format":"table"}'
List root artifacts explicitly:
seq query --spec \
'{"dataset":"memory_files","where":[{"field":"category","op":"eq","value":"root"}],"select":["relative_path","size_bytes","modified_at"],"sort":["relative_path"],"format":"table"}'
seq query --spec \
'{"dataset":"memory_files","where":[{"field":"category","op":"eq","value":"rollout_summaries"}],"select":["relative_path","modified_at","size_bytes"],"sort":["-modified_at"],"limit":20,"format":"table"}'
Then open the matching rollout_summaries/*.md file and use its rollout_path to jump into the original session JSONL when deeper proof is required.
~/.codex/sessions.memory_files defaults to ~/.codex/memories and accepts params.memory_root and params.include_preview.memory_files exposes path, relative_path, name, category, extension, size_bytes, modified_at, and preview.memory_stage1_outputs reads the local Codex state DB and accepts params.state_db_path.memory_extensions reads ~/.codex/memories/extensions and accepts params.extensions_root.root, rollout_summaries, and skills; root may also include non-canonical files, so do not assume every root file is part of the memory contract.rollout_summaries/*.md are markdown summaries; the original JSONL evidence lives at the rollout_path referenced inside those files.memory_files is best for inventory and routing; when the answer depends on markdown body content, use seq to find the file and then read that specific file directly.memory-provenance is the default archaeology surface for one thread or rollout summary file.memory-map is the default archaeology surface for topic- or artifact-routing questions.memory-history emits an observed evidence timeline, not a reconstructed historical MEMORY.md diff; do not overclaim that it proves exact past memory contents.opencode_prompts, opencode_events) default to source=auto, which resolves DB-first ($HOME/.local/share/opencode/opencode.db) with JSONL fallback ($HOME/.local/state/opencode/prompt-history.jsonl).params.source, params.opencode_db_path, params.opencode_path, params.include_raw; opencode_prompts also supports params.include_summary_fallback.${CODEX_HOME:-$HOME/.codex}/skills by default, and from ${CLAUDE_HOME:-$HOME/.claude}/skills when needed.seq binary. On macOS, install through brew install tkersey/tap/seq; do not shadow it with ~/.local/bin/seq or a local zig-out copy for normal skill execution.--output <path> to write results to a file.query auto-projects only referenced dataset fields (where, group_by, metrics.field, select, and non-grouped sort) to reduce scan overhead.query.params is now parsed and routed into dataset collectors for dataset-specific source overrides.query.joins can enrich one dataset with another by left/right keys, optional type=inner|left, optional prefix, and join-local where/params.workflow_signals normalizes $workflow mentions, cleaned skill mentions, deterministic outcome signals, tool calls, and session-graph agent roles into one session-derived dataset.token-usage now supports --last <Nm|Nh|Nd>, --tz utc|local|+HH:MM|-HH:MM, --summary, --audit, --group-by day|path, and --path / --session-id targeting for exact scope reporting.token-cost --pricing api uses exact known API model pricing; ask for --model <name> when the model is absent or unknown instead of assuming.token-usage over generic query for "since yesterday/last Thursday", daily averages, or local-calendar token questions; reserve token_deltas queries for lower-level accounting checks.token-usage --summary --audit and report both the authoritative monotonic total and the naive last-token overcount fields, with the local-corpus-not-billing boundary.tool_invocations and tool_call_args in addition to tool_calls.tool_calls now exposes raw argument/input text plus command/workdir fields: arguments_text, input_text, command_text, primary_executable, workdir, parse_error.tool_invocations adds lifecycle fields such as end_timestamp, pty_session_id, wall_time_ms, exit_code, running_state, and unresolved.tool_call_args flattens JSON argument/input leaves with payload_source, arg_path, value_kind, value_text, value_number, value_bool, is_null, and array_index.find-session returns session_id and path; use these to target follow-on query or resume workflows.find-session, session-prompts, session-tooling, and query-diagnose accept ISO-8601 --since / --until filters for session-backed narrowing.plan-search accepts repo/session/time/text filters for strict <proposed_plan> retrieval and defaults to metadata rows sorted newest-first.plan-search --stats emits scan counters and filter-usage flags so repo-scoped plan queries can prove they narrowed the corpus.plan-search for finalized plan artifacts, otherwise artifact-search, then specialized follow-ups, then query-diagnose, and generic query only when needed.session-prompts defaults to --roles user; set --roles user,assistant to include both sides of a conversation.session-prompts --current resolves the current session from CODEX_THREAD_ID and fails closed if that env var is unavailable.session-prompts deduplicates mirrored duplicate rows by default; pass --no-dedupe-exact to keep all duplicates.session-prompts --session-id <id> when the question is "what did this one session say?" or when expanding a session-detail / turns preview for a known session. message-search is corpus-wide text mining and does not session-scope a known watched session.skill-blocks is the exact-body recovery surface for session-injected skills; it returns full <skill>...</skill> envelopes, not loose $skill mentions or narrative references.skill-blocks defaults to --history distinct and --format jsonl; use --history all to keep repeated identical injections and --history latest to select the newest distinct version.find-session, then pass the returned session_id into session-prompts --session-id <id>.skill-success-rank, skill-audit, workflow-audit, tool-audit, memory-inventory, message-search, and workdir-report are first-class lifted query commands; use them before raw seq query for matching successful skill usage, raw skill mentions, workflow, tool, memory, message, and cwd questions.adjudication-audit before raw query/message-search when the question asks whether $review-adjudication selected, rejected, over-selected, or routed comments correctly.$resolve or other root-equivalent adjudication runs, pass --include-root-equivalent resolve so the audit distinguishes direct $review-adjudication from root-equivalent decision-bearing sessions.skill-success-rank counts user-called skills, reports successful_sessions, used_sessions, blocked_sessions, and raw mention/session diagnostics, and supports --mode sessions for per-session proof rows.workflow-audit selects sessions by exact workflow or skill mention after stripping injected skill blocks, then reports source breakdown, outcomes, sessions, or a markdown report without Python post-processing.session-tooling summarizes per-invocation shell/tool behavior and can aggregate via --summary --group-by executable|command|tool.tool-search accepts --session-id/--path and --contains-any for session-scoped tool forensics without broad scans or caller-side jq.query-diagnose emits per-query diagnostics from rollout JSONL and can suggest deterministic follow-up commands with --next-actions.orchestration-concurrency reports configured and effective fanout, plus how many times each maximum occurred.effective_peak, spawn_substrate, direct-lane counters (spawn_agent_calls, wait_agent_calls, close_agent_calls), serialized_wait_agent_ratio, and floor-gate fields (floor_threshold, floor_applicable, floor_result).seq binary: CLI for ranking skills, auditing sections, querying datasets, and summarizing token usage.zig build bench -Doptimize=ReleaseFast -- --config perf/frozen/workload_config.json: frozen-workload performance runner.tools
Convert markdown plans into beads with dependencies using br CLI. Use when creating task graphs, polishing beads before implementation, or bridging planning to agent swarm execution.
development
Orchestrate Codex skill optimization during active sessions through $cas goal control, $shadow single-session evidence, $tune diagnosis/refinement briefs, and the skill-optimizer custom subagent. Trigger for $opt, skill optimization loops, session-driven skill tuning, meta-skill audits, or explicit validated skill edits. Do not use for general code optimization, product optimization, or performance tuning.
development
Run a targeted fresh-eyes blunder pass over code, specs, plans, adjudications, closure gates, skill edits, or negative-evidence ledgers. Trigger when asked to reread with fresh eyes, find obvious bugs, catch mistakes/oversights/omissions, check for embarrassing misses, or perform a second independent blunder pass before closure. Do not use as a substitute for implementation, adjudication, or verification; use it as the final falsification/check pass for those workflows.
development
Explicitly shadow, tail, watch, follow, monitor, supervise, or companion exactly one Codex session id/path through `$seq`, then apply a named target skill as an interpretation/reporting/proposal/action lens until the watched session stops.