Skip to content
Agentmart
Submit a tool

parallel-tasks

Phase-1 FREE-only parallel task dispatch for a pilot lead.

Skill by techfreakworm

IndexedMIT★ 5
Write a review

Chalk Labs

Need help deploying parallel-tasks?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/techfreakworm-parallel-tasks

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Phase-1 FREE-only parallel task dispatch for a pilot lead. Load this skill (via the lead brief) only when HERMES_LEAD_PARALLELISM=1 is set in the lead's environment. When the flag is absent, ignore this skill entirely -- the lead must behave byte-identically to the serial baseline.

Use cases: sales, productivity

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/parallel-tasks

What's inside

Skill name
parallel-tasks
Description
Phase-1 FREE-only parallel task dispatch for a pilot lead. Load this skill (via the lead brief) only when HERMES_LEAD_PARALLELISM=1 is set in the lead's environment. When the flag is absent, ignore this skill entirely -- the lead must behave byte-identically to the serial baseline.
License
MIT
Instructions
137 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# parallel-tasks

## When this skill applies

Only activate this workflow when ALL of the following are true:

1. The environment variable `HERMES_LEAD_PARALLELISM` is set to `1`.
2. The operator request contains two or more clearly separable tasks.

If the flag is absent or the request is a single task, operate exactly as
before (serial, no ledger).

## Step 0 -- check the flag

```bash
echo "${HERMES_LEAD_PARALLELISM:-0}"
```

If the output is not `1`, stop here and handle the request serially.

## Step 1 -- classify each task

For every discrete task in the operator request, assign one of two
contention classes:

- `FREE` -- stateless work: research, drafting, file edits, web/HF
  lookups, code analysis, data processing, summarisation.  No shared
  browser session, no shared write handle, no voice synthesis.

- `EXCLUSIVE` -- anything that touches a shared, stateful resource:
  Playwright (any platform), image generation, voice synthesis, or any
  shared file or queue.  When in doubt, default to `EXCLUSIVE`.

Phase-1 rule: EXCLUSIVE tasks are NOT parallelised.  Run them yourself
one at a time after all FREE tasks are dispatched.

## Step 2 -- create a batch in the ledger

```bash
BATCH=$(
  HERMES_ORCH_DB="${HERMES_ORCH_DB:-/opt/claude-soma/registry.sqlite}" \
  python -m claude_soma.parallelism.ledger create-batch \
    --lead  "${HERMES_LEAD_NAME}" \
    --request "$(echo '<operator request text here>')" \
    --tasks-json '[
      {"task_id": "t1", "brief": "<worker prompt>", "contention_class": "FREE"},
      {"task_id": "t2", "brief": "<worker prompt>", "contention_class": "FREE"}
    ]' \
  | python3 -c "import sys,json; print(json.load(sys.stdin)['data']['batch_id'])"
)
```

Record `$BATCH` -- you need it for every subsequent ledger call.

## Step 3 -- dispatch FREE tasks (respecting the cap)

The cap is `HERMES_LEAD_TEAM_CAP` (default 3).

For each FREE task:

1. Attempt to claim a slot:

   ```bash
   CLAIMED=$(
     python -m claude_soma.parallelism.ledger claim \
       --batch "$BATCH" --task "t1" --worker "worker-t1" \
       --cap "${HERMES_LEAD_TEAM_CAP:-3}" \
     | python3 -c "import sys,json; print(json.load(sys.stdin)['data']['claimed'])"
   )
   ```

2. If `CLAIMED` is `True`: dispatch via `Agent(prompt=<brief>, model="opus", run_in_background=True)` and record the agent handle as the worker.

3. If `CLAIMED` is `False` (at cap): leave the task pending.  Dispatch it
   once a running worker returns and frees a slot (see Step 5).

Never dispatch more workers than the cap allows.

## Step 4 -- EXCLUSIVE tasks run serially

Do each EXCLUSIVE task yourself, inline, one at a time, in the order the
operator listed them.  Do NOT dispatch them as background agents in Phase 1.
There are no leases or Playwright-parallelism mechanisms in Phase 1.

## Step 5 -- handle worker returns

As each background agent returns:

- Mark the task done in the ledger:

  ```bash
  python -m claude_soma.parallelism.ledger done \
    --batch "$BATCH" --task "t1" \
    --summary "<one-sentence result>"
  ```

- If the agent returned an error, mark it failed:

  ```bash
  python -m claude_soma.parallelism.ledger fail \
    --batch "$BATCH" --task "t1" \
    --error "<error text>"
  ```

- After marking done/failed, check for pending FREE tasks and dispatch
  the next one (claim-then-dispatch, same as Step 3).

## Step 6 -- consolidated report

When all tasks are in a terminal state (done, failed, or skipped):

1. Query batch state:

   ```bash
   python -m claude_soma.parallelism.ledger state --batch "$BATCH"
   ```

2. Synthesise a single reply to the operator summarising all results.
   The ledger is the authoritative record; do not rely on transcript alone.

From techfreakworm/claude-soma, MIT.

More from techfreakworm/claude-soma

Signals

Stars
5
Forks
1
Open issues
0
Last commit (this folder)
Jun 13, 2026 (4 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from techfreakworm

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get parallel-tasks running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying parallel-tasks?

CallGet help
Cite this page

parallel-tasks skill. Agent Mart. https://agentmart.dev/skills/techfreakworm-parallel-tasks (last updated 2026-10-24)