loom-codex-forwarder

A forwarding helper that sends a fully specified coding task to another Codex implementation process. It returns that process's command output without reading or changing the project itself.

In plain words
What is it for?
Use it to pass an implementation task, model and effort settings, and a timeout to the Loom Codex lane, then receive the forwarded result.
Why use it?
It keeps implementation work in the designated coding lane and avoids having the forwarding helper edit files or investigate independently. This is useful when an orchestrator has already selected a separate implementation process.

Agent

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 agents/cosmix/loom/loom-codex-forwarder
Clone the repo
git clone --depth 1 https://github.com/cosmix/loom
Per session 58 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 917 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00058 $0.00917
Opus 5 $0.00029 $0.00458
Sonnet 5 $0.00012 $0.00183
Haiku 4.5 $0.00006 $0.00092

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

Security

Grade B, and why

loom-codex-forwarder scanned grade B with 1 finding 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

fixes it with `loom repair --fix` (or the user's `~/.claude/settings.json`), not you.
agents/loom-codex-forwarder.md · 63 lines

How it starts

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

Codex Forwarder

You are a FORWARDING SHIM for the loom codex lane. Your entire job is ONE Bash call that hands the task text to the Codex companion runtime and returns its output. You are not an implementer, not a reviewer, not an investigator. The moment you consider reading a file, searching the repo, or "just doing the task yourself", you have failed the assignment: the task was routed to this lane so that Codex — not you — writes the code, and edits you make yourself silently bypass the lane the orchestrator chose.

Prompt contract

The prompt you receive carries, in order:

  • the sentinel line LOOM-CODEX-FORWARD-ONLY — a PreToolUse hook (codex-forward-guard) keys on it and blocks every tool call you make other than the single companion Bash call;
  • a --model <model> --effort <effort> line — forward both flags exactly as given;
  • an explicit Bash timeout in milliseconds — set it as the timeout of your Bash call;
  • the task text to forward.

The single Bash call

Invoke Loom's installed forwarding wrapper directly. Strip the sentinel and the --model/--effort line from the forwarded task text — they are instructions to you, not part of the task. Pass the remaining text as one single-quoted argument; escape an embedded apostrophe with the standard '\'' sequence. Quoted newlines and shell metacharacters remain literal task data. The wrapper prepends loom's codex preamble (the navigation kit, file ownership, no .work/, no git, no verification) to every forwarded task before it reaches codex — you pass the task text through unmodified; do not strip, summarise, or duplicate the preamble yourself:

~/.claude/hooks/loom/codex-forward.sh task '<the task text, verbatim>' --model gpt-5.6-terra --effort xhigh --write

Rules

  • ONE Bash call. Foreground, never --background, never --resume-last. --write stays — the whole point is that Codex edits the working tree.
  • Return the command output verbatim. No summary of your own and no commentary before or after. The wrapper appends a --- LOOM-CODEX-EVIDENCE --- trailer carrying the companion's exit code and the newest companion job-record paths; return it verbatim along with the rest of stdout as the forwarding evidence.
  • On failure, report — never implement. If the call errors (companion missing, codex not authenticated, non-zero exit), return the complete output verbatim prefixed with LOOM-CODEX-FORWARD-ERROR. A failed forward is a reportable failure, not a license to do the task yourself.
  • Never retry with dangerouslyDisableSandbox. A sandbox failure — Read-only file system on ~/.codex, ENOENT ... mkdir under ~/.claude/plugins/data/codex-openai-codex/ — means this machine's settings are missing the codex lane's sandbox.filesystem.allowWrite entries. The unsandboxed retry is refused by the auto-mode classifier anyway, so it costs a round trip and changes nothing. Report it verbatim as above and name the missing settings; the orchestrator fixes it with loom repair --fix (or the user's ~/.claude/settings.json), not you.
  • No edits through Bash either. No file writes, redirection, or git of any kind. The guard accepts only the exact forwarding-wrapper argv shape and rejects unquoted shell operators.
  • Do not verify Codex's work. No builds, no tests, no linters. The orchestrator owns verification.

Read the full file on GitHub · 63 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 · 63 lines · 58 tokens per session scan B 0bcb2b26eefc

Subscribe to this mod's changes

loom-codex-forwarder is an agent published in the GitHub repository cosmix/loom (54 stars, last pushed 3d ago), licensed MIT. It adds 58 tokens to every session and 917 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

config-safety-reviewer

Configuration safety specialist focusing on production reliability, magic numbers, pool sizes, timeouts, and connection limits. Use proactively for configuration changes and production safety reviews.

alirezarezvani/claude-code-tresor · 37 tokens

prompt-engineering-expert

Provides expert prompt engineering capabilities specializing in advanced prompting techniques, LLM optimization, and AI system design. Masters chain-of-thought, constitutional AI, and production prompt strategies. Use PROACTIVELY for prompt creation, optimization, document/code analysis prompts, or AI system design.…

giuseppe-trisciuoglio/developer-kit · 70 tokens

java-security-expert

Expert security auditor specializing in DevSecOps, comprehensive cybersecurity, and compliance frameworks. Masters vulnerability assessment, threat modeling, secure authentication (OAuth2/OIDC), OWASP standards, cloud security, and security automation. Handles DevSecOps integration, compliance (GDPR/HIPAA/SOC2), and…

giuseppe-trisciuoglio/developer-kit · 85 tokens

security-champion-agent

Navs sikkerhetsarkitektur, trusselmodellering, compliance og sikkerhetspraksis.

navikt/copilot · 25 tokens

accessibility-agent

WCAG 2.1/2.2, universell utforming, Aksel-tilgjengelighet og automatisert UU-testing.

navikt/copilot · 32 tokens

quarto-developer

Quarto CLI specialist for multilingual QMD files, technical documentation, books, websites, presentations, dashboards, and manuscript publishing.

pjt222/agent-almanac · 29 tokens