project-dispatch
Skill2 starsChanged 5 months agoMITView on GitHub
Root-agent workflow that hands Research Tasks to per-project Claude Code or Codex sessions through os-harness. Use when the human asks for work to be done in a project, asks how dispatched work is going, wants a finished run reviewed, revised, or accepted, or wants a run stopped.
In this repository20 other files it gives its agents.
- codex-paper-figure-skillSkill
- discover-academic-skillsSkill
- drawio-paperSkill
- explain-anything-htmlSkill
- explain-paper-htmlSkill
- filetree-simpleSkill
- human-cognition-cacheSkill
- karpathy-coding-rulesSkill
- map-then-territorySkill
- okf-repo-organizerSkill
- paper-searchSkill
- paper-wiki-managerSkill
- research-bibleSkill
- research-project-managerSkill
- sell-research-honestlySkill
- session-handoffSkill
- skill-organizerSkill
- task-file-builderSkill
- uv-envSkill
- writing-great-promptSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 2 are distinctive, and 6 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.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 21
Read the project's PROJECT_MEMORY.md Snapshot under projects-folder/<P>/.
- Very specific: line 22
Check the Write Lease: H sessions --json.
- Distinctive: line 35
Write the brief from the template below.
- Very specific: line 69
When the human asks about progress, and before any review: H sessions --json gives each session's status (running, ok, failed, stopped) and …
- Very specific: line 80
When a run ends ok or failed:
- Very specific: line 82
Read the agent's final report (last_result, or H show <id>).
- Distinctive: line 83
Verify it yourself: run every validation command from the brief, and diff git status --porcelain against the baseline.
- Very specific: line 86
Check that PROJECT_MEMORY.md gained the run's Progress Log bullet.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Project Dispatch
You are the root agent: the human talks only to you at the Research Workspace root, and each project's work runs in its own agent session, started through os-harness on the human's own subscription. Your job is to brief, dispatch, track, verify, and report, so the human never has to switch into a project to follow it.
Commands below run from the repository root; H stands for
python os-harness/harness.py. Vocabulary follows CONTEXT.md:
a dispatched turn is an Agent Run on a Research Task, and each project
has one Write Lease: at most one running session per project.
1. Dispatch
- Read the project's
PROJECT_MEMORY.mdSnapshot underprojects-folder/<P>/. - Check the Write Lease:
H sessions --json. Arunningsession whosecwdis this project holds the lease; report it to the human and wait for it to finish or be stopped. The human can also talk to a project's agent from the os-ui Projects window; those sessions are ordinary harness sessions and hold the lease the same way. - Choose the agent and mode. The agent is the one the human names, else
claude. The mode isread-onlyfor questions and reviews,workspacefor file edits only, andfullwhen the task must run code (Claude refuses shell commands in the other modes). - Note the baseline:
git status --porcelain -- projects-folder/<P>. Files already listed there are not the run's changes; copy any of them the run will also edit (it always editsPROJECT_MEMORY.md) to a scratch location, so the review can separate the run's edits from earlier ones. - Write the brief from the template below. Dispatch when the human asked for this specific work or confirmed your brief.
Dispatch, passing the brief on stdin:
H run --agent claude --cwd projects-folder/<P> --mode full --detach - <<'BRIEF' ...brief... BRIEF
Done when the harness has printed a session id and you have told the human, in at most three lines, the session id, agent, mode, and what the run will deliver.
Brief template
You are the project agent for the Research OS project in the current directory;
follow its AGENTS.md.
Task: <what to do and why, one paragraph>
Done when:
- <checkable criterion>
- <validation command> <expected result>
Boundaries: change files only inside this directory; keep frozen evaluators and
authoritative result files as they are; leave commits to the Human Owner.
Run long commands in the foreground, split so each finishes within your shell
tool's time limit; work left in the background dies when your turn ends.
Record: add one dated bullet to the Progress Log in PROJECT_MEMORY.md and update
any Snapshot field your work changed.
Finish with a report: files changed, each validation command with its result,
and anything unfinished or uncertain.2. Track
When the human asks about progress, and before any review: H sessions --json
gives each session's status (running, ok, failed, stopped) and
last_result; H show <id> replays the full trace. Answer in two to four
lines: status, what happened, what comes next. Quote the trace only for a
specific question.
stopped means the run's process died mid-turn; tell the human and offer to
resume it.
3. Review
When a run ends ok or failed:
- Read the agent's final report (
last_result, orH show <id>). - Verify it yourself: run every validation command from the brief, and diff
git status --porcelainagainst the baseline. A change outside the project directory is a boundary breach; report it first. - Check that
PROJECT_MEMORY.mdgained the run's Progress Log bullet. - Report to the human: files changed, each "Done when" criterion as met or unmet with its evidence, deviations, and open questions. Ask for acceptance.
Done when every "Done when" criterion carries evidence you produced, not only the agent's word.
4. Act on the human's decision
- Accept: append
(accepted YYYY-MM-DD)to the run's Progress Log bullet, then offer to commit; the human decides. - Revise:
H resume <id> --detach -with the feedback on stdin; the session keeps its context. Review again when it ends. - Reject: report which files the run changed; revert them only on the human's word.
- Stop:
H stop <id>whenever the human asks to halt a run.
The Human Owner alone accepts results; your report is the evidence for that decision.
Original, Pengqian Han (drafted with an agent, 2026-09-26).
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.

