# @condensate/engine (https://condensate.dev/reference/packages/engine/)

> Condensate's model loop, the Claude adapter, context windows, and model routing.

Condensate's model loop, the Claude adapter, context windows, and model routing.

## Location

`packages/engine` in the Condensate monorepo. Its manifest name is `@condensate/engine`.

## Commands

Run these from `packages/engine` after installing dependencies at the repository root.

| Script | Command |
| --- | --- |
| `typecheck` | `tsc --noEmit` |
| `check:codex-protocol` | `bun run ../../scripts/check-codex-protocol.ts` |
| `test` | `sh ../../scripts/ci/tmp-leftovers.sh bun test` |

## Exports

| Import suffix | Source |
| --- | --- |
| `.` | `./src/session-factory.ts` |
| `./accounts` | `./src/accounts/accounts.ts` |
| `./attribution` | `./src/attribution.ts` |
| `./github-markdown` | `./src/github-markdown.ts` |
| `./merge-guard` | `./src/merge-guard.ts` |
| `./constants` | `./src/constants.ts` |
| `./engine-id` | `./src/model/engine-id.ts` |
| `./clone-lease` | `./src/clone-lease.ts` |
| `./cache-report` | `./src/model/cache-report.ts` |
| `./proxy-fetch` | `./src/model/proxy-fetch.ts` |
| `./harness` | `./src/harness/aggregator.ts` |
| `./open-harness` | `./src/harness/open-harness.ts` |
| `./thinking-policy` | `./src/model/thinking-policy.ts` |
| `./identity-prompt` | `./src/harness/identity-prompt.ts` |
| `./login` | `./src/claude/claude-login.ts` |
| `./remote-claude` | `./src/claude/remote-claude.ts` |
| `./projector` | `./src/window/projector.ts` |
| `./claude-window` | `./src/claude/claude-window.ts` |
| `./window` | `./src/window/window.ts` |
| `./window-policy` | `./src/window-policy.ts` |
| `./window-plan` | `./src/window/window-policy.ts` |
| `./seat-env` | `./src/seat-env.ts` |

## Workspace dependencies

- `@condensate/broker`

## Source of truth

These tables are generated from the package manifest. Follow the application guides for setup, and the linked source for exported interfaces.
