Install and first run
What you need
- git.
- Optionally, a coding agent CLI. Claude Code
is the primary path: install it, then run
claudeonce in a terminal to sign in. Structure drives the command-line tool, so the Claude desktop app on its own is not enough. Codex CLI, Gemini CLI, Ollama, LM Studio, and OpenAI-compatible endpoints also work.
No agent CLI? Everything structural still works. Scaffolding, checks, approval requests and review all run without one. The parts that need a model tell you so and tell you how to connect one; nothing is silently skipped and nothing is faked with a stand-in.
Install
Structure ships as a public build, the releases of runstructure/structure on GitHub: for macOS on Apple silicon, and for Linux on x86_64 and arm64. There is no Intel Mac build and no Windows build yet.
On a Mac
On a Mac the app and the command are one package: the app is where you read and review the company, and the command the hooks, Codex and Claude Code call is inside it. Install it with Homebrew first:
brew install --cask runstructure/tap/structure # later: brew upgrade --cask structure
That puts Structure.app in Applications and structure on your PATH, with runstructure beside it, and an upgrade moves both. Without Homebrew, one line does the same:
curl -fsSL https://runstructure.com/install.sh | sh
It checks the download, puts Structure.app in /Applications (or ~/Applications when you cannot write to /Applications), and links ~/.local/bin/structure to the command inside the app. An app already there is replaced only when it is Structure; anything else is named and left alone, and that includes a build from before the app's name changed: move that one to the Trash first, then install. You can also download Structure-macos.dmg from the newest release and open it: a window shows Structure beside your Applications folder, and you drag Structure onto Applications. The same app is in Structure-macos.zip too. The first time it opens from Applications, it links ~/.local/bin/structure to the command inside the app, and adds ~/.local/bin to your PATH when your terminal does not look there yet. When another structure comes first on your PATH, it leaves that one as it is. Settings (⌘,) shows where structure is linked and what the app did, with one press to use the app's structure, or to try again when the link could not be made.
For the command alone, without the app: brew install runstructure/tap/structure.
On Linux, a server, or CI
Download the tarball for your machine from the newest release: structure-linux-x86_64.tar.gz or structure-linux-arm64.tar.gz (glibc). Each one has a .sha256 beside it. Check it, then unpack:
sha256sum -c structure-linux-x86_64.tar.gz.sha256
tar -xzf structure-linux-x86_64.tar.gz # one file: the binary
sudo mv structure /usr/local/bin/ # or any folder on your PATH
If the binary is not executable after the move, chmod +x it. For whoever audits the build, every download also has a CycloneDX SBOM beside it, as <name>.cdx.json. The structure-terminal- tarballs are the same command built without the web view: the terminal room, the commands and the serve's API, whole.
Either way
The binary carries what it runs. Installing it fetches nothing more, and nothing goes to us.
structure notices prints the notices for the work Structure adapts: where each adapted skill, icon and text came from, and its licence.
After that, one request goes out unasked, and only so you hear about a newer
build: no more than once an hour, check and serve read one public file, the
newest release's VERSION. Nothing identifying travels with it. To stop it, set
STRUCTURE_NO_UPDATE_CHECK=1.
The first two commands:
structure --version # the build stamp
structure doctor # what's ready, what needs setup, the next command for each
structure doctor is the answer to almost every "is this thing on?" question. It lists each runner and scheduler, whether it's ready, and the exact command to fix the ones that aren't. It names the Codex CLI it finds, or the one line that installs it, and structure compile writes the files Codex reads (see Agent dialects).
Stand a company up
structure new shelfwise # an empty, typed company in ./shelfwise, under a second
cd shelfwise
The name alone is the scaffold: nothing asked, no model, no network. The spine (mission, values, positioning, the two voices, you as the founder from git config) lands with the name in each document and one line saying what goes there; no departments, roles or skills until you generate them. It ends with the way in, cd shelfwise && structure tui, where the mission waits for your first approval.
The interview is --guided:
structure new shelfwise --guided # a conversation, then the company in ./shelfwise
It starts with the type: Is this a company or a project?, each choice with one line of what that kind is, because the type sets what every later question is about. Then the conversation that shapes the rest:
- With a runner connected, the model leads. Its first question is its own (What are you building?), and the name comes next, with suggestions drawn from your answer; then how work should feel, who you are, and where the work happens first (the departments). The drafts are written from the whole conversation.
- With none, the same arc runs as fixed questions: the name, worded for the type you chose; one line about what it does; how work should feel (your words land verbatim in the one agent file that stays yours); who you are; and the starting departments.
Every question comes with suggestions you can take by typing a digit, or you type your own.
Every file it writes is listed as it lands, and it ends by telling you the way in. The guided door with no questions at all:
structure new shelfwise --guided --yes --describe "tracking the books on my shelves"
The name you give becomes the folder and the default answer to the first question. --yes with no name and no description is refused: a company needs both, and a non-interactive run has nobody to ask. With no runner, no key and no network, the scripted run takes under a second.
Opening a company has the other doors: the example company, adopting the agent files you already wrote, and a smaller project layout.
Who this device is. Work from this machine is signed with one name: the person set as actor in this machine's config, which structure status shows as this device acts as dana. Git's own name for the folder is used only when nothing is set. When the two differ, a verb that signs says so once, this folder's git identity is Sam; this device acts as dana — signing as dana, and signs as the device. A caller that sets STRUCTURE_ACTOR still names itself first.
Compile and check
structure compile # a dry run: which agent files would change; --write writes them
structure check # the company typechecks: types, links, shape, your rules
compile turns your canon into the files your agents read: AGENTS.md, CLAUDE.md and .cursorrules, with the two git hooks beside them. Together they are Structure's own files, one package. They are build output, so a hand edit to one of them is something check names, quoting the line back and pointing at structure tidy, which moves it somewhere a recompile cannot reach. If a recompile reaches the file first, your edit is not lost: it is set aside under .structure/set-aside/ (structure set-aside lists it), the stream says where, and structure tidy <file> still lifts it from there.
Your new canon starts as drafts, so the first check shows warnings. They are documents waiting for you to say they read true, not mistakes.
Work in the room
structure tui
The room is the terminal view of your company: what is happening on the left, where the company stands on the right, and a command line below. Type help for its verbs. approve <path> makes a draft active under your name, review shows what is waiting on you, and approve <path> -m "why" requests approval and approves an edit in one motion. The room needs a terminal to answer at, so it has no --yes.
Run it: structure serve
structure serve # the runtime, on 127.0.0.1 port 8712
serve is the runtime the room rides on. It keeps the company checked as you edit, recompiles the agent files when canon changes (the ones the company has: it never creates them; structure compile --write does), and narrates each thing it does in the terminal, one line at a time. structure serve --stop ends it.
It has one page of its own, the instance page, at /instance: the company's name, the folder it is open on, its state, and the counts from its last completed check. The page answers only on this device.
The IDE is the company in the browser: its documents, its changes and their review, and the conversation that stands a company up. It is served by the project's own serve at /ide/, and a build that carries it says so on its first line:
structure → http://127.0.0.1:8712/ide/ (repo: …/shelfwise)
There, the instance page links the IDE, and Open on the project's row in Structure's menu-bar list opens the IDE for that project, starting its serve first if it is stopped. A checkout of this tree carries no IDE: serve names the port and its page at / (the instance page, and /instance is the same page), the instance page says this build has no IDE, and the terminal is the product here.
Connecting a model later
You never have to do this to get started, and you can do it at any point:
- Install an agent CLI —
claudeis the shortest path. - Sign in to it once in a terminal.
- Run
structure doctorto confirm Structure can see it.
Until then Structure is a company you can read, edit, check, review and approve in. The model adds the agent work on top; it isn't the floor.
In Codex and Claude Code
One Structure plugin works in both tools. It puts the structure command on your agent's PATH, adds the skills (install-structure sets up a company from a conversation, structure says how to work inside one, and humanizer, interrogate, review, verify and voice-check), runs an MCP server with three tools (check, propose, status), and checks a document the moment the agent writes it. It needs the structure command from the install above. The plugin is published as runstructure/plugins, the name both install lines below use.
In Codex
codex plugin marketplace add runstructure/plugins
codex plugin add structure@structure
$ in Codex then lists the plugin's skills as structure:install-structure, structure:structure, structure:humanizer and the rest. In an empty folder, "set up my company" runs install-structure: it installs the structure command after one yes if the machine lacks it, relays the interview's own questions in the chat, shows what it will write as yours, seeds and compiled, then compiles and checks. The mission and values it writes are drafts; approving them is yours, with structure approve.
In Claude Code
/plugin marketplace add runstructure/plugins
/plugin install structure@structure
Claude Code then lists Structure with its seven skills, its two hooks and its MCP server. Inside a company, a session starts with one line on how the company works, and a document the agent writes that does not satisfy its type comes back to it with the errors at once.
For contributors
Working from a checkout of the Structure source, you need git and Deno 2.x. From the root of the checkout:
deno task install-cli # puts `structure` on your PATH, pointed at this checkout
structure --version # the build stamp
structure doctor # what's ready, what needs setup, the next command for each
If Homebrew's structure is installed too, a new terminal runs whichever comes first on your
PATH. which -a structure lists every one in the order the shell tries them, and
structure --version says which build answers; put ~/.deno/bin ahead of Homebrew's directory
on your PATH to run the checkout's.
Installing this way fetches the command's own dependencies once, from jsr.io and npmjs.org. That is the one download; nothing goes to us.