Opening a company
A company is a plain folder you own. There are three ways to get one — and one way to look at somebody else's before you commit to any of them.
Look at an example first
structure new --demo
This writes Sundial, a made-up company that sells scheduling software to small practices — and it arrives with work already in it. One sentence ("statement-period billing history, if customers actually want it") has already moved through four departments: customers wrote up what practices asked for, marketing drafted a tease, engineering priced the build, and the chain is sitting at a boundary waiting for somebody to hand the work to operations.
Every conversation in it is labelled a replay: it already happened, and it is kept as a record. Nothing is running, nothing is pretending to run, and no AI is needed to read any of it, in the room or in any editor.
Nothing in the example is generated when you run the command, so it stands up the same on a device with nothing connected. It refuses --name, --describe and --runner: the company is already written, so those flags would describe a company that isn't there.
Start a new one
Run this in an empty folder:
structure new
Five questions: the name, one line about what it does, how the work should feel, who you are, and which starting structure to use. Every one offers suggestions you can take by digit. Then Structure shows you the plan before it writes anything. What you end up with:
company/— mission, values, positioning, voices: the spine.departments/,roles/,skills/— how the work is organised. Typed, so the structure is checked rather than trusted.- Structure's own files:
AGENTS.md,CLAUDE.md,.cursorrules(the agent-facing files, generated from your canon so any coding agent you point at the folder reads the company correctly from the first minute) and the two git hooks,.githooks/pre-commitand.githooks/pre-push. They come installed as one package, like a lock file: the plan lists them once, under that name, and the compiler is their only writer. Edit the canon, not these. - The review rule armed, so canon changes from here on go through review.
Scriptable version:
structure new --yes --name "Acme" --describe "kayak rentals in Portland"
Answered ahead, or relayed by an agent
The same five questions can be answered without a terminal. Each flag is a question, in the interview's own words:
--feel "…"answers How should work feel here?--who "Name <email>"answers Who are you?--answers answers.jsonanswers all five by id:name,describe,feel(orvalues),who(oridentity),structure. A missing id takes the question's own suggestion; an unknown id is refused, and the refusal lists the ids there are. A flag beats the file.
structure new --yes --answers answers.json
{"name": "Harbor", "describe": "kayak rentals in Portland",
"feel": "Ship small and often", "who": "Dana Reyes <dana@example.com>",
"structure": "engineering, marketing"}
Answers are the lines you would type at each question, so a digit picks that question's suggestion. A question answered ahead is never asked.
--interview json is for an agent standing a company up for you: it relays our questions instead of inventing its own. Each question comes out as one JSON line on stdout, exactly as the interview holds it, and the answer goes back as one line on stdin. stdout carries nothing else; everything new normally says goes to stderr.
{"kind":"question","id":"name","ask":"Company name?","options":[{"value":"harbor","evidence":"this folder's name"}],"freeLine":"1 keeps it, or type your own","fallback":"harbor","skippable":false}
{"kind":"retry","id":"name","retry":"7 names no suggestion here — pick 1–1, or type your own"}
{"kind":"plan","tiers":{"yours":["…"],"seeds":["company/mission.md","…"],"compiled":["AGENTS.md","…"]},"package":"Structure's own files · N"}
{"kind":"done","repo":"/path/to/harbor","next":["structure tui","structure doctor","structure check"]}
{"kind":"error","message":"…"}
A bad digit gets a retry line and the same question again. An empty line takes the suggestion, or skips where skipping is allowed (skippable). If stdin closes while a question is open, that question gets its empty answer, so the run never waits forever. --interview json implies --yes, works with --project, --adopt and --fresh, and with --runner the model's follow-up and name questions arrive on the same channel. A refusal is one error line and a nonzero exit.
Your new canon starts as drafts — the mission included: every template ships as a draft, so a fresh company shows a draft-canon warning per document and AGENTS.md's Mission line reads (draft — not yet approved) until you approve it. The warnings structure check shows you are documents waiting for you to say they read true — they are not mistakes. You approve them one by one in the room (approve <path> in structure tui) as each one reads true. (A company created in conversation is different: what you kept there with Looks good stands approved already — that conversation is its review.)
Adopt what you've already written
If the folder already has a CLAUDE.md, AGENTS.md, or .cursorrules, structure new offers to adopt them: it turns those hand-written files into typed canon — your words, restructured and checked, each document carrying where it came from. Your originals are kept exactly as they were under memory/inbox/ingested/, and nothing is committed: you read the difference and the canon lands when you say it reads true.
--adoptskips the question.--freshscaffolds a blank structure alongside your files instead.
This works on a real code repository too. Your source is untouched; the company structure arrives beside it.
Bring your documents
Most companies have a few documents before they have a repository: a deck, a memo, notes from the first customers. Bring them, several at a time, and the interview answers its questions from them, with the file and the passage beside each suggested answer. Each answer is yours to take or change, and nothing becomes canon until you say yes to it.
Word, PDF, slides, Markdown and plain text are read, or one zip of them (Drive and Dropbox download a folder as a zip in one click). In the terminal, point structure new at the folder:
structure new --from ~/Downloads/northwind
On the site, drop the files or the zip on the same page. There is no link to your Drive or Dropbox: you choose the files, and only those are read.
The text of each document lands in your company under memory/inbox/documents/, one file per document, each naming the file it came from. Only the text is written, never the original file. A scanned document with no text in it lands with a warning saying so, and nothing is guessed.
Your documents are read in this session, written into your repository, and nothing is kept by us once the session ends.
Open one that already exists
If the company is already on this device — you made it earlier, or a teammate's copy arrived with git clone — step into its folder and work:
cd shelfwise
structure check
structure tui
Or stay where you are and name it: the commands that work on a company take --repo <path>. Structure works on the folder in place and never copies it, so your editor, your terminal and the room are looking at the same files at the same time.