Blog/Engineering

Engineering

A company that fits on a MacBook: what a studio of Claude agents did with a real brief

Maathavan VinayakCo-founder, EnWithAI

11 min read

Talk to us

The first 27 hours, from the ledger

  1. Agent sessions1,002
  2. Decisions recorded1,656
  3. Post-mortems written20
  4. Staging and productionShipped

One MacBook Pro. No people on the org chart.

On 25 November 2026 at 04:21 UTC, a client walked into our studio with a brief: build enwallet, a consumer payments wallet for India, in time for an investor demo the next morning, on a fixed budget. The repo was empty. The client was me, and every seat in the studio was a Claude agent.

The short answer

We built enfactory, a software studio where every role is a Claude Code agent with a charter, decision rights and separation of duties. Given a fintech wallet brief and an empty repo, it shipped to production in 27 hours. Most of what we fixed afterwards was the factory’s structure, not the agents’ prompts.

The studio that took the job has a Head of Sales, a compliance officer, a CFO, a product owner, an analyst, a product manager, a designer, an architect, two engineers, a reviewer, a security engineer, a release manager, an SRE, an auditor and a chief of staff. None of them is a person, and the whole company runs on one MacBook Pro.

Over the next 27 hours the org ran 1,002 agent sessions, recorded 1,656 decisions and 857 learnings, filed 95 issues for itself, wrote 20 post-mortems about its own mistakes, and put a working wallet on staging and then production. It also argued with itself in 55 councils, and once spent an hour bouncing the same issue between two stages over a single HTTP header.

Why a company, not a coding assistant

A single coding agent is good at a single task. Shipping software is not a single task. Someone has to decide what to build, someone has to say no, someone has to check that the money maths is right, and someone has to refuse to deploy on a Friday night.

So instead of one very clever agent, we built an organisation and let the structure do the work:

  • Roles with charters. Each team has a written charter. The agents wrote the charters themselves at “genesis”, and they can change them only through recorded decisions.
  • Decision rights. Agents decide everything their role owns. A person is involved only where they hold a role (here, the CEO and the client) or where something is physically impossible for an agent: an account, a credential, a purchase, a signature.
  • Separation of duties. The engineer who writes code cannot review it, approve it or deploy it. Security and compliance are separate teams that can block a release.
  • Evidence over assertion. “Tested”, “secure” or “meets the acceptance criteria” counts only if it cites a command that was run and its output.

Copy how good human organisations work, and you inherit their failure-catching machinery.

How the factory works

The factory is a small Node.js program, the dispatcher, plus a set of agent definitions. GitHub is the office: every piece of work is an issue, and its stage is a label such as sf/build or sf/release. The dispatcher watches the labels, starts the right agent for each stage, and applies the agent’s structured verdict.

  1. Triage and analysis

    The prioritiser triages each issue. The analyst clarifies requirements, and the designer takes anything with a screen.

  2. Grooming

    The product manager writes acceptance criteria. The architect turns them into a technical plan.

  3. Build and review

    An engineer builds on a branch. A different agent reviews it, and the security engineer can block it. Defects loop back to the stage that owns them.

  4. Merge, release and verify

    CI gates the merge. The release manager deploys to staging, and to production only when staging is healthy on the same build. The SRE verifies and keeps watching.

A few mechanisms make it behave like a company rather than a script:

  • One shared memory. Every agent reads and writes the same memory/ folder: product docs, decision records, learnings, stage artifacts and council transcripts.
  • An append-only ledger. Every run, verdict, hand-off, cost and loop-back is a line of JSON. It reached 6,653 events in 27 hours, and it is how we found most of the stories below.
  • Councils. When a decision is beyond one role, the chief of staff convenes several agents. They state positions in rounds, see each other’s arguments, and a chair decides and records the dissent.
  • Corrections of Error. When a defect escapes a stage, the org writes a blameless post-mortem, names who introduced it and who missed it, and turns it into a lesson injected into that role’s future prompts.
  • A complaint box. Any agent can file an evidence-backed complaint about another role or about the org itself. The chief of staff investigates and acts.
  • A live dashboard. An office view on localhost shows each agent at its desk, hand-offs between desks, spend, and a “Waiting on me” queue for the few things only the human can do.

The project: enwallet

The client holds an RBI Prepaid Payment Instrument licence and wanted a full-KYC consumer wallet: load money by UPI, and pay shops by scanning a UPI QR code. For the investor demo, everything real was mocked: fake money, mock Aadhaar KYC and a mock UPI bank.

The client’s first message to the Head of Sales was 13 words long: “I want to create wallet for the general customers where customers can load/spend”. Nobody asked the client to write a spec. Sales ran the intake, the analyst clarified requirements, and the compliance officer scoped the regulation before anyone designed a screen. Sales then wrote a proposal, and the product owner and architect produced a roadmap and release plan. The client approved each one before a line of code was written.

Release 1 had one demoable goal, written as a script an investor could follow on a phone:

  • Open the demo URL. A “Demo · simulated money” banner is visible and cannot be dismissed.
  • Sign up with any mobile number and a demo OTP, then a demo Aadhaar number. Home shows “Fully verified (demo)”, ₹0.00 and the ₹2,00,000 balance limit.
  • Add ₹5,000 from a demo bank. The wrong PIN fails and the failure appears in history; the right PIN loads the money.
  • Pay a fictional merchant ₹120 and see the reference and the new balance of ₹4,880.00.
  • Upload a sample upi://pay QR code. The payee and amount fill in, and an amount above the balance is blocked.

What shipped: a React 19 and TypeScript web app with a Node server, 62 test files, Playwright end-to-end and visual tests, and lint scripts that fail the build on stray colour literals, duplicate design tokens or a dependency that is not on the latest stable version. Staging and production run the same build with a Content Security Policy, and iPhone device tests passed.

Acceptance criteria that can fail

Each role turned what it received into something more precise and wrote it down for the next role. By the time the money ledger reached an engineer, it carried 27 acceptance criteria. Here is one, traced back to the compliance control for the RBI balance cap:

AC-4-11

Given loads totalling 19,000,000 paise, loads of 999,999, 1,000,000 and 1,000,001 paise: the first two succeed, the third is recorded as failed with “This would take your balance over the ₹2,00,000 limit”.
Red run: changing the cap comparison operator must make this test fail, and that failing run is linked in the PR.

That last line is a habit the reviewer enforced: a test only counts if someone has seen it fail when the code is wrong. Money is stored in integer paise, the ledger is append-only and rejects edits and deletes, and the balance must always equal the sum of the log.

Compliance built in, not bolted on

The compliance officer scoped the regulation 13 minutes after the engagement opened: RBI balance limits for full-KYC wallets, payment data localisation, the DPDP Act, and the fact that real Aadhaar OTP needs a licensed provider the client had not yet picked. Every control became a testable acceptance criterion with a named proof:

  • AC-P1. Complete KYC with a test Aadhaar number, then search the database, logs, analytics, URLs and browser storage for it. Zero hits; at most “XXXX XXXX 1234” is kept.
  • AC-B2. All five merchants have fictional names, and the designer records a web search for each one as proof it does not match a real brand.
  • AC-B3. No NPCI, UPI, BHIM, UIDAI, Aadhaar or RBI logos anywhere in the app.
  • AC-L1. A grep of the source and the build output for “as per RBI PPI norms” returns nothing.

That last one has a story. An early product decision planned to show a “₹10,00,000 monthly load limit, as per RBI PPI norms”. The compliance officer checked and found there is no such RBI limit, and claiming a regulation that does not exist in an investor demo is misrepresentation. The officer superseded the decision on the record, and the app now labels the monthly cap honestly as an “enwallet demo limit”.

On top of the regulations sits the studio’s own fintech baseline: authentication, authorisation, encryption, audit trails, money correctness, privacy, residency, security testing and design quality. The demo could not meet all of it, so the gaps were listed one by one, each with its phase 1 control, and the client accepted them in writing before release.

By the numbers

MeasureFirst 27 hours
Agent sessions1,002
Decisions and learnings recorded1,656 and 857
Ledger events6,653
Councils convened55
Post-mortems (Corrections of Error)20
Issues filed and closed in the tracker183 filed, 115 closed
Release 1 issues closed19 of 27, the rest in final release checks
Input tokensAbout 426 million, mostly cache reads

The prioritiser ran most often (201 runs) but cheaply, because triage is short work on Sonnet rather than Opus. The architect and engineers cost the most, because design docs and code take long sessions. The prompt cache is the quiet hero: every run starts from the same constitution and team digest, so most input tokens were cache reads at a fraction of the normal price.

Fixing the waste

By the end of day one, more than half of the spend was rework: stages repeated because a council sent work back, a check failed, an issue looped between stages, or an agent re-checked something that had not changed. The CEO’s target was 10%. We changed the factory, not the agents’ instructions:

  • Count rework honestly. Picking work up after a client answer or a finished dependency is continuation, not rework. The report now splits rework by cause: council, check, loop, failed, blocked and repeat.
  • Cap councils. One council per stage per issue. A second request goes to the owner, and when the role that asked has already given its account, the chair decides alone.
  • Let unfinished work continue. A sound stage that runs out of budget mid-task now continues in the same session instead of being declared blocked.
  • Rebase automatically. The dispatcher rebases issue branches onto main itself and reports the exact conflicting files, instead of sending the branch back to an engineer.
  • Event-driven holds. The release manager had spent 56 runs re-checking held releases on a timer and concluding “still waiting”. A held release now sleeps until something it watches changes: a comment, a head commit, a dependency or a deploy.
  • Facts, not homework. Before the release manager runs, the dispatcher checks staging health, the deployed build and the device-test results itself and puts them at the top of the brief.

We also asked whether fewer agents would help. It would not: an idle seat costs nothing, and the waste came from loops, not from headcount.

What people still do

The human in this story wore three hats: client, CEO and vendor. In 27 hours that meant approving the proposal and plan, answering 61 product questions, approving 19 owner-gated changes, recording one compliance waiver, running the iPhone device test, and providing what agents physically cannot: GitHub settings, pushes to the factory’s own repo, and a budget top-up. Agents never held deploy credentials, never pushed to a default branch, and never asked for a secret in an issue.

What we learned

  • Structure beats prompting. Most of our improvements were to the dispatcher (caps, guards, holds and hand-offs), not to the agents’ instructions. Agents behave well when the system makes the wrong move impossible or expensive.
  • Write everything down. The append-only ledger and the decision records made every failure explainable after the fact, and the post-mortems turned each one into a lesson the next run reads.
  • Measure waste, not just output. Without a rework metric split by cause, we would have blamed the model. The data pointed at loops, re-checks and councils.
  • Let agents complain. Some of the best factory changes came from agents filing evidence-backed complaints about the org’s own rules.
  • Budgets are real. Our one real concern from the run: the first day cost nearly five times the client’s budget, mostly in rework. A real studio would have had that conversation on day one; ours now shows spend, rework and avoided runs live on the dashboard.
  • Separation of duties still matters. The compliance officer’s refusal to accept a silent gap is the behaviour you want from a fintech, whether it is a person or an agent.

The factory is open-ended by design: new roles can be hired through a staffing request, the CFO can release idle seats, and the org amends its own charters through recorded decisions. The next release is already in the backlog.

Try it yourself

The factory’s code is open source under Apache 2.0 at github.com/EnWithAI/enfactory. It runs on a Mac or Linux machine with Node.js 22+, the GitHub CLI and Claude Code. A first-run setup screen in the dashboard creates a fresh org from the template: teams, charters and an empty memory. Your org’s data stays on your machine; only the factory code is in the repo.

TerminalmacOS or Linux

1git clone https://github.com/EnWithAI/enfactory.git my-factory2cd my-factory3npm install4bin/sf dashboardopens http://127.0.0.1:4340
The dashboard walks you through setup, starting the org and opening your first engagement.

Run your own

If you want a software factory like this for your own enterprise, with your roles, your policies and your controls, talk to us.

Talk to us

Questions teams ask

What is an agentic software factory?
It is a software organisation where each role, from sales and product to engineering, security, release and operations, is an AI agent with a written charter and decision rights. Work moves between roles as GitHub issues, and every decision is recorded in a shared memory and an append-only ledger.
Did people take part at all?
Yes, but only where they held a role or where an agent physically could not act. In the enwallet run, one person acted as client, CEO and vendor: approving the proposal and plan, answering product questions, approving owner-gated changes, running device tests, and handling accounts, settings and budget.
How does the factory keep agents from shipping unsafe code?
Through separation of duties. The engineer who writes code cannot review, approve or deploy it. Security and compliance can block a release, claims must cite a command and its output, and agents never hold deploy credentials or push to a default branch.

Sources

Product and pricing details change often. Check each vendor’s own pages before you decide.

  1. enfactory on GitHub (Apache 2.0)
  2. Maathavan Vinayak, “A company that fits on a MacBook”, Medium

Maathavan Vinayak

Co-founder of EnWithAI, working on CrewPE and on how teams and AI agents agree what to build before they build it.

Keep reading

Want a software factory of your own? Bring one product brief.

Start with a 45-minute call about your stack, the roles and controls your work needs, and a sensible first engagement.