# AGENTS.md

One local control plane for every AI agent: route across models, fuse new capabilities, orchestrate tools, and stay fully in control.

## Setup

```
npm ci
```

## Commands

```
npm run dev            # run locally
npm run build          # produce a build
npm run test           # run the test suite, must pass before any commit
npm run typecheck      # type check without emitting
npm run dev:ui
npm run dev:cli
npm run dev:electron
npm run build:assets
```

## Layout

- `packages/`  428 source files
- `docs/`      81 source files
- `build/`     14 source files
- `tests/`     5 source files
- `extension/` 3 source files
- `docker/`    2 source files

## Conventions

- Tests live alongside the code they cover, following `packages/cli/test/integration/cli-help.test.mjs`.
- TypeScript runs in strict mode. Type errors are the fastest feedback available, so do not weaken it.
- CI defines what passing means. See `.github/workflows/docker-release.yml`, and keep it green.
- TODO: add the two or three conventions a newcomer always gets wrong here.

## Gotchas

- Generated output is committed (`build/`). Search will return the compiled copy, so edit the source, not that.
- `packages/electron/bundled-plugins/claude-design/index.cjs` is 583KB. It will not fit comfortably in context, so read it in parts.

---

Drafted by agentreadme.com from what is in this repository. Everything marked TODO
needs a human. Check it in as AGENTS.md at the root.
