agentleFS
yousseftallalyousseftallal/-open-code-full-power-/skills/multi-agent-harness/SKILL.md

multi-agent-harness

Skill1 starsChanged 22 days agoMITView on GitHub

Guide for using OpenCode multi-agent orchestration: parallel subagents, context persistence, and task distribution. Use when setting up or troubleshooting multi-agent workflows.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

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

    Write plans to work/plan.md.

    line 31
  2. Distinctive:

    Use claude-mem for cross-session memory.

    line 33
  3. Distinctive:

    Re-reading files: Use foreground + intermediate files.

    line 36
  4. Very specific:

    Lost context: Use claude-mem save_memory.

    line 37
  5. Distinctive:

    Slow sequential: Ask for parallel execution explicitly.

    line 38

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

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

Multi-Agent Harness (OpenCode)

Overview

OpenCode supports primary (orchestrator) and subagent (specialists) agents.
Subagents run in child sessions with fresh context. They can run foreground (blocking) or background (parallel).

Best Practices

  1. Use foreground for dependent tasks — waits for result, keeps in parent context.
  2. Use background for independent tasks — launches all at once, collects results later.
  3. Persist intermediate results — write to work/plan.md, work/findings.md, work/done.md.
  4. Use claude-mem — save durable notes (save_memory / observation_add).
  5. Keep tasks small — avoid context compaction.
  6. Preload context — use instructions in opencode.jsonc.

Agents (Joe Skills bundle)

  • orchestrator (primary) — router
  • planner, ui-designer, ux-researcher, frontend-dev, backend-dev, security-auditor, mcp-integrator, media-analyst, web-researcher, skill-scout, reviewer, coder, pentest-agent (subagents)

Parallel Execution

Ask orchestrator:

"Run ui-designer and frontend-dev in parallel to design+implement a navbar"

Orchestrator will use subagent with background=true.

Context Persistence

  • Write plans to work/plan.md.
  • Agents read work/plan.md instead of re-scanning.
  • Use claude-mem for cross-session memory.

Troubleshooting

  • Re-reading files: Use foreground + intermediate files.
  • Lost context: Use claude-mem save_memory.
  • Slow sequential: Ask for parallel execution explicitly.

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.