cross-harness
Skill0 starsChanged 3 days agoMITView on GitHub
Run a code review, prompt, or task in the other coding-agent CLI (Codex from Claude Code, or Claude Code from Codex) and collect the result, files, and generated images, with self-cleaning processes. Use only when the user or their instructions explicitly ask to involve the other agent.
In this repository28 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agent-contextSkill
- agent-pluginsSkill
- architecture-decisionsSkill
- brand-identitySkill
- browser-controlSkill
- efficient-tool-callsSkill
- git-historySkill
- github-actionsSkill
- gitignore-standardsSkill
- html-reportSkill
- java-developmentSkill
- mermaid-diagramsSkill
- meta-workspaceSkill
- product-designSkill
- project-backlogSkill
- project-setupSkill
- project-upgradeSkill
- python-developmentSkill
- refinement-tribunalSkill
- session-handoffSkill
- shell-scriptsSkill
- software-architectureSkill
- technical-documentationSkill
- test-designSkill
- typescript-developmentSkill
- web-auth-bridgeSkill
- worktree-isolationSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 52
Keep --timeout below your own shell-command time limit (see caller notes).
- Distinctive: line 55
Use the result: verify it before acting on it (see below), then report to the user what the other agent said and what you concluded.
- Distinctive: line 97
Before relaying findings, check each one against the code.
- Very specific: line 124
Never pass --trust, --dangerously-*, or --sandbox danger-full-access through --extra unless the user explicitly asked for it.
- Very specific: line 128
Don't kill processes by hand.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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.
Files
Cross-harness
Hand a review, prompt, or task from the current agent to the other one: Claude Code
(claude) or Codex (codex). Use it only on an explicit request. A user might write
"have Codex review this" or "ask Claude to try this prompt", or an instruction file
might say "get a Codex review on every PR before marking it ready". Don't reach for it
on your own initiative.
Caveat: the benefit is not proven. A second model can catch defects the first missed, and an adversarial pass can expose weak assumptions. The evidence is mixed, though. Cross-model reviews also produce confident false positives, can miss what both models are blind to, and double the cost and time. Treat the other agent's output as a second opinion to verify, never as a verdict. Tell the user the same if they ask whether it is worth it.
How it works
scripts/xh.py (Python 3.8+, stdlib only) runs each job as one short-lived CLI
process (codex exec or claude -p) under a small supervisor. No daemon or shared
server runs, and nothing is installed into either harness. The supervisor:
- holds no user directory as its working directory;
- contains the whole process tree (a Windows Job Object; a POSIX process group);
- ends that tree when the job finishes, fails, is cancelled, hits its time limit
(default 30 min), or when the calling
claudeorcodexprocess exits.
python scripts/xh.py <command> ... # Windows: py -3 or pythonPaths are relative to this skill's directory.
Workflow
- Check once per session:
xh.py check -t codex(or-t claude). It reports the CLI path, version, sign-in state, and whether the state home is writable. If the CLI is missing or signed out, tell the user and stop. - Start:
xh.py review ...orxh.py task ...prints{"job": "xh-..."}and returns at once. The job runs in the background. - Wait:
xh.py wait JOB --timeout 90. It returns 0 with the result when the job succeeds, 1 when it fails, and 3 when it is still running. On 3, callwaitagain. Keep--timeoutbelow your own shell-command time limit (see caller notes). An interruptedwaitnever affects the job. - Use the result: verify it before acting on it (see below), then report to the user what the other agent said and what you concluded.
Commands
| Command | Purpose |
check [-t T] | CLI path, version, sign-in, state home |
review -t T [--base REF | --commit SHA | --uncommitted | --pr N] [--native-args "..."] [--fix] [--post] | Run the target's own reviewer; optionally fix and post |
review ... --adversarial / --focus TEXT | The skill's review prompt instead of the native reviewer |
task -t T [--write] [--resume JOB] "prompt" (or --prompt-file F, or stdin) | Hand over a prompt or task |
task ... [--attach FILE]... [--out DIR] | Give it files or images; collect the files it makes |
wait JOB [--timeout S] / result JOB | Get the outcome |
status [--all] [JOB] | Jobs with owner, PIDs, liveness, and target directory |
cancel JOB / cancel --all | End a job and its whole process tree |
cleanup [--dry-run] [--prune-days N] | Sweep lost jobs and prune old records |
Common options for review and task: --cwd DIR (the repository; default is the
current directory), --model, and --effort. Both pass through unchanged, so new
model names work without edits here. Also: --timeout MIN, --wait S (start and
wait in one call), --isolate, --label, --extra ARG (raw CLI argument, repeatable),
and --json.
Reviews
By default review runs the target's own reviewer and lets it behave as it
normally does:
- Codex:
codex exec review(the headless form of/review), scoped by--base,--commit,--uncommitted, or--pr. - Claude Code:
/code-reviewinclaude -p.--native-args "high --max-findings all"is appended verbatim, so its levels and flags keep working as they change.
--fix applies fixes. Claude fixes inside its own review (/code-review --fix). For
Codex the skill runs a second, write-enabled step that gets the findings. --post
publishes the review to the PR or MR: Claude uses its own --comment, and otherwise
the skill posts one summary comment with gh (GitHub) or glab (GitLab). --pr N
picks the PR or MR. Without it, the current branch's is used.
--adversarial or --focus "..." switch to the skill's own review prompt, which is
read-only. --fix and --post still work as follow-up steps.
Before relaying findings, check each one against the code. Say which you confirmed, which you refuted and why, and fix only what the user asked for. Posting and fixing change things outside the conversation, so do either only when the user or their instructions ask. Details: reviews.
Tasks
task is read-only by default: the other agent can read and answer but not edit.
--write lets it edit inside --cwd. Use --write only when the user asked for the
other agent to make changes, and prefer a separate worktree for it. --resume JOB
continues an earlier task's session. Write a self-contained brief: the other agent
sees none of your conversation. Details: delegation.
Files and images
--attach FILE(repeatable) hands over files. Codex gets images as image input; other files, and every file for Claude Code, are listed in the prompt to open.- Codex can generate images: ask in plain words. The skill copies them from Codex's image folder into the task's outputs folder, even in a read-only task.
- Other files the agent makes need both
--writeand--out DIR: the agent is told to save deliverables inDIR, which is made writable. Without--out, only generated images are collected, into the job'sartifacts/folder. waitandresultlist the collected files underartifacts:. Look at them before describing them. Details: media.
Rules
- Never pass
--trust,--dangerously-*, or--sandbox danger-full-accessthrough--extraunless the user explicitly asked for it. - One hand-off level only. A session started by this skill refuses to start another
(
--allow-nestedoverrides that, on explicit request only). - Don't kill processes by hand. Use
cancel,cleanup, andstatusinstead. - Jobs end when the calling session ends.
--no-ownerlets a job outlive it, still bounded by--timeout. Use it only when the user wants that.
References
- reviews.md: review modes, prompts, and handling findings
- delegation.md: briefs, write access, worktrees, and resume
- media.md: attachments, generated images, and output files
- caller-notes.md: calling from Claude Code, calling from Codex (sandbox escalation), and Windows
- troubleshooting.md: failures, stuck jobs, and folders locked by the older Codex plugin
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
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.

