# AGENTS.md

An open-source AI agent that brings the power of Gemini directly into your terminal.

## Setup

```
npm ci
```

## Commands

```
npm run start              # run the app
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 lint               # lint
npm run format             # format
npm run start:prod
npm run start:a2a-server
```

## Layout

- `packages/`          2006 source files
- `scripts/`           82 source files
- `tools/`             77 source files
- `integration-tests/` 52 source files
- `evals/`             44 source files
- `memory-tests/`      3 source files

## Conventions

- Tests live alongside the code they cover, following `.github/workflows/smoke-test.yml`.
- 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/agent-session-drift-check.yml`, and keep it green.
- TODO: add the two or three conventions a newcomer always gets wrong here.

## Gotchas

- `packages/cli/src/ui/components/InputPrompt.test.tsx` is 158KB. 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.
