Skip to content

k8adev/agents

v0.2.3

A five-agent complexity ladder (Operator, Researcher, Builder, Specialist, Reviewer), generic and portable across projects, with matching Codex TOML profiles hand-written from the same source.

agents

Português

A ladder of five agents for Claude Code and Codex, ordered by task complexity.

The ladder

AgentUse whenClaude pinCodex pin
OperatorChange is fully decided to the exact detailhaikugpt-6-luna / low
ResearcherRead-only investigation of any sourcesonnet / mediumgpt-6-sol / medium
BuilderScoped implementation, small judgment calls, no new patternsonnet / mediumgpt-6-sol / medium
SpecialistCross-cutting, no existing pattern, real correctness riskopus / highgpt-6-astra / high
ReviewerValidate a plan/diff/text/decision before committing to itopus / highgpt-6-astra / medium

Escalation

flowchart LR
  Operator -- escalates --> Builder -- escalates --> Specialist -- escalates --> caller
  caller -. starts .-> Builder
  caller -. starts .-> Specialist

Each agent works on its own rung. When a task goes beyond what it can decide, it does not guess. It ends with a handoff that names the next rung and what it found, so Operator points to Builder, Builder points to Specialist, and Specialist goes back to the caller, the main session that started the work.

Only the caller starts Builder or Specialist, which is what the dotted lines show. An agent never climbs the ladder on its own, so the main session stays in control of how much effort and cost each task gets.

Any agent can still hand a fully specified remainder to Operator, or consult Researcher or Reviewer once per question. Decisions that belong to the user, such as product intent, priority, security, personal data or money, always go back to the caller as a question with the options and what each one costs.

The handoff format and the remaining rules live in the Contract section of each agent file.

Install

Claude Code

/plugin marketplace add k8adev/aiwkf
/plugin install agents@aiwkf

Codex

codex plugin marketplace add k8adev/aiwkf
codex plugin add agents@aiwkf
mkdir -p "${CODEX_HOME:-$HOME/.codex}/agents"
cp -i "${CODEX_HOME:-$HOME/.codex}"/.tmp/marketplaces/aiwkf/plugins/agents/codex/*.toml "${CODEX_HOME:-$HOME/.codex}/agents/"

The plugin delivers the orchestrate skill. Copy the agent profiles into ~/.codex/agents/ (or a project's .codex/agents/) as regular files.

cp -i asks before overwriting an existing file. Check it first and keep a backup if it contains your own changes. After updating the plugin, repeat the copy to update the profiles, then start a new Codex session and verify that an agent can actually run.

For development, copy the profiles from your checkout's plugins/agents/codex/ directory and repeat the copy after each change.

To remove the installed profiles, check these five files and confirm each removal:

rm -i "${CODEX_HOME:-$HOME/.codex}"/agents/{operator,researcher,builder,specialist,reviewer}.toml

Recommended

The orchestrate skill triggers from its description, but not every time. To make the main session route work through the ladder, add this block to your global instructions, ~/.claude/CLAUDE.md on Claude Code or ~/.codex/AGENTS.md on Codex.

## Delegation

The session orchestrates: it decides, sequences and talks to me; subagents do the work.
Before any search, change, research, review, or external write (MCP/API), load the `orchestrate`
skill; it decides whether and to whom to delegate (`agents:orchestrate` on Claude Code).

Limits

  • Researcher and Reviewer are read-only by contract, not fully by tooling. On Claude the tool list does not block Bash or MCP writes, and neither does the Codex read-only sandbox.
  • Nested delegation on Codex, where spawn_agent reaches another profile, is undocumented. Verify it before relying on it.
  • The .tmp/marketplaces/ path in Codex is internal and undocumented. If it changes, locate the profiles in the new marketplace checkout before copying. Installed copies remain intact.
  • The model that the Claude Code opus alias currently resolves to is not documented.
  • Claude Haiku 4.5 has no effort parameter, so the Operator frontmatter on Claude leaves it out.