agentleFS
pengqianhanpengqianhan/open-paper-skills/skills/project-dispatch/SKILL.md

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.

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
  1. Very specific:

    Read the project's PROJECT_MEMORY.md Snapshot under projects-folder/<P>/.

    line 21
  2. Very specific:

    Check the Write Lease: H sessions --json.

    line 22
  3. Distinctive:

    Write the brief from the template below.

    line 35
  4. Very specific:

    When the human asks about progress, and before any review: H sessions --json gives each session's status (running, ok, failed, stopped) and …

    line 69
  5. Very specific:

    When a run ends ok or failed:

    line 80
  6. Very specific:

    Read the agent's final report (last_result, or H show <id>).

    line 82
  7. Distinctive:

    Verify it yourself: run every validation command from the brief, and diff git status --porcelain against the baseline.

    line 83
  8. Very specific:

    Check that PROJECT_MEMORY.md gained the run's Progress Log bullet.

    line 86

≈ “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.

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

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

  1. Read the project's PROJECT_MEMORY.md Snapshot under projects-folder/<P>/.
  2. Check the Write Lease: H sessions --json. A running session whose cwd is 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.
  3. Choose the agent and mode. The agent is the one the human names, else claude. The mode is read-only for questions and reviews, workspace for file edits only, and full when the task must run code (Claude refuses shell commands in the other modes).
  4. 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 edits PROJECT_MEMORY.md) to a scratch location, so the review can separate the run's edits from earlier ones.
  5. Write the brief from the template below. Dispatch when the human asked for this specific work or confirmed your brief.
  6. 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:

  1. Read the agent's final report (last_result, or H show <id>).
  2. Verify it yourself: run every validation command from the brief, and diff git status --porcelain against the baseline. A change outside the project directory is a boundary breach; report it first.
  3. Check that PROJECT_MEMORY.md gained the run's Progress Log bullet.
  4. 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).

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.