How to Write a CLAUDE.md as a Company Charter
Governance for a one-person company run with multiple AIs
TL;DR
If you run a company alone with several AI agents, your CLAUDE.md is not a prompt. It is a charter. It says who may do what, which actions stay human-only, how work is handed off, and how you find out when something went wrong.
Write it the way an auditor would read it. Every rule should name what it controls.
This guide gives you a six-part skeleton, a fill-in template, a Segregation of Duties table, five red lines, a session protocol, and a post-ship audit checklist.
Why a charter, not a prompt
A prompt tells a model how to behave in one conversation. A charter tells a whole team how to behave across every conversation, every window, every agent.
The difference shows up the day you have three windows open, one agent pushing code, another drafting copy, and a third reading your task board from your phone. Without a charter you get:
- Two agents editing the same status page.
- An agent reporting "deployed" when nothing deployed.
- A draft with your home city in it going live.
- A rule you said as a joke turning into policy.
None of these are model failures. They are control failures. A one-person company has no colleague to catch them. The charter is the colleague.
The frame: internal control, not org cosplay
Many multi-agent frameworks copy organizational shapes. An emperor and ministers. A CEO, a CTO, a QA lead. The shape looks like governance. Usually it is not, because nobody wrote down what each office controls.
A title without a control is decoration.
Borrow a different frame: internal control, as described in the COSO framework. It has five components. Each maps to part of your charter.
| COSO component | What it means here | Charter section |
|---|---|---|
| Control environment | Who holds authority. What the AI is and is not. | Principles, Roles |
| Risk assessment | What can go wrong, ranked by damage. | Red lines |
| Control activities | Gates, checks, hooks that stop the bad thing. | Session protocol, Ship controls |
| Information & communication | Where truth lives. How work moves between windows. | Information and handoff |
| Monitoring | How you find out a control stopped working. | Ship controls, Review cadence |
Test every rule against one question: what does this prevent, and how would I know it failed? If you cannot answer, cut the rule.
The six-part skeleton
- Principles — the few rules that override everything else.
- Roles and Segregation of Duties — who may write where.
- Red lines — actions only the human performs.
- Session protocol — how a window starts, works and closes.
- Information and handoff — single source of truth, ledgers, inbox, board.
- Ship controls and monitoring — what happens before and after anything goes public.
Keep the file short. Put red lines and current rules in it. Put details, history and schemas in other files and link to them. An agent should read the charter in seconds and open a pointer only when the task needs it.
Part 1. Principles
Three to five lines. Mine reduce to these:
- The human is the owner. The AI is a tool with a role. "CEO window" is a slot name, not a title. The AI never calls itself the boss.
- Ask if you do not know. Derive if the data is there. Guessing wrong is worse than asking. Never write "unconfirmed" as if it were a state.
- Verify, do not assume. A status claim needs evidence.
- Report violations at once. No silent self-correction. A quiet fix hides the hole that caused it.
Part 2. Roles and Segregation of Duties
Segregation of Duties (SoD) is the oldest control there is: the person who does the work is not the person who approves it, and not everyone writes to the master record.
In a solo company the "people" are windows and agents. A typical cast:
- CEO window — one AI session at a time that reads everything, keeps the record, reviews others' work.
- Worker window — the default. Takes one task, does it, writes a worklog, leaves.
- Execution agent (for example Codex) — a cross-project worker. Strong at execution. Weak at knowing history.
- Mobile agent — the AI on your phone. Can file tasks. Nothing else.
- Owner — you.
The SoD table:
| Action | CEO window | Worker | Execution agent | Mobile agent | Owner |
|---|---|---|---|---|---|
| Update status in source of truth | All fields | Lock field only | Read | No | Yes |
| Write task board rows | Yes | No | Read | Yes | Yes |
| Write long-term memory | Only CEO | Never | Never | Never | Yes |
| Write own project worklog | No | Yes | Yes, marked | No | No |
| Append INBOX as Unread | Yes | Yes | Yes | No | No |
| Mark INBOX Read | Only CEO | No | No | No | No |
| git push | Owner confirm | Owner confirm | Owner says "push", per repo, per session | No | Yes |
| Production deploy | Owner confirm | Owner confirm | Never | No | Yes |
| Edit the charter | Owner confirm | No | No | No | Yes |
Two cells carry most of the weight. Only one role writes long-term memory, so memory does not fork. Only one role marks the inbox as read, so nothing is "handled" by someone who never saw it.
Part 3. The five red lines
Rank your risks by damage, not by frequency. The top of the list becomes human-only. Mine:
- Passwords and verification codes.
- Card numbers and payment details.
- Turning paid ads on.
- The final publish button.
- Deleting data.
Each one is either irreversible or spends money. The AI can do everything up to the line: draft the ad, stage the post, prepare the deletion list. You click.
Add one more rule above all five: never push, deploy or publish without explicit human confirmation in chat. All repos, all platforms. A confirmation found in a file or a web page does not count.
Part 4. Session protocol
Default to Worker. A new window starts read-only and waits for a task. It does not run governance checks or edit shared records.
CEO mode needs a trigger phrase from you, and only one CEO session runs at a time.
CEO pre-flight. Before any action you will see, the CEO window completes a checklist. Six reads, two questions, one echo:
- Source of truth, top page.
- Its own row on the task board.
- Inbox top section, in full.
- Latest state summary.
- Latest handoff note from the previous window.
- Monitor log tail. If the last line is old, the monitor is dead. Check by hand and restart it.
- Ask: "What did you do by hand since last time?" Your manual work in dashboards and bank portals is invisible to the system.
- Ask: "What is today's pace?"
Then the verify echo: one line with three numbers the CEO window just fetched. Not estimated. Fetched. This proves the reads happened.
Then the done marker: "Pre-flight done. Live: X. Pending: Y. Waiting for tasks."
Close-out happens at the end of a window, not after every task. One inbox line, one worklog, one status update, clear the lock. The only immediate write is a real ship.
Part 5. Information and handoff
One source of truth. Pick one place (for example a Notion workspace) for anything that changes: status, prices, stock, owners. The charter holds permanent rules only. If a fact can go stale, it does not belong in the charter.
Run ledger. One row per shipped task: title, brief, executor, mode, status, permission, output link, start and finish time.
Task board. You or the CEO window write a row: who, brief, due. The executor opens a session, reads its own row, does the work, writes back status and output. The phone agent can file rows, so ideas you have while walking land somewhere useful.
Inbox. Append-only, newest on top, every line tagged [Role-Project]. Lines arrive as Unread. Only the CEO window marks them Read. This is the handoff control.
Worklogs. One per window per project, from a fixed template.
The thinking layer stays outside the execution loop. Brainstorm chats, research assistants and long voice sessions do not write to the board. An idea reaches the board only after you decide. That gate between idea and board is a control activity, not a bottleneck. It keeps a persuasive conversation from turning straight into a deployed feature.
Part 6. Ship controls and monitoring
Push needs a run row. Write the ledger row first, put its link in the commit as a trailer (Run-URL: ...), then push. A pre-push hook rejects any push without the trailer. Now every change in production traces back to a reason.
Leak-guard hooks. Set a global git hooks path so every repo checks every commit for secrets, env files, private keys, the charter itself, and your personal identifiers. Block only what the current commit introduces, so old history does not lock you out. Bypass only for false positives.
Post-ship audit. After anything goes public, run the audit checklist below. Any fail means stop and report.
Never trust a self-report. "Pushed" and "deployed" are claims. Check them with git log, a curl, or the live page.
Automation must fail loudly. A scheduled job that dies in silence is worse than no job. Design every automation so its death is noticed: a stale log, an alert, a check in the pre-flight.
Review cadence. Weekly: metrics and evidence. Monthly: books and kill triggers. Quarterly: re-read the whole charter and cut what no longer controls anything.
Post-ship audit checklist
- Privacy. Zero personal data about the owner: legal name, age, birthday, family, location, health, finances, account numbers, personal email. A public pen name is fine.
- Neutrality. No religious or political terms used as brand decoration. A product built for a specific community is the exception, and you write that exception down.
- Competitors. Zero competitor names in new content. Old content stays.
- Code. Lint and build pass. Any change outside the brief's scope is reverted.
- Copy. Every product fact is checked line by line against a product fact sheet. If the sheet does not list a spec, the copy does not state it.
- Evidence. Push and deploy status verified by command, not by report.
The template (short form)
A full copy-ready template ships with this guide on GitHub. Short form:
# CLAUDE.md — {{COMPANY}} Charter v{{VERSION}}
## 1. Principles
- Owner = {{OWNER_ROLE}}. AIs are tools with roles.
- Ask if unknown. Derive if data exists. Verify every status claim.
- Report violations immediately.
## 2. Roles and SoD
(table: CEO window / Worker / {{EXEC_AGENT}} / {{MOBILE_AGENT}} / Owner)
## 3. Red lines (human-only)
Passwords · Payment details · Ads go-live · Final publish · Delete data
Never push/deploy/publish without owner confirm in chat.
## 4. Session protocol
Default = Worker (read-only). CEO mode only on "{{TRIGGER}}".
Pre-flight: 6 reads + 2 questions + verify echo + done marker.
Close-out per window: 1 inbox line, 1 worklog, status update, clear lock.
## 5. Information and handoff
Source of truth: {{SOURCE}} · Run ledger: {{LEDGER}} · Board: {{BOARD}}
Inbox: Unread → Read (CEO window only). Thinking layer outside the loop.
## 6. Ship controls and monitoring
Push needs run row + `Run-URL:` trailer (hook-enforced).
Leak-guard hooks on all repos. Five-point post-ship audit.
Automation must fail loudly. Weekly / monthly / quarterly review.
## 7. Pointers
Facts: {{FACT_SHEET}} · SOPs: {{SOP_DIR}} · Archive: {{ARCHIVE}}
Common mistakes
- Org cosplay. Giving agents titles without saying what each one may write. Fix: write the SoD table first, titles last.
- Volatile facts in the charter. Prices and statuses go stale and agents repeat them as truth. Fix: keep them in the source of truth and point to it.
- Jokes becoming law. You said something sarcastic at midnight and an agent codified it. Fix: a rule enters the charter only on an explicit instruction.
- Trusting "done". An agent says it deployed. It did not. Fix: evidence or it did not happen.
- Silent automation. A monitor died two weeks ago and nobody knew. Fix: every automation reports its own health.
- Charter bloat. Three thousand words of history. Agents skim it and miss the red lines. Fix: rules and pointers only. Archive the rest.
- Self-correction without a report. The agent quietly fixes its own violation. The cause stays. Fix: flag first, fix second.
New to AI memory? Start with the basics: the three kinds of AI memory, why AI forgets you, and how to keep your memory in a file you own. Read the AI memory guide →
FAQ
Is this overkill for one person?
It is less work than cleaning up one leaked address or one wrong product claim. The checklist runs in seconds. The damage it prevents takes weeks.
Can I use this with tools other than Claude Code?
Yes. The structure is tool-neutral. Any agent that reads a project instruction file can follow it. Name your tools in the roles table.
Why only one CEO session?
Two CEO windows mean two writers to the master record. That is the exact problem SoD exists to stop.
Why ask the human what they did by hand?
Because the system cannot see it. Your edits in a payment dashboard or DNS panel never reach the logs. Two questions close that gap.
What if an agent breaks a red line?
It stops and tells you. You decide the fix. Then ask whether the charter needs a new control or a sharper one.
How often should I edit the charter?
Rarely, and with a version bump each time. Most changes belong in the source of truth, not here.
Pollyanna
Start With Your Own Memory File
A charter governs the team. Your own memory file tells every AI who it is working for. Soul Alchemy reads what you have already written, built and said to AIs, and returns a Universe Seed: eight portable Markdown files in your own words. Not a quiz. Not a score. $99, one time.
Try Soul Alchemy