Benzene

Quick start

Pick the CLI. Pass the purpose.

One command hands Claude Code, Codex, OpenCode, Copilot CLI or Antigravity the Benzene skill and your purpose; the CLI researches the competition, writes the standard it sets, proves the guardrails on a small model and heals the first cells against them.

Python 3.10 or newer; no database, no telemetry. State lives in a .benzene folder next to the code, and the manifests live with the project.

Pick the CLI, pass the purpose

One line, with the purpose as its argument: the script asks which CLI sets Benzene up (Claude Code, Codex, OpenCode, Copilot CLI or Antigravity; the ones on your machine first, found by asking each for its version), installs the package, puts the skill where that CLI reads skills (the Agent Skills format), and hands the CLI one request: onboard Benzene here for this purpose. macOS and Linux run the line in sh, Windows in PowerShell. Put --for codex before the purpose to skip the question (-For codex on Windows); --dry-run (-DryRun) shows the plan first.

$ cd my-project
$ curl -fsSL https://benzene-agent.org/install.sh | sh -s -- "build me the best component library"

# on Windows, in PowerShell
PS> & ([scriptblock]::Create((irm https://benzene-agent.org/install.ps1))) "build me the best component library"

# the same by hand: the package, then the skill into the CLI you picked, which opens with the request
$ pip install "benzene-agent @ git+https://github.com/grvpanchal/benzene-agent"
$ benzene plugin start "build me the best component library"                # the first CLI on your machine; --for claude|codex|opencode|copilot|antigravity names one

Each CLI has its own route to the same plugin folder, benzene/plugin: one skill in the Agent Skills format, and a manifest per host beside it. Pick yours.

The plugin comes through Claude Code's marketplace, slash commands included: add the repository as a marketplace, install the plugin, then onboard with the purpose. Or the skill alone, from the shell.

/plugin marketplace add grvpanchal/benzene-agent
/plugin install benzene@benzene
/benzene:onboard build me the best component library
$ benzene plugin start --for claude "..."      # the skill alone, from the shell: ~/.claude/skills/benzene

The CLI grills you about the offices

Before it installs or researches anything, the CLI interviews you the way a demanding co-founder would: one question per message. First the roster: which offices the purpose requires (CTO and COO always; CMO and CXO when it reaches an audience; CFO when money comes in or goes out; CIO only with a raise), one line of reason each, for you to correct. Then three to five pointed questions per office kept, for what only you know and no competitor's page can tell: what "done" is and how a stranger checks it, who it is for, the accounts you own, the voice, what waits for your yes, the prices, the raise. A vague answer is pushed back once; "later" becomes a ticket for you; "enough" takes the defaults. The answers go to .benzene/interview.md and bound every step below.

CLI  From the purpose I read four offices: CTO (the framework and its docs site), COO (the plan),
     CMO (the audience it earns from), CXO (their feedback). No CFO yet: nothing is sold until the
     sponsor tier you named. No CIO: no raise. Which is wrong?
you  Keep the CFO. Sponsors are money.
CLI  Kept. CMO first: who exactly is this for, doing what, reading what already? That decides the
     competitors I research and the profile. "Developers" is not an answer I can research.
you  Front-end developers starting a side project on a weekend, who read CSS-Tricks.
CLI  Which accounts do you own today: a GitHub org, npm, X, Bluesky, YouTube, a newsletter, a domain?
     Each one you own becomes a channel; one you do not is a ticket for you, not a channel.

The CLI researches the competition

It installs what is missing, picks the models from the keys you have (OpenRouter with the cheapest Qwen, OpenCode Go with Kimi K2.7 Code, Anthropic, OpenAI, or a local server), decides how many cells each office kept gets, finds six to ten competitors with a team behind them for the audience you named, and runs the research subagents in parallel, one per office kept (six for a full roster: management, tech, funding and pitches, revenue, feedback and ecosystem, marketing), each with your answers for its office. Every number comes from a page the subagent fetched, with the URL.

$ export OPENROUTER_API_KEY=sk-or-...   # OpenRouter: the cheapest Qwen per token, Jev as the decider
$ export OPENCODE_API_KEY=oc_sk_...     # or OpenCode Go: Kimi K2.7 Code on the subscription, no price per token
                                        # both set: Go carries the roles once OpenRouter's free day cap is met
.benzene/standards/cto.md   .benzene/standards/coo.md   .benzene/standards/cio.md
.benzene/standards/cfo.md   .benzene/standards/cxo.md   .benzene/standards/cmo.md

The standard becomes the guardrails

The reports are merged into benzene-standards.yaml: per office the bars the competition sets (a statement, a target, the competitors' values, the sources, and a check a script can run), the channels it publishes through, and the audience threshold at which feedback starts to steer. The CLI writes benzene.yaml and benzene-org.yaml, creates the scaffold the bars name, and proves every check on the small model before the first run.

$ benzene standards benzene-standards.yaml            # "the standard is sound" or the problems to fix
$ benzene standards benzene-standards.yaml --prove    # ✓ passes clean, fails spoiled  ✗ work for the cells  ? a human judges
$ bza                                                 # the CTO heals against the gate and the bars
$ bza --standards                                     # phase: healing · 50/53 bars pass

The manifest lives. Your original stays as written, comments included. Benzene appends a cluster: block that records every cell it grew from it and what each differs in: a division, a repaired skill, a guardrail the scout proved. Never edit below that line.

Found the organisation

The CTO builds. The COO is founded when the CTO is healed. From then on Jev routes each instruction: to the COO for a plan across offices, or straight to the one office it is for, with a confidence; under 0.5 the COO plans. The other offices follow the record: a verified plan, a launch milestone, a metric.

$ bza                    # benzene-org.yaml, written by the setup with your purpose
$ bza -i "add a skill for server-side caching"   # routed by decider (1.00) to the CTO
$ bza --milestone launch --evaluate cxo
$ bza --status

Give it a host, then grant access one channel at a time

The CLI asks where the daemon runs and sets up benzene serve there. The organisation heals unattended and prepares its material: code, posts, the pitch, the pricing page. Nothing is published until an office's heal bars pass and the inbox asks you for that channel's credential, which goes on the daemon's host, never in a file. Items go out a few per cycle under a monthly budget.

$ benzene serve . --cycle-every 3600 --tunnel cloudflared
$ bza --inbox            # "access needed for bluesky: 3 item(s) ready to publish"
$ bza --outbox           # per channel: access, queued, held, published, the month's spend
$ bza --approve prop_f27dde47

Build the audience, then feedback steers

Until the audience threshold the research justified (weekly downloads, stars, survey responses) the CXO sits its cycles out and metrics are held: the organisation heals against what the competition does. Past it, user feedback shapes the roadmap and the phase turns to evolving.

$ bza --metric weekly_downloads=2400
$ bza --status           # standard: evolving · weekly_downloads 2400 >= 2000: feedback steers

Watch it grow

$ bza --graph            # .benzene/graph.html, a vault graph of the colony
$ bza --loops            # the loop every office runs on its cycle
$ benzene --root ../my-cli/.benzene/offices/cto journal --md
$ benzene --root ../my-cli/.benzene/offices/cto guardrails cell_eca5e4ae --scout --ask

Your own cell

A manifest is the genome: a system prompt, skills, models per role, a guardrail, and the thresholds of its life cycle.

name: docs-fixer
system: You keep the guides complete and true.
skills:
  - name: complete-guide
    triggers: [guide, section, missing]
    instructions: Add the missing sections with real content.
models:
  - {role: primary, provider: openrouter, id: qwen/qwen3.7-flash, price_per_mtok: [0.03, 0.13]}
  # or OpenCode Go's Kimi, on the subscription: provider openai_compatible, base_url https://opencode.ai/inference/go/openai/v1,
  #   id kimi-k2.7-code, api_key_env OPENCODE_API_KEY, headers {x-opencode-session: "{session}"}, temperature 1
  - {role: evolver, provider: openrouter, id: anthropic/claude-sonnet-5}
  - {role: decider, provider: openrouter, id: typesafe/jev-router}   # Jev: which cell takes an instruction
guardrail:
  verifiers:
    - {type: sections, files: ["docs/*.md"],
       required_sections: ["## Purpose", "## Steps", "## Checks"]}
  require_written_files: true
  pass_threshold: 0.70
homeostasis:
  divide_below: 0.66
  evolve_below: 0.80
  heal_max_attempts: 3

Offline first. --fake runs everything with a scripted model: 260 tests, real compilers in the loop, no key needed. Try the samples under samples/ before you spend a token.

A first workflow: invoice triage

One business task, run for real on a fresh folder with no key: the workflow reads three suppliers' invoice exports, fails on the one that is malformed, moves it to quarantine/ with the reason, extracts again, totals the ledger and writes a trust record. From a checkout of benzene-agent:

$ mkdir ~/invoices && cp -r samples/use-cases/business-automation/inbox ~/invoices/
$ bza manifests/workflow-invoice-triage.yaml ~/invoices -i "triage the invoices in inbox/"
  verifier     verify:intake pass; verify:ledger-sums pass; verify:ledger-sections pass; verify:trust-record pass
- extract (command): failed: inbox/2026-10-globex-cleaning.csv line 3: amount '18O.00' is not a number ...
- quarantine (command): done
- retry (command): done
Metrics: invoices_accepted = 5, files_quarantined = 1

Each verify: name is a checkpoint inside the run (the extracted table's shape, the ledger's totals and sections, the trust record's sections). ~/invoices/triage/trust-record.md keeps every verdict, what failed and what was recovered; the run log is under ~/invoices/.benzene/tasks/.