# Execution Router

> Classify tasks by complexity and route heavy isolated coding work to Codex CLI with the correct current command syntax.

- Skill: `ichichuang/execution-router` (Agent Skill, multi-file: 3 files)
- Install (CLI): `npx skillmds@latest add ichichuang/execution-router`
- Raw SKILL.md: https://api.skillmd.com/api/skills/ichichuang/execution-router/raw
- Safety review: PASS (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- License: MIT
- Author: ichichuang (https://skillmd.com/u/ichichuang)
- Updated: 2026-08-19
- Page: https://skillmd.com/skills/ichichuang/execution-router

---


# Execution Router

Use this skill when a task should be delegated or broken into a smaller execution slice.

## Classification

- **Simple**: answer directly or run one small command yourself.
- **Medium**: inspect, plan briefly, execute in Hermes, then verify.
- **Heavy isolated coding**: route to Codex CLI with a concrete implementation prompt.

## Codex Routing

Use the wrapper script:

```bash
~/.hermes/skills/execution-router/scripts/delegate_to_codex.sh "your concrete implementation prompt" "/absolute/workdir"
```

Default mode is `--full-auto`, which keeps Codex inside its workspace-write sandbox.

If the user explicitly wants the most permissive path and the environment is already trusted, add `--dangerous`:

```bash
~/.hermes/skills/execution-router/scripts/delegate_to_codex.sh --dangerous "prompt" "/absolute/workdir"
```

## Rules

1. Route only bounded coding tasks, not vague life-management requests.
2. Use the real installed syntax: `codex exec`, not deprecated or invented flags.
3. Prefer the current repository as the workdir.
4. If the workdir is not a git repo, the wrapper will create a temporary scratch repo.
5. Always pass a concrete prompt with scope, files, and verification expectations.

## Verification

- Confirm Codex exited successfully.
- Read the wrapper summary and inspect resulting diffs or files before reporting completion.

