Skip to content
Projetos

Sobre

The system of record for businesses run with AI agents. Agents run the work. You keep the business record and the keys.

IA e aprendizado de máquina

Como estes números são medidos

Crescimento medido de estrelas

em 24 h
0
em 7 dias
+1
em 15 dias
+1
em 1 mês
+1

Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.

README.md

Original

Main Branch logo

Main Branch

The system of record for businesses run with AI agents.

Agents run the work. You keep the business record and the keys.

Main Branch keeps your offers, audience, research, decisions, and lessons as plain files in a folder you own. That folder is your business record. Claude Code or Codex reads it before it advises you, proposes work, and saves what you approve. Session logs show what an agent did. The business record shows what you decided, so the next session starts there, not from a blank chat.

Set up your business folder · Follow a working day · Browse the docs · Check runtime support

What you get

  • An agent that has read your offer, audience, and voice files before it answers.
  • Proposals you approve, edit, or reject. Nothing publishes, spends, or contacts a customer without your say.
  • Decisions and lessons saved as files, so the next session reads them.
  • Readable saved history in git, with a preview before every save. The one bounded exception: /mb-grow log entries the owner approved in autonomy.md.

Try it

After setup, open your business folder and ask:

People keep asking what my service includes. Read my offer and audience files, show me what is unclear, and propose one change before writing.

The agent reads your files and Main Branch's health and status facts, shows the evidence and what it is unsure about, and proposes one change. You approve it. The accepted offer becomes a file the next session reads. The working-day walkthrough follows a fictional example from the first question to the next morning.

The same loop clarifies an offer, turns research into a decision, plans a bet, drafts content, reviews a page, or saves a lesson from finished work.

Do this first

You need Python, git, and Claude Code or Codex CLI, signed in. The setup guide covers installing each. With those and pipx in place:

pipx install mainbranch
mb onboard --name "My Business" --path my-business
cd my-business
mb doctor

mb onboard asks you a few questions in the terminal. "My Business" and my-business are example names; choose your own. A healthy folder ends mb doctor with:

all good — you're set to run `claude`.

Then open the folder in Claude Code and run /mb-start. In Codex CLI, ask it to use the global mb-start skill. Tell the agent what you want help with. If a skill is missing, follow the setup repair steps.

Prefer to be guided? You can paste the setup prompt into your runtime. It asks about your business and proposes the first files for your review. Local-only setup is valid. GitHub backup is recommended and requires a signed-in account and your approval.

Keep this business folder separate from a clone of the Main Branch engine.

What works where

Claude Code supports the bundled production workflows within each workflow's limits. Codex supports the daily start, status, setup, think, repair, update, help, and close routes. Its bet, ads, organic, site, and books routes remain read-only planning. Wiki and skill-authoring workflows are outside current Codex support. The tailnet audit skills are drafts, and /mb-seo is experimental. Check compatibility or run mb workflow list --runtime codex --json for exact route status.

Work with it each day

  1. Open your business folder. Use /mb-start in Claude Code or the global mb-start skill in Codex to read current facts.
  2. Describe the question or work. Ask the agent to cite the files and observations behind its recommendation.
  3. Choose the next move. Review proposed file changes and approve the work you want it to do.
  4. Ask for a checkpoint preview, then approve the save. A checkpoint records accepted files in local history. Syncing that history to GitHub is separate.
  5. Use /mb-end, or the global mb-end skill in Codex, to review what changed, what you learned, and what remains open.

The four operating loops describe this method as Sense, Decide, Ship, and Reflect. You can use them within one short session. You do not need a separate agent or document for every step.

Your files and authority

Your business record stays in plain Markdown and git history. You can read it in a text editor without Main Branch. Credentials, caches, and raw sensitive data have separate storage boundaries.

The agent proposes and explains work within the authority you give it. Publishing, spending, customer contact, and account changes require explicit approval and a tested execution path. Installing Main Branch does not authorize those actions.

mb starts and checks the agents you define. It hosts no model and schedules nothing. mb agent up and the live mb agent check <name> shipped in 0.6.25; see agent policy for what they prove. The local read-only dashboard is a view over your files, not a hosted business database.

Supported setups

Setup Scope
macOS and Linux Supported CLI paths. Install your agent runtime separately.
Claude Code Bundled skills with plugin wiring and project-local command bridges.
Codex CLI Global Main Branch skills and generated repo guidance for the daily loop, with the workflow limits above.
Native Windows Experimental. WSL2 is the closest path to the supported Linux setup.
Other agent runtimes Compatibility targets until an adapter and smoke evidence exist.

See compatibility for the full contract. Updates, older layouts, and repairs are covered in setup and migration.

For contributors and power users

The agent normally runs mb for you. These commands let you inspect its facts and proposals directly:

Need Command
Read the daily briefing mb status
Read usage and weekly role caps mb usage
Check folder and runtime health mb doctor
Preview repairs mb doctor repair --plan
Check business files and relationships mb validate
Inspect the relationship graph mb graph
Preview a saved checkpoint mb checkpoint --plan --json
Inspect workflow support mb workflow list
Inspect connected-tool readiness mb connect status --json
View the local dashboard mb dashboard build

Run mb --help for the command list. See the docs index for Google reads, books, provider connections, playbooks, and other references.

New contributors should read CONTRIBUTING.md. Agents working on the engine follow AGENTS.md and the cold-start contract.

Help and community

Ask for mb-help in your runtime, read support, or report a public-safe problem through GitHub Issues. Review an issue draft before submitting business context.

The optional Skool community follows businesses using Main Branch. Membership is not required to use the open-source tool.

License

MIT (c) 2026 Noontide

Explore projetos relacionados

Carregando…