agentleFS
jajupmochijajupmochi/agent-harness/skills/long-running-tasks/SKILL.md

long-running-tasks

Skill1 starsChanged 5 months agoMITView on GitHub

Manage long-running commands and multi-step work in Codex. Use when a task may exceed normal turn time, needs a dev server, watcher, training run, crawl, benchmark, or repeated polling.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 2 are distinctive, and 1 is 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.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read ../general/long-running-tasks/SKILL.md for the original policy, then use these Codex mappings:

    line 8
  2. Distinctive:

    Stop or clean up sessions that are no longer needed before final response.

    line 24
  3. Distinctive:

    If a task is too large for one run, leave a concrete continuation state: current command, session id, last observed output, and next check.

    line 25

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

long-running-tasks

Read ../general/long-running-tasks/SKILL.md for the original policy, then use these Codex mappings:

  • Claude background Bash -> Codex background exec_command session.
  • Claude Monitor -> periodic write_stdin polling or explicit status command.
  • Claude subagent -> Codex subagent only if available and useful; otherwise use a focused plan and background terminal.
  • Claude "ask before long run" -> Codex approval when the run needs network, writes outside the workspace, high cost, or destructive side effects.

Workflow:

  1. Estimate duration and side effects.
  2. For commands expected to run longer than a normal tool call, start them in a background session and keep the session id.
  3. Poll at reasonable intervals. Do not spam the transcript with full logs.
  4. Stop or clean up sessions that are no longer needed before final response.
  5. If a task is too large for one run, leave a concrete continuation state: current command, session id, last observed output, and next check.

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.