agentleFS
kiku-jwkiku-jw/codex-skills/long-context-dispatch/SKILL.md

long-context-dispatch

Skill0 starsChanged 4 months agoMITView on GitHub

Delegate a large read-only cross-document or cross-file analysis to the verified long-context worker while the ordinary Codex thread stays in control. Use for big audits, due diligence, large literature synthesis, policy mapping, or other tasks that genuinely need much larger context.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not use when: the task is ordinary coding, a short review, or anything that comfortably fits in the current thread.

    line 10
  2. Distinctive:

    Use the long-context worker as a read-only analysis surface, then synthesize the result back into the parent Codex thread without handing …

    line 14
  3. Distinctive:

    If the user wants an interactive long-context session rather than delegated analysis, route them to the dedicated launcher/app instead of …

    line 25
  4. Distinctive:

    If the job fails: exit code, short error summary, and artifact paths.

    line 30

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Long Context Dispatch

Metadata

  • Trigger when: the current thread should stay in control but the analysis genuinely needs a much larger read-only context window.
  • Do not use when: the task is ordinary coding, a short review, or anything that comfortably fits in the current thread.

Skill Purpose

Use the long-context worker as a read-only analysis surface, then synthesize the result back into the parent Codex thread without handing off final judgment.

Instructions

  1. Gate the need honestly. If the task is not a strong long-context candidate, do nothing special and continue normally. If it is, get one short confirmation from the user before launch.
  2. Launch the dispatcher with the exact script ~/.codex/skills/long-context-dispatch/scripts/long_context_dispatch.py. Put the request in a temporary Markdown file, pass an explicit --cwd, --reason, and --scope, and keep the child job read-only.
  3. While the job runs, relay brief human updates instead of raw JSON. On success, read result.md and synthesize its findings back into the current thread. On failure, report the exit code, a short error summary, and the artifact paths with a concrete retry suggestion.

Non-Negotiable Acceptance Criteria

  • The child worker stays read-only.
  • One child job per parent request is the default; do not fragment the analysis without a reason.
  • The parent Codex thread owns synthesis, editing decisions, and next steps.
  • If the user wants an interactive long-context session rather than delegated analysis, route them to the dedicated launcher/app instead of forcing this skill.

Output

  • A short launch note with job id and scope when dispatch starts.
  • A synthesized result covering summary, key findings, cross-file connections, next actions, and open questions when the job succeeds.
  • If the job fails: exit code, short error summary, and artifact paths.
  • Next skill options (only if needed): $spec-bundle — turn large-scope analysis into implementation-ready artifacts; $adversarial-review — stress-test findings against actual changed behavior; $tool-scout — research the external landscape if the analysis exposed a buy-vs-build question.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.