Skip to main content

agents-inc: a crew of original cartoon monsters at work on a night-shift dispatch floor

agents-inc

agents-inc runs AI models the way a company runs staff: a Lead takes your request, delegates it down an org chart of cheaper Worker models, and accepts nothing until a reviewer signs off. The aim is more checked work from the AI subscriptions you already pay for.

Status: experimental Tests PyPI Python 3.11+ License: PolyForm Small Business 1.0.0 + no-AI terms Open issues DOI

Table of Contents

  1. Status & Roadmap
  2. Why it exists
  3. Installation
  4. Quick start
  5. How it works
  6. Limitations
  7. Documentation
  8. Citation and license

1. Status & Roadmap

Version 0.6.4. The project is experimental and pre-MVP. The governed path (WORKERBEES_GOVERNANCE) is off by default. Changes per release are in the CHANGELOG. The build plan and cut line are in docs/PLAN-MVP.md. Open work is tracked in the issues.

  • Now: measure the token cost of delegation against doing the work in one session, and port the test suite to Windows (#138).
  • Next: let a Worker launched by a broker lead its own Workers (#73).
  • Later: route work by data classification, so unpublished work reaches only approved providers (#19).

2. Why it exists

Delegated model work can look done while it is wrong. A flat pool of agents has no way to catch that. agents-inc borrows a corporate org chart. The CEO is you. The CoS (chief of staff) is the session you talk to. A Lead manages one run, and a Worker reports to a Lead.

Cheap models take routine work, and costlier models manage. An author never grades its own work: the Lead checks what its Workers report before anything moves up. Savings are not yet measured, so none are claimed (docs/PLAN-MVP.md).

3. Installation

Requirements: Python 3.11 or later, Bash 3.2 or later, jq, curl, and the Claude Code CLI signed in to an Anthropic subscription. The Codex CLI is optional; when present, it serves the Codex rungs and cross-vendor review.

Python 3.10 support ends in the next release; the current 0.4 release stays installable on Python 3.10.

pip install agents-inc
agents-inc install     # skills ship in the package; no checkout needed
agents-inc doctor      # first line prints READY when the install works

Restart Claude Code (and Codex, if used) after the install. agents-inc install --without-codex skips Codex on purpose. To install from a git checkout instead, pass --source <checkout>. Optional Gemini, Mistral and OpenRouter keys, the setup decision tree and key storage rules are in docs/START-HERE.md.

Hooks this installs

agents-inc install adds these hooks to ~/.claude/settings.json, plus "agents-inc dispatch *", "agents-inc run *", "agents-inc repair *" and "agents-inc install *" under sandbox.excludedCommands so a sandboxed Bash can start a dispatch (each delegate and each gate still gets its own sandbox-exec). It prints the entries first and asks before writing; --yes skips the question, and with no terminal and no --yes it writes nothing and prints the command to run. --no-sandbox-exclude leaves the exclusion out. repair replaces an older "agents-inc *" entry with the narrow ones. agents-inc unwire removes only these entries.

  • SessionStart: loads the delegation mandate into each session.
  • PreToolUse on Agent/Task, dispatch-shaped Bash and DelegateAgent: adds a routing nudge, warns on duplicate dispatches, blocks persona impersonation, and runs the agent gate.
  • PostToolUse on Agent/Task: marks the dispatch done.
  • UserPromptSubmit: routes @alias side questions. Only with --legacy-routes (see below).

Agent gate. Claude's Agent tool skips agents-inc routing, prompt lint, the ledger and verification. The gate decides what happens to those calls.

Mode Effect
advisory (default) Nothing is blocked. The session sees a nudge toward agents-inc dispatch.
enforce Blocks every Agent/Task call except foreground Explore, Plan, claude-code-guide and statusline-setup. Background runs are always blocked.
off Same as advisory. Doctor reports it as off.
  • Switch mode: agents-inc repair --agent-gate enforce|advisory|off. The choice lives in ~/.config/agents-inc/settings.json.
  • One session only: launch with AGENTS_INC_AGENT_GATE=off claude (or enforce).
  • Check: agents-inc doctor prints agent gate: <mode> (<source>).
  • Remove every agents-inc hook: agents-inc unwire. Other hooks stay. agents-inc repair adds them back.

The route: native agent types. With the agents-inc mod, Claude Code lists each delegate model as its own subagent type, such as agents-inc:luna or agents-inc:gemini-flash. Call it with the Agent tool like any subagent; its transcript is the normal subagent view, and the delegate pane lists the registered types and this session's native agents. agents-inc native status shows which types are offered and why. agents-inc dispatch stays as a command for scripts, CI and broker Workers.

The older routes (the agents-inc:relay type, the mcp__agents-inc__run tool and @alias side questions) are off by default. agents-inc install --legacy-routes (or repair --legacy-routes) keeps them; the choice is stored in ~/.config/agents-inc/settings.json, so a later plain repair keeps it, and --no-legacy-routes turns them off again. This change is proposed in D79 and awaits operator acceptance.

Using agents-inc without the gate.

  • Use Agent only for read-only, foreground scouts.
  • Send anything that writes files, runs long, nests or belongs in the ledger through agents-inc dispatch.
  • Naming a model chooses the rung, not the route. "Use sonnet" still means agents-inc dispatch --model sonnet.
  • Subagents get no SessionStart mandate. If an Agent prompt may delegate, say in it: sub-delegate only via agents-inc dispatch.
  • Verify what an Agent call returns yourself, as for any delegate.

4. Quick start

Name your models in plain English. The ladder decides who manages whom, and the rest fills in. You do not hand-pick every model or write JSON.

Write the request to the CoS as <task>. <models>., for example:

"Fix the parser. opus, haiku."

The higher rung manages and the lower rung reports to it, so opus is the Lead and haiku is its Worker. Defaults fill the rest: effort medium, gates derived from the task, and the home repo from the consumer's AGENTS.md. Each extra word, such as an effort level, overrides one default.

Rung Claude Codex Role
Executive fable astra Final say, irreversible acts, conflicting results
Orchestrator opus sol Decompose, dispatch, plan
Workhorse sonnet terra Normal coding, research, synthesis
Grunt haiku luna Classify, extract, summarize; free Gemini, Mistral and OpenRouter models enter only here

The CoS then runs one command. It renders the prompt, lints it, snapshots the tree, launches the delegate and checks the report:

agents-inc dispatch --slots slots.json --model sonnet --dry-run   # drop --dry-run to launch
agents-inc models chain supervisor=opus                            # change the default REPORTING CHAIN

Every dispatch prompt carries a REPORTING CHAIN line derived from the ladder, and every launched dispatch writes one dispatched row to the ledger. Codex delegates can write to --cwd by default, the same as a Claude subagent; the slot CODEX_WRITE: no makes one read-only. A worked slots file is in skills/workerbee/slots.md.

Narrate (prototype, macOS). agents-inc narrate on enables a watcher; agents-inc narrate run follows the active Claude Code transcript and speaks a two-sentence digest of each new assistant message with say. luna writes the digest through agents-inc run, so message text leaves the machine: messages with a classification marker are skipped, and --summarizer local makes no model call. Other options: --voice, --transcript, --decide-only, --once, --dry-run; off and status complete the set. Design: docs/proposals/narrate.md.

Two more entry points need no dispatch. PYTHONPATH=. python3 tools/governance_demo.py --fake, run from a checkout, shows routing, policy checks and ledger records with no provider keys. With --legacy-routes, @haiku <question> inside any Claude Code session sends one side question to a cheaper model before the session model runs (docs/at-route/AT-ROUTE.md).

5. How it works

Delegation and support flow: CEO, CoS, Lead, and Worker roles across the nine speckit phases, with model rungs shown as cost classes

  • Routing. A router picks the vendor and rung for each task from a written policy (agents_inc/routing.json). Rung names are cost classes, not job titles; the reporting chain sets the role.
  • Grilling and speckit. The CoS grills you one question at a time until the request is sharp, then a speckit pipeline gates it through spec, plan, tasks and review.
  • Verification. A deterministic verifier checks cited claims with no model call. A reviewer from a different vendor then checks the meaning. A Worker's own PASS never decides acceptance.
  • Ledger. An append-only JSONL and SQLite ledger records every dispatch, return, review and acceptance decision.
  • Models. Each Codex alias is pinned to one slug. agents-inc models reports drift. Model sync promotes new Codex slugs in approve or auto mode and skips pinned aliases.

The full description, including the delegation limits, the 14-element prompt contract, the verification flow and the comparison with other tools, is in docs/HOW-IT-WORKS.md.

6. Limitations

  • Cost savings and accuracy against a baseline are not measured. Passing local tests show that the code behaves as written, not that it is reliable in production.
  • The governed path is off by default, so a fresh install does not run the enforced cross-vendor review.
  • Cross-vendor review catches disagreement between models. It does not catch a blind spot that both vendors share.
  • Deterministic checks cover what a script can express, such as a file, a quote or an exit code. They do not replace human judgment on scope or design.
  • agents-inc dispatch must run outside the Claude Code or Codex sandbox, because the sandbox blocks the provider API. Inside it, dispatch exits 69 before any delegate starts and prints the fix: add "agents-inc dispatch *" to sandbox.excludedCommands. agents-inc install and repair add that entry; agents-inc doctor warns WB_SANDBOX_EXCLUDE_MISSING when it is gone.
  • Free-model capacity varies: a probe on 2026-09-29 found 429 or capacity errors on several free models (docs/BENCH.md). Artifacts stay local; remote publication (Bindle Backend B) is not built.

Updates: new sessions and agents-inc doctor tell you when a newer release is on PyPI (one check a day; AGENTS_INC_NO_UPDATE_CHECK=1 turns it off).

Found a bug or want a feature? agents-inc report bug --title "..." --body "..." (or report feature) prints a draft issue with your version, doctor result and OS; home paths become ~. Add --submit to file it on GitHub with your own gh login.

7. Documentation

File Reader
docs/START-HERE.md New users: setup, providers, keys, first job
docs/HOW-IT-WORKS.md Operators and agents: dispatch, verification, comparison, HTTP bridge
docs/EXTENDING.md Adding a vendor, model, task class or domain
docs/DECISIONS.md Binding rulings, with rationale and evidence
CONTEXT.md Glossary: CEO, CoS, Lead, Worker, Mandate, Home repo
skills/workerbee/QUICKREF.md Short form of the dispatch rules
docs/RELEASING.md Release runbook

8. Citation and license

The DOI for all versions is 10.5281/zenodo.22670100. GitHub's "Cite this repository" button reads CITATION.cff.

Cite as: DO Mattioli (2026). agents-inc: Cross-Vendor Governance for an Agentic-AI Workforce. Zenodo. https://doi.org/10.5281/zenodo.22670100

agents-inc is licensed under the PolyForm Small Business License 1.0.0 (LICENSE) plus additional terms that forbid AI training (LICENSE-AI.md). Both apply. Notices: NOTICE.

Metadata

Release files for agents-inc 0.6.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agents-inc 0.6.4
File Size Uploaded Provenance Actions
agents_inc-0.6.4.tar.gz 401.2 kB With provenance Details for agents_inc-0.6.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for agents-inc 0.6.4
File Interpreter ABI Platform Actions
agents_inc-0.6.4-py3-none-any.whl Python 3 none any Details for agents_inc-0.6.4-py3-none-any.whl

Total release size: 852.4 kB

Release files / agents_inc-0.6.4.tar.gz

Download URL agents_inc-0.6.4.tar.gz
Size 401.2 kB
Tags Source
SHA-256 checksum
How to use checksums
98d28265eca8e37dff9e33301fbbd421b474cc7d4595d25053e75b5faac34063
BLAKE2b-256 checksum
How to use checksums
adb45919497b74eb10bea9e93f9974e20037a83f6a6459b8f7909e233d3c59f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Release files / agents_inc-0.6.4-py3-none-any.whl

Download URL agents_inc-0.6.4-py3-none-any.whl
Size 451.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c06cf628ef6e4e6217409c1305a5e01ff79887d3a452b8b4f1f4ad351fac3e2e
BLAKE2b-256 checksum
How to use checksums
19b228cd545186a2db3e2e30d8443254abba1c99684fed1b89ff8a7836da8b34
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Security for agents-inc 0.6.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for agents_inc-0.6.4.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page