Benzene

The Resonator

A company that runs itself. You make the calls.

Benzene gives your business six offices, from tech to marketing to finance, that work in cycles. They do their rounds every cycle, run your requests the moment they arrive, and act when a number crosses a line. Nothing counts until it passes a check, and you see only what needs your decision.

How work flows

Three doors in, one line, every result checked

You ask

A request from you or your team, in plain words: "draft next week's launch email", "fix the sign-up bug". It runs the moment it arrives, in a workspace of its own, and comes back checked.

On schedule

Each office does its rounds every cycle without being told: tech checks the product and fixes what broke, marketing reads the audience and builds the campaign, finance reads the numbers.

Something happened

A number crossed a line: sign-ups fell, a check failed, the cash curve bent. The system raises it and works the problem across the offices until it is closed, then tells you what it learned.

Every result is checked before it counts. One that fails is undone and fixed first next cycle, so the business never gets worse by itself. Your inbox holds only the decisions: approve, reject, or add a note that steers the work.

What each office does on its rounds

OfficeEveryOn its roundsWhat reaches you
Techcyclechecks the product with its own tests, fixes what fails, ships the fixdone, failed, or needs you
Marketing3 cyclesreads the audience report, builds the campaign, asks operations for the product work it needs
Customers3 cyclesconvenes its panel, studies the record and the competition, suggests a feature
Finance3 cyclesreads the balance sheet and the growth curve, suggests a changeonce, when the money burns
Investors5 cyclesa cheap panel scores the pitch; at a good score the angel panel sitsthe offers
Operationscyclereads every suggestion, the numbers and what shipped, and proposes the next workapproval requests, shipped, improvement reports

The cadence is a setting per office. Hourly cycles are the usual pace; a quieter business can run daily.

What you get

your inbox

Only the decisions

Routine work runs and reports back. A new feature, a spend, a change of course waits for your yes, your no, or your note. One line per item, from a phone if you like.

the check

Nothing counts until it passes

Every result is held to a check your product already has: its tests, its numbers, its documents' structure. A failing result is undone and fixed first next cycle.

the record

Healthier every cycle

Each office measures its own health and the record shows the curve: what ran, what passed, what moved. You can watch it live, as we do with Benzene's own organisation.

See it liveRun it on your project

Want to know more? Play the loop

A prompt runs the moment it arrives; a cycle takes the repair of what failed, then the crisis steps and the routines due, the COO last. Each run that passes its guardrail moves its office's health; an office is healed at 0.8, and the organisation when all six are. Set the cadence, add prompts and crisis chains, and watch how many cycles the organisation needs against the same offices on their routines alone.

Every:
routinepromptcrisis steprepair of the routine that failedroutine that failed its guardrailhealed

A model of the loop, to read the order and the levers by, not a measurement: the gain per run, the drift between runs and the one run in eight that fails its guardrail are chosen to be legible, not to predict your record.

resonator:
  routines: {cto: {every: 1}, coo: {every: 1}, cxo: {every: 3}, cfo: {every: 3}, cmo: {every: 3}, cio: {every: 5}}

Paste the block into benzene-org.yaml: the Resonator reads it at its next cycle.

For the technical reader: how it is built

Proposals, approvals, proof

A COO proposal is maintenance (built now, the CEO alerted afterwards), a campaign (the CMO's ask, built now) or a feature. A feature goes through the operator chain first: a human at the terminal or the model operator as the CEO's delegate can approve on the spot. Otherwise it waits in inbox.md, or in your mail through the notify command, until it is approved or rejected. A rejection keeps its reason on the record, and the COO's research reads every rejection and the manifest's standing decisions each cycle, so a no holds in any wording.

An approved proposal is built through the COO's plan with its acceptance criteria and the board, released, and after monitor_cycles cycles its metrics are compared with the snapshot taken before it shipped. The improvement report names the metric it promised to move and what moved.

Every run is on the record

Each run on the workspace is an execution: written as running before the run, with its snapshot kept, and finalised with every task, its tool calls, the files it wrote, the failing checks, the cost, and the product's health before and after. Each task carries its own trace, one row per step and attempt.

One queue, one scheduler

The COO is the only scheduler. Every piece of work enters as an item in one queue, and the planner alone decides what a cycle takes, in a fixed order: the prompts first, then the routines due, the COO's last, then the approved builds. A failed cycle is fixed first: a routine that did not pass, or a step of the cycle that raised, runs again at the start of the next cycle, told what failed, before anything new is taken.

$ bza org.yaml ../my-cli --resonate --cycles 0 --every 3600
$ bza org.yaml ../my-cli --inbox
# CEO inbox: skills-cli
## Pending approvals
- prop_f27dde47 [feature] Dark mode (cycle 4; expects satisfaction 0.74 -> 0.8)
  approve: bza org.yaml ../my-cli --approve prop_f27dde47
## Messages (newest first)
- cycle 4 · report from cio: angel investors: $40,000 offered
- cycle 4 · alert from cto: maintenance done: complete skills/server-api
- cycle 3 · report from coo: improvement report [maintenance] Tidy the README:
    satisfaction 0.74 -> 0.8 (+0.06)

Crash and recovery

  • One cycle at a time. A lock with the pid per organisation; a lock left by a dead process is taken over, a live one makes the command exit 3.
  • Recovery on every start. What a crash left running is closed: the workspace is restored from that execution's snapshot unless the product's own verifiers score it higher than before the run, in which case the progress stays.
  • Once, not forever. An orphaned build goes back on the queue once. A second orphan fails the proposal. The CEO gets one alert with the execution id.
  • A prompt runs now. A request runs the moment it arrives, on a lane of its own beside the cycle, in a worktree of its own; without worktrees it runs in the workspace while no cycle runs, and the two hold each other off.
  • Guards on the loop. A task that fails its guardrail leaves the workspace as it found it; the same failing fix is tried max_fix_cycles cycles, then escalated to the CEO; a cycle that fails is repaired before the next one does new work.

The daemon: the live graph on your domain

benzene serve runs one process that serves the record over HTTP and runs the Resonator on a timer. The page at / is the graph view polling the record every few seconds: cells appear as they are born, fade as they divide or die, and a strip shows the cycle, the approvals waiting and the last run. /inbox is the CEO's mailbox, and approvals, rejections and a cycle can be sent from a phone.

--tunnel benzene publishes the graph and the inbox through the relay on this site, under a view link to share and an owner link that approves, rejects and cycles; --tunnel cloudflared and ngrok give a public URL of your own instead. The first cycle runs at once when the record has none or the last one is older than the period.

$ benzene serve ../my-project --cycle-every 3600 --tunnel benzene
local:  http://127.0.0.1:3110/?token=k3…
public: https://benzene-agent.org/g/ab12cd34ef/?token=…   (view: share this one)
resonator: every 3600s in the background; first cycle once the record is open

resonator:
  routines: {cto: {every: 1}, coo: {every: 1}, cxo: {every: 3},
             cfo: {every: 3}, cmo: {every: 3}, cio: {every: 5}}
  require_stage: healed
  approve: [feature]
  monitor_cycles: 2
  max_fix_cycles: 3
  max_builds_per_cycle: 2
  rollback: true
  commit: true
  release: [[git, push]]
  notify: [mail, -s, resonator, ceo@example.com]