Nduli96

Multiagentopt — Development skill for Claude Code

Development community

Claude Code skill for multi-agent runs: simple work goes to Sonnet or Haiku instead of Opus, to spend fewer tokens.

How to install Multiagentopt

This entry records only its repository, not the path inside it, so there is no exact command to give. Open Nduli96/multiagentopt and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Multiagentopt does

Claude Code skill for multi-agent runs: simple work goes to Sonnet or Haiku instead of Opus, to spend fewer tokens.

Alternatives in Development

  • Semble — Fast and Accurate Code Search for Agents 6.1k ★
  • Code Review Graph — Local knowledge graph for Claude Code 3.7k ★
  • Openwolf — Sharper context 699 ★

README

multiagentopt

A [Claude Code](https://claude.com/claude-code) skill for running a batch of tasks with parallel agents, without paying top-model prices for simple work.

![Reported cost of the same batch: Opus alone $0.64, a workflow without the skill $3.75, and multiagentopt $1.63.](assets/demo.gif)

The problem

In multi-agent runs, such as Claude Code's ultracode mode (which hands work to a workflow of many agents), each agent uses the session's model unless told otherwise. In an Opus session, that means Opus starting another Opus just to read a few files or make a small change.

What it does

The agent running the session chooses a model for every task and every subagent, based on how hard the work is:

Work Who does it
Understanding why something happens, debugging, design decisions Opus
Implementing something already specified, verification, review Sonnet
Reading files, broad searches with a closed and checkable answer, simple mechanical tasks Haiku
The same mechanical change across many files No model: a script, written once and then simply run

So Opus calls Sonnet or Haiku for simple work. Opus only starts another Opus for a part that needs design or debugging judgment of its own.

Saving tokens is no use if parallel agents break each other's work, so the skill also handles that:

  • Shared decisions come first. The main session fixes anything tasks must agree on, such as ids, function signatures and data structures, and copies it into every brief. Left alone, parallel agents invent different values.
  • Agents share one working tree safely. They edit existing files through patch.py, which locks each file and preserves its bytes and line endings.
  • Work gets checked. When the batch runs as a workflow (in ultracode mode, or because you asked for one), a Sonnet agent tries to find defects in each task, and a fix runs only if it confirms some.
  • Builds run once. Agents don't run the