Skip to main content

Prerequisites

Read AGENTS.md in the repository before opening a pull request. It defines the development, validation, and pinned-runtime upgrade rules this page summarizes. Area-specific guides live in docs/guides/.

One pnpm workspace

The repository is a single pnpm workspace, defined in pnpm-workspace.yaml at the root. It covers the published package (packages/fleet-web) and the web packages (web/app, web/protocol, web/server). Use pnpm for every install. Do not run npm install or npm ci at the repository root; those commands create an unsupported dependency layout, and pnpm run check fails if a root package-lock.json exists.

Setup and dev server

Validation

After code changes, run the full check from the repository root:
It runs the runtime pin check first, then the Oxfmt format check and Oxlint with warnings as errors, then the web boundary check, the source installer check, the rendering contract checks, and the web typechecks. pnpm run check does not run tests.

Tests

Run the web test suites with pnpm run test:web, or run a focused file from the relevant package root:
Adapter tests use the web server’s deterministic test doubles; they need no real provider APIs or keys.

Boundary rules to respect

  • Do not import prime-agent outside web/server. Browser code talks HTTP only.
  • Do not add or restore vendored Prime Agent source trees. Engine changes belong upstream.
  • Dependency updates respect a 7-day minimum release age (minimumReleaseAge in pnpm-workspace.yaml).

Repository guides

  • docs/guides/upstream-runtime.md: runtime pin upgrades and daemon protocol changes.
  • docs/guides/tmux-testing.md: driving the engine TUI in tmux for interactive testing.
  • docs/guides/releasing.md: cutting a Fleet release.
Last modified on November 19, 2026