# Caudra 0.2 Preview 3

[v0.2.0-preview.3 on GitHub](https://github.com/caudra/caudra/releases/tag/v0.2.0-preview.3)

- Project memory is rebuilt around a summarized journal.
- GitHub sign-in for Copilot, and a Copilot Enterprise provider.
- Available updates show in every session.

> **Important**
>
> **Close every other Caudra session before you start Preview 3.** On its first start, Preview 3 upgrades the session database in your [state directory](/docs/configuration/#directory-layout) and needs exclusive access. This includes other terminals, editor sessions over ACP, and `caudra storage` commands. While any of them has the database open, Preview 3 does not start. It lists the sessions to close, and nothing is changed.
>
> The upgrade keeps your sessions and saves the old database as `caudra.db.v22.bak` next to `caudra.db`. Preview 2 and earlier cannot open the upgraded database, and `caudra rollback` restores only the previous binary, not the database.

## Project memory

- **Memory summarizes itself.** Notes the agent saves go into a journal, and a background job writes one-line summaries of older notes. The system prompt carries a view of at most 32 KiB, however many notes a project collects. The model opens a summary line to read the notes behind it, and searches the journal for anything the view leaves out.
- **Existing notes are imported automatically** the first time Caudra opens a project's memory. Note files are never modified. Tags are dropped, and the memory tool's `list` and `tags` actions are replaced by `view`, `zoom`, and `search`.
- **Summaries cost model usage.** By default the Memory job uses the same model as compaction, and it follows changes in `/model` from the next summary line. To spend less, bind Memory to a Fast model in `/model`. To turn summaries off, set `summarize_memory = false` under `[agent]`. Summaries are never written during one-shot `--print` runs, and the lifetime view in `/usage` lists their spend under `memory`.
- **`/memory` is an inspector.** It shows the view as the model reads it, expands each line into the notes it covers, and tracks the summaries being written.

## GitHub Copilot

- **Sign in with GitHub.** `caudra auth login copilot` now signs in through the browser with a one-time code. `--method import` still imports tokens from the gh CLI, the Copilot plugin, and the keyring.
- **Copilot Enterprise provider.** `caudra auth login copilot-enterprise --hostname company.ghe.com` signs in to a GitHub Enterprise host, and a personal account can stay signed in alongside it. Enterprise requests go only to `https://copilot-api.<host>`, never to public GitHub. For automation, set both `GH_COPILOT_ENTERPRISE_TOKEN` and `GH_COPILOT_ENTERPRISE_HOST`. The provider has not yet been tested with a live enterprise account, so please report any problems.

## Updates

- **Update banner.** When a newer release is available, a banner above the prompt names it and the update command for your channel, in every session. Close it with its `×` or `/dismiss-update` until the next start. Caudra never installs updates on its own. `CAUDRA_ENABLE_UPDATE_CHECK=1` checks GitHub immediately instead of using the result cached for 24 hours.

## Interface fixes

- **Guide and replace while work runs.** `Ctrl+X g` and `Ctrl+X x` now work whenever a prompt would queue, including while the agent waits on background tasks or workflows.
- **Usage limits.** When the Anthropic usage endpoint is rate-limited, `/usage` keeps the last figures and shows when they were fetched. Click the fetch time to refresh anyway.
- **Rhai highlighting.** Automation and workflow scripts are syntax-highlighted in the workbench, tool cards, diffs, and Markdown code blocks.
- **Workbench fixes.** Scrolling in Files, Git, and Search no longer snaps back to the selected row, and the Git graph refreshes after new commits, including in linked worktrees.
