rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
wilsonchengassistant/dsh-one-person-company
Run a software company alone with a team of AI agents: an embedded one-person-company skill plus a sidebar task board. Bootstraps a repo-native operating system — ten role charters, spec-as-contract workflow, and an opc CLI that assembles the exact prompt for each agent.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:wilsonchengassistant/dsh-one-person-company
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Run a software company alone, with a team of AI agents.
Ten role charters · a spec-as-contract workflow · a task board that refuses to lie.
node tooling/src/cli.mjs pack T-0005
That command prints the prompt you give an agent: the company charter, the approved spec, the task, the role charter, the declared write scope, the definition of done, and the operating rules — about 300 lines instead of the whole repository.
Everything else here exists to make that one prompt trustworthy. The plugin ships the machine (the CLI, the playbook, the roles, the rules) plus a sidebar panel that shows the board without leaving the GUI.
dsh plugin --profile web add dsh-one-person-company
Restart the host and refresh the page. Two things appear:
one-person-company skill in every workspace's catalog — ask an agent
"use the one-person-company skill to start a project here".You never open a terminal. The panel is the operator's console.
That is the whole interface. Every stage of the cycle is driven from this page: the prompt tells the agent what to do, Run the checks tells you whether the result is real, and the board tells you what is left.

| On the page | What it does |
|---|---|
| The next-step card | the stage, computed from the artefacts on disk — charter written, specs approved, tasks ready / in progress / in review |
| Copy the prompt for the agent | puts the exact instruction in your clipboard |
| Run the checks | runs the ~30 consistency checks on the host and lists what it found |
| The board | every task with status, owner, priority and dependencies |
| The mockup | rendered inline when a screen is waiting for your review — play with the states; approval happens in the chat, and the recorded question/answer is shown back to you |
| Bootstrap this workspace | creates the company OS in a folder that has none |
The same operations have a CLI, because an agent or a CI job has no clipboard:
node tooling/src/cli.mjs cycle # the same object the panel renders
node tooling/src/cli.mjs doctor
node tooling/src/cli.mjs pack T-0003 > /tmp/ctx.md
Running opc by hand is never required to operate the company. It exists so the
pipeline can run headless.
AGENTS.md operating manual any agent reads first
company/
charter.md what we do, for whom, what we will never do
AGENTS.md the eight operating rules
specs/ the contract: numbered AC-1..AC-n criteria
tasks/ the work ledger: status, owner, write scope, deps
decisions/ ADRs — why each costly decision was made
research/ 4 source-linked research briefs
metrics.md budget.md roadmap.md
playbooks/ on-call, release, support answers
.agent/
roles/ the ten role charters
checklists/ definition of done · review · pre-ship
tooling/ the opc CLI — plain ESM, zero dependencies
docs/architecture/ four Mermaid diagrams: System, Backend, Frontend, Data
design/
tokens.css the single source of visual values
screens/<name>.html one interactive mockup per screen, four states
approvals.json the human's decision on each mockup
playbook/ 13 documents, including 12-the-full-cycle.md

A table answers what is there. The Flow view answers what is waiting on what: tasks sit in columns by dependency depth, arrows run from a task to the tasks that depend on it, and an unmet dependency is a dashed amber arrow. Hover a node and everything unrelated dims while the whole task — owner, spec, write scope, mockup — appears next to the cursor.
Middle-drag to pan, −/+ to zoom (30–200%), Fit to see the whole graph, and the minimap in the corner shows where you are inside it — click it to jump.

The next step with its copy-the-prompt button, the consistency checks with what
they found, summary counts, and every task with its status, priority, owner and
dependencies. Ready · can start marks tasks whose dependencies are done and
whose spec is approved; waits 3 marks the ones that are not.

A workspace with no company/ folder is not an error — it is the one click
between you and a working company OS. The button runs the bootstrap on the host;
the path stays available for copying if you would rather run it yourself.

doctor is the health check, board is the derived view, pack is the prompt.
| Role | Owns | Never |
|---|---|---|
researcher |
the research brief — every claim with a source and a date | state a fact without a source; edit specs or code |
pm |
the spec, the board, the roadmap | let a task become "ready" without an approved spec |
architect |
the ADR and the interfaces between parts | write implementation code |
designer |
the design system, the flows, the copy | invent a colour or spacing value outside the tokens |
engineer |
the code, inside its declared write scope | claim something works without running the command |
qa |
the failing test that proves a defect | delete or weaken a failing test |
devops |
the pipeline, the deploy, the runbook, the alert | deploy without a tested rollback |
support |
the answer, the knowledge-base article, bugs filed as tasks | promise a date, a price, or a refund |
growth |
the asset, the channel, the metric | send anything to a real person without approval |
reviewer |
one verdict: approve / request changes / escalate | fix the work itself |
Each charter declares four things — reads, writes, never, done.
That is what makes a role checkable rather than decorative. The reviewer is
the important one: read-only, told to assume the work is wrong.
A rule in a prompt is context. A rule in a gate is a control. An agent can read "no engineer starts a UI task until its mockup is approved" and build anyway — it happens, and it is the failure mode this design exists to remove.
So the same rule lives in four places, and only the last two are load-bearing:
| Layer | Where | Can an agent skip it? |
|---|---|---|
| prose | company/AGENTS.md, the role charters, the skill |
yes |
| the next step | the panel's Stage card — a broken board shows Stage 0 — fix the checks, never build this | yes, by ignoring the panel |
| the commit | opc check-commit in a pre-commit hook — a UI path that changed without a recorded approval is refused |
no, except --no-verify |
| the human | the four decisions: charter, spec approval, the review verdict, the six founder gates — and the panel shows you what you were asked | you are the check |
bootstrap.sh initialises a git repository if there is none and installs the
hook, so a fresh workspace cannot be committed to in a violating state:
$ git commit -m "add ledger screen"
Checked 5 changed path(s).
✗ T-0001: mockup design/screens/ledger.html has not been approved by a human
✗ doctor: company/specs/...-ledger.md: AC-2 is not owned by any task
Commit refused. Fix the above, or run: opc cycle
git commit --no-verify still bypasses it — deliberately. A hook you cannot
bypass is a hook nobody installs. But it is a visible, deliberate act rather than
a silent shortcut.
The commit gate and the doctor are mechanical: they check that an approval record exists, that it holds a question and an answer, and that the mockup has not changed since. They cannot prove a human answered — an agent with write access to this repository can write any JSON it likes. So an approval is deliberately a recorded conversation, not a signature: the panel shows the question and the answer back to you, and a conversation you never had is visible.
An earlier version signed approvals with an Ed25519 key held outside the
repository. It was removed in 0.15.0 because an agent can mint its own key,
overwrite design/approval-key.pub and sign its own record — the doctor then
reported zero errors. A guarantee the agent can forge is worse than a plain
instruction, because it stops you looking.
The record itself is writable too: the question, the answer and mockupHash all
live in design/approvals.json, so an agent that rewrites the file can carry a
stale approval onto a changed screen. Nothing in the repository prevents that.
What you have instead is the record in front of you — a conversation you never had
is something you can notice.
Approving a mockup records the hash of the file. Editing the mockup afterwards
does not carry the approval with it: the approval was for the thing you looked at,
not for whatever is in the file now. Same for an approved spec — approved_hash
means an edit after approval is an error until it is re-approved. The hash is
change detection, not proof of who approved: see above.
design/screens/<name>.html is a single-file interactive prototype: its own
CSS (the tokens) and its own JavaScript, with a state switcher for empty /
loading / error / success and a working primary action. One file, double-click,
no build step.

The panel renders it in an iframe, so you play with it where you already are. Approval happens in the chat, not with a button:
ask_user_question — the request arrives as a question
card with the context that produced it;opc approve <mockup> --question "..." --answer "...".The question and your answer are stored in design/approvals.json and shown back
to you in Company board next to the mockup. A record with no question and no
answer is reported as not usable — but the real check is the one you can do:
reading the question back and knowing whether you answered it. There is no
signature, and that is deliberate; see What the gates do and do not prove above.
A UI task an engineer owns cannot start until that approval exists; the designer's own tasks are exempt because they produce the mockups.
It usually does — a mockup is the requirement in another language, and clicking through it is how you find out what you actually meant. So the loop closes backwards, and all of it is enforced:
| You found | Where it goes | What the checks do |
|---|---|---|
| wrong copy, a missing state, a confused layout | a new mockup | the approval is cleared; re-approve when it is right |
| the requirement is different | the spec | editing an approved spec without re-approving it is an error; the cycle reports Stage 2 — re-approve the spec |
a revision dropped AC-3 |
the tasks | a task claiming an acceptance criterion the spec no longer has is an error |
| the spec moved on | the mockup | an approval recorded against an older spec_version is stale and has to be looked at again |
That is the whole reason the mockup exists: the guess an engineer makes from a paragraph of prose is what the customer ends up seeing.
docs/architecture/README.md holds four Mermaid diagrams — System (what
talks to what), Backend (the request path and which module owns each step),
Frontend (screens and the endpoints they call), and Data (the tables and
their joins). They are text, so they diff in git, GitHub renders them, and an
agent reads the whole file in about 90 lines.
The rule that makes them worth having:
A diagram that does not match the code is worse than no diagram.
So the diagram is not a one-off deliverable. Any task that adds or removes a
component, a table, a route or a third party updates it in the same change; the
reviewer role treats an unchanged diagram against a changed component as a
blocking finding.
Why not auto-generate it? Anything derived from code goes stale the moment the code changes and nobody notices. An owned artefact with a reviewer gate stays true; a generated picture lies quietly.
| Command | When | What it does |
|---|---|---|
doctor |
first thing every session | the checks below |
board |
to see state | every task with status, owner, priority, spec, deps |
board --ready |
to choose work | only tasks whose deps are done and whose spec is approved |
pack <ID> |
to start work | the prompt |
budget |
weekly | the spend ceilings from company/budget.md |
Also: new spec · new task · new adr · new research · new incident · new release · roles · init. npm link installs the opc shorthand.
You do four things; everything else is an agent's job.
| # | You decide | How often |
|---|---|---|
| 1 | the charter — who hurts, what it costs them, why you win | once |
| 2 | approve the spec — can a test prove each acceptance criterion? | per feature |
| 3 | the review verdict — you looked at the thing and believe it | before it ships |
| 4 | the six founder gates (money, contracts, production data, customers, the charter, the first launch) | when one appears |
The seven stages, and the exact prompt for each, are in
playbook/12-the-full-cycle.md. The short version:
charter → spec → tasks → build → test+review → deploy → operate
│ │ │ │ │ │ │
you you agent agent two agents agent agent
approve approve │
you click it
The page tells you where you are — and for a headless run, so does
node tooling/src/cli.mjs cycle:
Company cycle
charter written
specs 1 (1 approved, 0 not)
tasks 20
ready 4
in progress 0
done 0
Stage 4 — build the next task.
T-0001: Scaffold monorepo, Postgres schema and migrations (agent:engineer)
node tooling/src/cli.mjs pack T-0001 > /tmp/ctx.md
Paste /tmp/ctx.md into a subagent with: "do this task, stay inside the
write scope, run the verification command, paste the real output."
That is the whole daily loop: doctor, cycle, pick a task, pack it, review
what comes back, move the card.
doctor actually checksEvery rule that can be checked by a machine is checked here, because a rule that lives only in a prompt is context, not a control.
| Check | Why it matters |
|---|---|
A task is active but its spec is missing or still draft |
the contract is not signed |
An AC-n in a spec is owned by no task |
the spec is quietly half-built |
| A task's owner role has no charter | that agent has no instructions |
| A task's status is not one of the seven | the task is invisible to the board |
| A dependency cycle exists | the board deadlocks |
A Verification block is empty or only comments |
"done" has no evidence |
| Two runnable tasks write the same path | two agents, one file, lost work |
An in_progress task has no write scope |
nobody knows what it may touch |
| A role owns no task | a role nobody is running |
| The roadmap has no direction sentence | the team has no steering input |
| A required file is missing | the machine is incomplete |
lib/index.js) registers a Typert Remote service opcBoard
whose list() reads company/tasks/*.md out of every registered
workspace and returns the parsed board. The Gateway auto-claims the
endpoints, so there is no route, no permission, and no extra attack surface.template/tooling/src/board.mjs —
so the panel and opc board can never disagree about what is ready.lib/client.js) contributes two registrations, exactly the
pair Plugins and Automation tasks use: a row in sidebar.panellist (its nav
list, order: 20) and a page in main keyed by the same panel id. The board
is therefore a normal panel — it selects, deep-links and survives a reload the
way the built-in panels do, with no overlay or z-index of its own.company/tasks.~ collapsed, so the dialog can be screenshotted or
screen-shared without carrying a user name around.pack emits ~300 lines, not the whole repository.
Context that grows with the project is the failure mode the research calls
context rot.DSH 0.2.x, web profile for the panel. The CLI works with no DSH at all — plain ESM, Node ≥ 18, zero runtime dependencies. The plugin declares none either.
bash bootstrap.sh /path/to/workspace # create
bash bootstrap.sh /path/to/workspace --check # dry run
bash bootstrap.sh /path/to/workspace --force # overwrite an existing tooling/
The script never overwrites an existing company/specs/, company/tasks/
or company/charter.md. The machine is reusable; product state is not.
Is this a project management tool? No. It is files plus a checker. There is no server, no account, no sync.
Does it call an LLM anywhere? No. Zero API calls. It assembles context and checks invariants. The model is the one you already have in the harness.
Do I need DSH to use it? No, but the panel is the point: it is the operator's console, and it removes the terminal from the loop. Without DSH the same workflow still runs from the CLI, which is also what an agent or a CI job uses.
Will bootstrapping clobber my existing project?
No. It copies tooling/, playbook/, package.json and .gitignore, merges
the reusable company files, and generates the rest only where absent.
How is this different from a TODO list? A task cannot be ready without an approved spec, and cannot be done without a runnable verification command. A TODO list has neither gate.
My agent ignores the board.
Put doctor in CI. The CLI exits non-zero on an error, so the rule becomes
enforced rather than requested.
Do I have to use all ten roles?
No. Start with engineer + reviewer and add the rest when a role's artefact
actually goes missing. The charters cost nothing until used.
new task produces an intentionally incomplete task: doctor reports the
missing verification command and the unowned acceptance criteria until you
fill them in. That is the check working, not a failure.company/roadmap.md. Both clear once real work starts.doctor --json for CIdoctor from the panel and show a health badgesync-template.sh to keep an installed workspace's machine currentreviewer seat on a separate model, so the adversary is never
the same model that wrote the workplaybook/ is not opinion. It is written against four briefs with sources and
dates: the productivity research (including the study the authors later
retracted), what verification actually costs, the unit economics of a solo
company, and the honest failure list. They ship in every bootstrapped workspace
under company/research/.
MIT.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。