AIFeed

Show HN: Cubicle – A pixel-art office where AI agents work on your repo

Original text(via HN AI)

Build a company out of agents

A pixel campus for your AI staff. Hire a secretary, developers, a designer. Each one gets a desk and runs on what you already have: your Claude Code or your Codex.

Run it · What you do in it · Engines · How it works · The campus · Safety

The campus: people who are free walk out and play
The campus: people who are free walk out and play

Node 20+ · no dependencies · runs on 127.0.0.1 only · your subscription, never an API key · Apache 2.0

Early version. It works from start to finish, but it is young: expect rough edges, and expect them to be fixed as they are found. Tried so far: Claude Code, Codex and Ollama, on Linux (WSL). Not tried yet: Windows without WSL, macOS, LM Studio, llama.cpp, colibrì. Issues and ideas are welcome.

Run it

Needs Node 20 or newer and git. Nothing to install.


        git clone https://github.com/JustVugg/cubicle.git
cd cubicle
node bin/cubicle.js
      

Open http://127.0.0.1:4747/. The first screen shows your companies, with the campus of the open one behind them; the first time, it offers to found one. You pick everything, you type nothing: name, logo, engines, where the code is, the first team.

OptionDefaultWhat it does
--port4747where the page is served
--data~/.cubiclewhere the company is kept (people, conversations, their copies of the project)

To start a different company, point --data at another folder: a company is founded once and the page never asks again.

Only curious? Open web/index.html straight from disk: a demo company with sample data, no engine needed. site/index.html is the landing page.

What you do in it

1. Found the company

Cubicle looks at your computer, finds Claude Code and Codex, checks that each is signed in and lists the models each one offers.

Engines
Engines
Campus
Campus

For "where the code is" you can pick one of your own projects on GitHub: Cubicle reads the list through the gh program you are already signed in to, downloads the one you choose, and your people work on it on this computer. Nothing is sent to GitHub. You can have several companies, one for each project and never two for the same one; the "Companies" button is where you walk from one into another.

2. Hire people and talk to them

Every person has a job, a face, an engine and a model of their own. Write to them and the engine answers, for real: you see the commands they run and the files they touch.

Talking to someone
Talking to someone
Changes on their branch
Changes on their branch
  • A branch each. Every developer works in a copy of the project on a branch of their own (cubicle/ada), so nobody steps on anybody.
  • Your OK first. A command that needs permission stops and waits: allow once, always, or no.
  • A secretary who hands out the work. Ask her for something big; she splits it, assigns the parts, and the reports come back to her desk.
  • See what they did. Click a changed file and read the change. Run the project's own tests on their branch before anything is merged.
  • One file, one person. When more than one person has work in hand, a task starts with a short, read-only plan: which files it needs, and whether a colleague is already doing the same thing. A duplicate is not started. A task that needs a file in someone else's hands waits its turn and starts by itself once that work is merged, on top of it. A change made out of turn is taken out of the branch and kept as a patch. So two branches never hold the same file, and nobody has to talk to make it so.
  • Merge from the desk. One button brings a branch into your project. If the project moved on in the same places, nothing is touched and you can ask the person to sort out the conflicts.
  • They have a mind of their own. When in doubt they ask you instead of guessing, they propose work nobody asked for, they ask each other, and if you invite one for a bike ride and they feel like it, they come.

3. Let the company run

  • The board (the button, or the board standing on the lawn): what there is to do, who has it, what came of it. Switch on "they take work on their own" and whoever is free takes the next thing. If you have a tester, finished work is reviewed before it reaches you.
  • The handbook: one page everyone is told on every turn. You write it; they add what they learn.
  • Alerts: the bell gives a sound and a notice when someone needs you; the tab title counts them.
  • Out loud: the speaker reads replies with a voice per person; the microphone lets you speak instead of typing (in Chrome, speech is written down by Google's service).
  • What it costs you: requests sent today, per engine, in the top bar. When a subscription says "enough", it is said plainly and nobody on it starts new work for ten minutes.

4. Meet

Walk into the meeting room. Three things to do there:

WatchListenSpeak
Someone shows you slides of what they did. What you tell them, they act on when the meeting ends.Everyone comes in and says what they are on and what blocks them.Write it, stand up, say it. They answer.
Someone presents
Someone presents
Everyone reports
Everyone reports
You present
You present

Which engines you can use

To use Cubicle you need at least one of these on your computer. Each person you hire runs on one of them, and you choose which, and which model, person by person.

EngineWhat you needModelsAsks before a risky command
Claude Codeinstalled and signed in with your subscriptionDefault, Fable, Opus, Sonnet, Haikuyes
Codexinstalled and signed in with your ChatGPT accountwhatever your Codex listsno: its access level decides (read only, edit in its folder, full)
Ollamarunning on this computer, with a model downloadedthe models it has on this computeryes
LM Studioits local server switched onthe models it has loadedyes
llama.cppllama-server runningthe model it was started withyes
colibrìits server runningthe models it servesyes

Cubicle looks for all of them when it starts and shows only what it finds. Nothing else is needed: no account with Cubicle, no API key.

  • Claude Code and Codex are started for one turn at a time, as the program you are already signed in to. API keys are removed from the environment first, so the work goes on your subscription and nothing is billed to a key.
  • Local engines only give words back, so Cubicle gives them hands: a small loop that lets the model read, search, write and run things in its own folder, under the same permissions as everyone else. They cost nothing per request, but a small model on a laptop is slow: expect minutes, not seconds. Models that live on someone else's computer ("cloud" models in Ollama) are left out.
  • Tried so far: Claude Code, Codex and Ollama. LM Studio, llama.cpp and colibrì use the same protocol but have not been tried yet.
  • A local engine on another address: CUBICLE_LLAMACPP_URL=http://127.0.0.1:9000/v1 (also _OLLAMA_, _LMSTUDIO_, _COLIBRI_).

How it works


        flowchart LR
  you([You, in the browser]) <-->|127.0.0.1 only| server[Cubicle server<br>Node, no dependencies]
  server --> company[(~/.cubicle<br>people, conversations)]
  server -->|one turn at a time| claude[Claude Code]
  server -->|one turn at a time| codex[Codex]
  claude --> wt1[worktree<br>cubicle/ada]
  codex --> wt2[worktree<br>cubicle/linus]
  wt1 -->|Merge, when you say so| project[(Your project)]
  wt2 -->|Merge, when you say so| project
      
  • One turn, then stop. A person works only when you (or the secretary) give them something. At most three engines run at once.
  • Their own conversation. Each person resumes their own session, so they remember what they did. It survives a restart.
  • Nothing leaves the computer except what the engines themselves send to their provider.

The campus

It is not only an office. There is a lawn, a pond, a big sign with your company's name and logo, bikes at the gate, a coffee kiosk, and courts. People who have nothing to do walk out and play. Press E on a court and you choose who plays with you: whoever is free. People who are working stay at work.

Pick the teamsBasketball, two against two
Volleyball, two against twoPing-pong
Who plays
Who plays
Basketball
Basketball
Volleyball
Volleyball
Ping-pong
Ping-pong

The campus keeps this computer's time. In the evening the lawn goes under a veil of dots, at night the offices, the lamps and the courts are lit, and the people who work there know what time it is.

Night
Night
Volleyball at night
Volleyball at night
KeyOn the campus
W A S D or clickwalk
Etalk to someone, take a bike, start a game
the map, bottom rightclick to walk there

Tests

The server end to end, with scripted engines: no subscription is touched.

Safety

  • The staff start without your connectors: your mail, calendar and drive are not theirs to read.
  • The server listens on 127.0.0.1 only, and refuses requests that do not come from its own page.
  • Engines run as you, on your machine. "Full access" means exactly that: give it only to people whose work you would run yourself.
  • Nobody pushes. Everyone is told to stay on their branch, and a merge happens only when you press the button.
  • A merge that would conflict is undone before anything changes in your project.
  • When the project has tests, only what passed them is merged: the very commit that was tested, not an earlier one. You can switch this off per company.
  • Running the tests runs code from someone's branch on your computer, as you. Look at the changes first if you do not trust them.
  • A developer only ever works in their own copy of the project. If that copy goes missing, their work waits; it is never done in the project itself.
  • A yes to one file allows that file, not every file for the rest of the turn. A local model allowed to run a kind of command (say git status) runs exactly that command, with no shell around it.
  • Cubicle's own git commands run no hooks, so nothing planted in a branch runs when Cubicle commits or merges it.

Layout


        bin/    starts the server
src/    the server: engines.js (Claude Code, Codex), local.js (engines on this computer), company.js (people, turns, permissions, branches, merges, presentations), server.js (pages and API)
web/    the app: pixel.js (drawing kit), world.js (campus), arena.js (the games), app.js (UI), live.js (the real company), demo.js (the sample one)
site/   the landing page
test/   the server's tests
docs/   screenshots and recordings
      

License

Apache 2.0. See LICENSE.

The text above was extracted automatically from the source page and may miss images, tables or code blocks. The original is authoritative.

Published by HN AI
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗