# burgee > Everything a CLI needs that isn't your CLI. Written once, served to humans and agents alike. A CLI framework built on one declaration: help, --json, --schema, an MCP server and shell completions are all read from it, and its drop-in paths for commander and yargs are graded by their own test suites. ## Packages - [burgee](https://burgee.interlace.tools/docs/packages/burgee): A CLI framework built on one declaration: help, --json, --schema, MCP, completions and types are projected from it, with exit codes and fix: lines an agent can act on. No dependency outside the burgee family. Drop-in paths for commander, yargs and meow. - [bellpull](https://bellpull.interlace.tools/docs): Runs a subprocess, resolves the executable it names, and returns one structured result every caller can read: a line for a person, a --json envelope or an agent event. Zero dependencies. Drop-in paths for cross-spawn and which. - [Coming from execa](https://bellpull.interlace.tools/docs/coming-from/execa): An execa alternative with zero dependencies: bellpull's run() treats a non-zero exit as a value, not an exception, says which binary ran, and renders one result as text, --json or an agent event. Not an execa drop-in: execa's own suite grades it 0 / 1179, and that zero is the design. - [Coming from cross-spawn](https://bellpull.interlace.tools/docs/coming-from/cross-spawn): A cross-spawn alternative with a drop-in path: import spawn from bellpull/cross-spawn, graded 68 / 68 by cross-spawn's own test suite — then zero dependencies, and a run() whose result says which binary ran and treats a non-zero exit as a value. - [Coming from which](https://bellpull.interlace.tools/docs/coming-from/which): A which alternative with a drop-in path: import which from bellpull/node-which, graded 5 / 5 by node-which's own test suite — then zero dependencies, and a resolver that returns the PATH entry the binary came from. - [caique](https://caique.interlace.tools/docs): Prompts that are flags first: an agent passes the answer up front, and a non-TTY caller gets an error naming the flag, never a prompt that waits. No dependency outside the burgee family. Drop-in path for @inquirer/core. - [Coming from inquirer](https://caique.interlace.tools/docs/coming-from/inquirer): An inquirer alternative for prompts that never hang: caique/inquirer carries @inquirer/core's surface, graded 46 / 46 by its own suite — and caique's prompts are flags first, so a non-TTY caller gets an error naming the flag instead of a hang. - [Coming from clack](https://caique.interlace.tools/docs/coming-from/clack): A clack (@clack/prompts) alternative with two ways across: caique/clack, clack's prompts under clack's names on caique's own engine, graded by clack's own suite; or caique's flag-first prompts, where a non-TTY caller gets an error naming the flag instead of a hang. - [closeout](https://closeout.interlace.tools/docs): Runs every exit handler exactly once on every path out of the process, restores the terminal, and holds shutdown to a deadline so it cannot hang. Zero dependencies. Drop-in paths for signal-exit, exit-hook, restore-cursor, cli-cursor and onetime. - [Coming from signal-exit](https://closeout.interlace.tools/docs/coming-from/signal-exit): A signal-exit alternative with a drop-in path: import { onExit } from closeout/signal-exit, graded 134 / 135 by signal-exit's own test suite, level with signal-exit itself — then an onExit that runs once on every exit path under a bounded deadline, and reports as --json or an agent event. - [Coming from exit-hook](https://closeout.interlace.tools/docs/coming-from/exit-hook): An exit-hook alternative with a drop-in path: import exitHook from closeout/exit-hook, graded 21 / 21 by exit-hook's own test suite — then phases that hand the terminal back last, and an onExit that reaches every exit path under one bounded deadline. - [Coming from restore-cursor](https://closeout.interlace.tools/docs/coming-from/restore-cursor): A restore-cursor alternative with a drop-in path: import restoreCursor from closeout/restore-cursor, graded 6 / 6 by restore-cursor's own test suite — then zero dependencies, and a restore phase that runs after every other exit handler. - [controlroom](https://controlroom.interlace.tools/docs): Keyboard-driven terminal screens, inline or full-screen, with a static projection for pipes, CI and --json. No dependency outside the burgee family; react and react-reconciler are optional peers, loaded only by controlroom/ink. Drop-in path for ink. - [Coming from ink](https://controlroom.interlace.tools/docs/coming-from/ink): Move an ink program to controlroom/ink by changing its import and installing react-reconciler; graded by ink 8.0.0's own suite at 1304 of 1304. Packages written for ink run unchanged with one package.json line. - [flagstaff](https://flagstaff.interlace.tools/docs): Spinners, progress, boxes and tables on one terminal frame loop, with a static projection for pipes, screen readers and agents, and a plugin host. No dependency outside the burgee family. Drop-in paths for ora, log-update, boxen and cli-table3. - [Coming from ora](https://flagstaff.interlace.tools/docs/coming-from/ora): An ora alternative with a drop-in path: import ora from flagstaff/ora, graded 223 / 223 by ora's own test suite — then a frame loop whose static projection gives pipes one line per state and --json one event per transition. - [Coming from log-update](https://flagstaff.interlace.tools/docs/coming-from/log-update): A log-update alternative with a drop-in path: import logUpdate from flagstaff/log-update, graded 99 / 99 by log-update's own test suite — then a frame loop whose static projection gives pipes one line per state and --json one event per transition. - [Coming from boxen](https://flagstaff.interlace.tools/docs/coming-from/boxen): A boxen alternative with a drop-in path: import boxen from flagstaff/boxen, graded 213 / 213 by boxen's own test suite — then a box component whose static projection gives a pipe, an agent and a screen reader the text and title, not the border. - [Coming from cli-table3](https://flagstaff.interlace.tools/docs/coming-from/cli-table3): A cli-table3 alternative with a drop-in path: import Table from flagstaff/cli-table3, graded 29 / 29 by cli-table3's own test suite — then a table component whose static projection gives a pipe and an agent one line of header: value pairs per row. - [linegauge](https://linegauge.interlace.tools/docs): Measures, wraps, truncates and slices styled terminal text, grapheme-correct over Intl.Segmenter, with the same result on a terminal, a pipe or --json. Zero dependencies. Drop-in paths for string-width, wrap-ansi, strip-ansi, slice-ansi, cli-truncate and widest-line. - [Coming from string-width](https://linegauge.interlace.tools/docs/coming-from/string-width): A string-width alternative with zero dependencies: linegauge's default export is string-width, graded 233 / 233 by its own suite — plus wrap-ansi, strip-ansi and slice-ansi paths, grapheme-correct over Intl.Segmenter and pure, so a pipe and a terminal get the same columns. - [Coming from wrap-ansi](https://linegauge.interlace.tools/docs/coming-from/wrap-ansi): A wrap-ansi alternative with a drop-in path: import wrapAnsi from linegauge/wrap, graded 85 / 85 by wrap-ansi's own test suite — then zero dependencies, one style stack shared with slice, and the same grapheme-correct width string-width is graded on, so a wrapped row measures the way a terminal draws it. - [Coming from strip-ansi](https://linegauge.interlace.tools/docs/coming-from/strip-ansi): A strip-ansi alternative with a drop-in path: import stripAnsi from linegauge/strip, graded 8 / 8 by strip-ansi's own test suite — then no ansi-regex underneath, and one escape scanner shared with width, wrap and slice, so what strip removes is exactly what they count as zero columns. - [Coming from slice-ansi](https://linegauge.interlace.tools/docs/coming-from/slice-ansi): A slice-ansi alternative with a drop-in path: import sliceAnsi from linegauge/slice, graded 106 / 106 by slice-ansi 10's own test suite — then zero dependencies, grapheme clusters never halved, and one style stack shared with wrap. - [oxmutate](https://oxmutate.interlace.tools/docs): Mutation testing for JavaScript and TypeScript on the oxc engine, run warm inside the project's own Vitest, with CI lanes, SARIF and an agent surface. No dependency outside the burgee family. A Stryker migration path. - [Coming from Stryker](https://oxmutate.interlace.tools/docs/coming-from/stryker): Move a Stryker project to oxmutate by changing one command: it reads stryker.config.* unchanged, writes Stryker's JSON report, and runs Stryker's 17 mutator families. What differs on purpose, which keys it does not use, and how closely its verdicts agree with Stryker's. - [paratext](https://paratext.interlace.tools/docs): Hyperlinks, inline images, the window title, the clipboard, notifications and the bell, each with a static fallback for a terminal, pipe or agent that cannot show it. Zero dependencies. Drop-in paths for ansi-escapes, terminal-link and term-img. - [Coming from ansi-escapes](https://paratext.interlace.tools/docs/coming-from/ansi-escapes): An ansi-escapes alternative with a drop-in path: import ansiEscapes from paratext, graded 4 / 4 by ansi-escapes' own test suite — then hyperlinks, images and the working directory that project to plain text for pipes and agents instead of raw escape bytes. - [Coming from terminal-link](https://paratext.interlace.tools/docs/coming-from/terminal-link): A terminal-link alternative with a drop-in path: import terminalLink from paratext/terminal-link, graded 8 / 8 by terminal-link's own test suite, with two cases excluded by name — then zero dependencies, and hyperlinks that project to plain text for pipes and agents. - [Coming from term-img](https://paratext.interlace.tools/docs/coming-from/term-img): A term-img alternative you adopt by changing one import: import terminalImage from paratext/term-img, graded 18 / 18 by term-img's own test suite, level with term-img itself — file paths and bytes alike, with zero dependencies. - [roundel](https://roundel.interlace.tools/docs): Colour for a CLI: one output policy decided from the runtime, nine semantic tokens over util.styleText, and a theme that changes them together, contrast-checked. Zero dependencies. Drop-in paths for chalk, colorette, kleur, picocolors, supports-color and yoctocolors. - [Coming from chalk](https://roundel.interlace.tools/docs/coming-from/chalk): A chalk alternative with a drop-in path: import chalk from roundel/chalk, graded 59 / 59 by chalk's own test suite — then semantic tokens that go plain on a pipe, under NO_COLOR and under --json. - [seniority](https://seniority.interlace.tools/docs): Resolves flags, environment variables, config files and defaults in one fixed order, with provenance: every value can say where it came from. Zero dependencies. Drop-in paths for cosmiconfig, lilconfig, dotenv and rc. - [Coming from cosmiconfig](https://seniority.interlace.tools/docs/coming-from/cosmiconfig): A cosmiconfig alternative with zero dependencies: import { cosmiconfig } from seniority, graded 242 / 243 by cosmiconfig's own suite, level with cosmiconfig itself — with provenance, so every resolved value can say where it came from, as text, --json data or an agent event. - [Coming from dotenv](https://seniority.interlace.tools/docs/coming-from/dotenv): A dotenv alternative with a drop-in path: import dotenv from seniority/dotenv, graded 197 / 197 by dotenv 18's own test suite, level with dotenv itself — then the same package resolves every value across flags, env, config files and defaults, with provenance as text, --json data or an agent event. - [Coming from rc](https://seniority.interlace.tools/docs/coming-from/rc): An rc alternative with a drop-in path: import rc from seniority/rc, graded 1 / 1 by rc's own test — one exit-code bit, not a case count — then rc's file stack and merge with none of its four dependencies, and a resolver that says where every value came from. ## Documentation - [Your CLI is an agent tool](https://burgee.interlace.tools/docs/agent-surfaces): Every burgee program answers --schema and --mcp from its one declaration — no tool definitions, no second interface. - [burgee/brand](https://burgee.interlace.tools/docs/api/brand): Every export of burgee/brand, with its signature and doc comment: opposedField, burgeeFlagPath, fieldId, chargeTransform, chargeRotation, placeCharge and 8 more, plus 7 types. - [burgee/cli](https://burgee.interlace.tools/docs/api/cli): Every export of burgee/cli, with its signature and doc comment: brandCommand, devCommand, migrateCommand, pluginCheckCommand, skillCommand, initCommand and 1 more. - [burgee/commander](https://burgee.interlace.tools/docs/api/commander): burgee/commander is a drop-in for commander: the same API, documented by commander itself. Every name it exports, and where its reference lives. - [burgee/commander/extra-typings](https://burgee.interlace.tools/docs/api/commander/extra-typings): burgee/commander/extra-typings is a drop-in for @commander-js/extra-typings: the same API, documented by @commander-js/extra-typings itself. Every name it exports, and where its reference lives. - [burgee/commander/v14](https://burgee.interlace.tools/docs/api/commander/v14): Every export of burgee/commander/v14, with its signature and doc comment: Command, program, createCommand, Argument, humanReadableArgName, useColor and 8 more, plus 16 types. - [burgee/completions](https://burgee.interlace.tools/docs/api/completions): Every export of burgee/completions, with its signature and doc comment: completionTree, renderFigSpec, renderCompletion, SHELLS, plus 1 type. - [burgee/config](https://burgee.interlace.tools/docs/api/config): Every export of burgee/config, with its signature and doc comment: ConfigError, envName, resolve, screaming, explain, plus 5 types. - [burgee/contrast](https://burgee.interlace.tools/docs/api/contrast): Every export of burgee/contrast, with its signature and doc comment: mix, ratio, check, report, fieldColorAt, auditBurgee and 3 more, plus 2 types. - [burgee/help](https://burgee.interlace.tools/docs/api/help): Every export of burgee/help, with its signature and doc comment: renderHelp, plus 3 types. - [burgee](https://burgee.interlace.tools/docs/api): Every export of burgee, with its signature and doc comment: defineError, ExitCode, isExitCode, ExitCodeValue, defineCommand, defineProgram and 14 more, plus 60 types. - [burgee/mcp](https://burgee.interlace.tools/docs/api/mcp): Every export of burgee/mcp, with its signature and doc comment: annotationsOf, MCP_PROTOCOL_VERSION, serveMcp, toolsOf, plus 4 types. - [burgee/meow](https://burgee.interlace.tools/docs/api/meow): burgee/meow is a drop-in for meow: the same API, documented by meow itself. Every name it exports, and where its reference lives. - [burgee/plugin](https://burgee.interlace.tools/docs/api/plugin): Every export of burgee/plugin, with its signature and doc comment: validate, definePlugin, CONTRACT, PluginError, plus 7 types. - [burgee/schema](https://burgee.interlace.tools/docs/api/schema): Every export of burgee/schema, with its signature and doc comment: commandSchemaOf, inputSchemaOf, schemaOf, summaryOf, Manifest, plus 4 types. - [burgee/testing](https://burgee.interlace.tools/docs/api/testing): Every export of burgee/testing, with its signature and doc comment: processRuntime, captureConsole, codeOf, fakeClock, fakeRuntime, finish and 7 more, plus 7 types. - [burgee/yargs](https://burgee.interlace.tools/docs/api/yargs): burgee/yargs is a drop-in for yargs: the same API, documented by yargs itself. Every name it exports, and where its reference lives. - [burgee/yargs/helpers](https://burgee.interlace.tools/docs/api/yargs/helpers): burgee/yargs/helpers is a drop-in for yargs/helpers: the same API, documented by yargs itself. Every name it exports, and where its reference lives. - [burgee/yargs/parser](https://burgee.interlace.tools/docs/api/yargs/parser): burgee/yargs/parser is a drop-in for yargs-parser: the same API, documented by yargs-parser itself. Every name it exports, and where its reference lives. - [burgee/yargs/v17](https://burgee.interlace.tools/docs/api/yargs/v17): Every export of burgee/yargs/v17, with its signature and doc comment: applyExtends, argsert, camelCase, decamelize, hideBin, isPromise and 8 more, plus 32 types. - [burgee/yargs/v17/yargs](https://burgee.interlace.tools/docs/api/yargs/v17/yargs): Every export of burgee/yargs/v17/yargs, with its signature and doc comment: factory. - [Benchmarks](https://burgee.interlace.tools/docs/benchmarks): Every number this project claims in public, measured — and the ones that are not measured, saying so. - [Start from a boilerplate](https://burgee.interlace.tools/docs/boilerplates): Copy a working controlroom app and change it, instead of starting from an empty file. - [Callers](https://burgee.interlace.tools/docs/callers): Every feature against every caller — a person, an agent, CI, a screen reader and another program — and the test that holds each cell. - [Changelog](https://burgee.interlace.tools/docs/changelog): Every release of burgee, newest first, from its CHANGELOG.md — what changed and the pull request it came from. - [Coming from blessed](https://burgee.interlace.tools/docs/coming-from/blessed): Move a blessed program to controlroom, the burgee family's blessed alternative: screen, box, list, key handling and the render loop mapped onto open(), layout trees, keymaps and flagstaff panes, what does not map, and what burgee migrate reports for a blessed program. - [Coming from neo-blessed](https://burgee.interlace.tools/docs/coming-from/neo-blessed): Move a neo-blessed program to controlroom, the burgee family's neo-blessed alternative. neo-blessed keeps blessed's API, so its mapping is blessed's; this page gives it section by section, with what does not map and what burgee migrate reports. - [Coming from terminal-kit](https://burgee.interlace.tools/docs/coming-from/terminal-kit): Move a terminal-kit full-screen program to controlroom, the burgee family's terminal-kit alternative: fullscreen, grabInput, on('key'), menus and screen buffers mapped onto open(), keymaps and flagstaff panes, what does not map, and what burgee migrate reports. - [burgee vs the alternatives](https://burgee.interlace.tools/docs/comparison): Measured against commander, yargs, oclif, cac and citty — every capability row marked built is in the package today, with its tests. - [Compatibility](https://burgee.interlace.tools/docs/compatibility): Each host's own test suite, run against burgee in CI. A published pass rate that only goes up — never the word "compatible". - [Agent surfaces](https://burgee.interlace.tools/docs/concepts/agent-surfaces): One declaration projected into every form a caller reads — help, the --json envelope, --schema, an MCP server, completions — and a program that stops and says what to run instead of prompting an agent. - [Configuration and precedence](https://burgee.interlace.tools/docs/concepts/configuration): seniority's one fixed order — flag, env, config file, package.json field, default — resolved by a pure function that records where every value came from, so --explain can say what won and what it beat. - [Drop-in façades and migration](https://burgee.interlace.tools/docs/concepts/drop-ins): A drop-in reproduces its incumbent's API and behaviour, never its mechanism; burgee migrate moves only the imports the compatibility oracle grades level, and refuses the rest file by file. - [How we prove claims](https://burgee.interlace.tools/docs/concepts/evidence): Every number the family publishes comes from a file a command produced: incumbent suites graded against a control, baselines that only ratchet, weight bands, capability matrices whose every cell cites its evidence, and the locks that fail when prose outruns the measurement. - [Exit codes and errors](https://burgee.interlace.tools/docs/concepts/exit-codes): Eight typed exit codes a caller can branch on, one error envelope under --json, and a fixed rule for which stream a failure goes to. - [The family and its layers](https://burgee.interlace.tools/docs/concepts/family): One job per package: six leaves that depend on nothing, three packages that compose them, dependencies that point one way, nothing installed from outside the family, and the locks that hold each rule. - [Concepts](https://burgee.interlace.tools/docs/concepts): How the burgee family works, on its own terms: the ideas every package shares, the exact rules behind them, and the tests that hold each rule. - [The output policy](https://burgee.interlace.tools/docs/concepts/output-policy): One function decides where output is going and how much colour it may carry: roundel/policy's outputMode() and colorLevel(), and roundel/terminal's interactive(). The packages that draw ask them rather than reading the process themselves. - [The plugin system](https://burgee.interlace.tools/docs/concepts/plugins): One plain object, one published schema, one set of refusal codes, and a check command in every package: how a plugin is written, validated and published across the family. - [Shutdown and terminal restore](https://burgee.interlace.tools/docs/concepts/shutdown): closeout's one registry for every way a process leaves: three phases, one deadline for the whole shutdown, the terminal restored last, and a process that dies of the signal it was sent. - [The static projection](https://burgee.interlace.tools/docs/concepts/static-projection): Every live widget and every terminal capability in the family has a plain-text form for pipes, CI and screen readers — and one without it is refused when it is registered, not discovered when it prints. - [Width and text correctness](https://burgee.interlace.tools/docs/concepts/text-width): How linegauge counts the columns a string occupies: grapheme clusters, East Asian Width from Unicode 17 tables, escape sequences that take no columns, and budgets that keep the pathological inputs fast. - [Contrast](https://burgee.interlace.tools/docs/contrast): Why your CLI's colours are checked, what AA and AAA actually require, and how to find out which one you meet. - [Gallery](https://burgee.interlace.tools/docs/gallery): Every component and every registered plugin, rendered by running them — the static projection beside the animation, in all five modes. - [Getting started](https://burgee.interlace.tools/docs/getting-started): One file, one command, and your agent connected to it while you write it. - [Overview](https://burgee.interlace.tools/docs): burgee serves one command declaration as help, --json, --schema, an MCP server, completions and types; answers an agent with exit codes, fix: lines and --explain; takes no dependency outside its family; and grades each drop-in path by the incumbent's own test suite. - [Migrate](https://burgee.interlace.tools/docs/migrate): One command moves a project from commander, yargs, chalk, ora and a dozen more incumbents to the family's drop-ins — every import the compatibility oracle grades level, and nothing it does not. - [burgee](https://burgee.interlace.tools/docs/packages/burgee): A CLI framework built on one declaration: help, --json, --schema, MCP, completions and types are projected from it, with exit codes and fix: lines an agent can act on. No dependency outside the burgee family. Drop-in paths for commander, yargs and meow. - [Packages](https://burgee.interlace.tools/docs/packages): burgee and the 10 packages it is built from: what each migrates from, and the site its docs live on. - [Plugins](https://burgee.interlace.tools/docs/plugins): Every layer takes plugins the same way — a plain object, validated against one published schema, checked by the package's own command before it ships. One object can extend all nine. - [Research](https://burgee.interlace.tools/docs/research): What 329 open issues across yargs, commander, oclif, citty and clack say about the layer nobody owns. - [Supply chain and continuity](https://burgee.interlace.tools/docs/supply-chain): What installing each burgee package puts on disk, how releases are published and signed, the licence, and what a fork inherits. Every statement links the check that holds it. - [The floor](https://burgee.interlace.tools/docs/the-floor): The requirements every CLI on burgee meets, and who holds each — runtime, lint, or both. 74 of the floor's 114 are tabled here. - [Switching from cac](https://burgee.interlace.tools/docs/vs/cac): A cac alternative, measured against it rather than dropped in: there is no burgee/cac, so moving means rewriting each command. cac is far smaller and starts faster; this is when that matters and when --json, --schema and --mcp matter more. - [Switching from citty](https://burgee.interlace.tools/docs/vs/citty): A citty alternative, measured against it rather than dropped in: there is no burgee/citty, but both declare a command as one object, so the rewrite is short. When citty is the better choice, when burgee is, and what moving looks like. - [Switching from commander](https://burgee.interlace.tools/docs/vs/commander): A commander alternative that is drop-in compatible: change one import, keep your code and tests, and gain --json, --schema, --mcp and shell completions. Graded by commander's own test suite. - [Switching from oclif](https://burgee.interlace.tools/docs/vs/oclif): An oclif alternative, measured against it rather than dropped in: there is no burgee/oclif, so moving means rewriting each command class. When oclif is the better choice, when burgee is, and what the rewrite looks like. - [Switching from yargs](https://burgee.interlace.tools/docs/vs/yargs): A yargs alternative that is drop-in compatible: change one import, keep your code and tests, and gain --json, --schema, --mcp and shell completions — with no dependency outside the burgee family where yargs has six. - [Weight, per subpath](https://burgee.interlace.tools/docs/weight): What every published entry point costs a consumer's bundle, at both ends of the tree-shaking range. - [What an agent sees](https://burgee.interlace.tools/docs/what-an-agent-sees): Recorded sessions from B1, the agent benchmark — the same five tasks against one program built on burgee and on commander, with every turn and every number taken from runs on main. - [Why it's built this way](https://burgee.interlace.tools/docs/why): The five choices behind burgee — proof by public tests, one dependency graph, contracts an agent can act on, continuity that does not depend on us, and a small first step — what each one gives you, and the check that holds it. - [Fly your own burgee](https://burgee.interlace.tools/docs/your-own-burgee): Every CLI built on burgee can have a flag of its own — generated from two colours, with your glyph on it, from the same code that draws ours.