Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ All notable changes to Cyber Code are recorded here. The format follows [Keep a

## [Unreleased]

## [0.1.0] - 2026-11-22

The first stable release, for macOS and Linux. Since 0.1.0-beta.2 it adds:

### Added

- An isolated subagent's worktree now starts from the parent checkout's uncommitted work: staged, unstaged and untracked non-ignored files, deletions and renames are committed in the child's checkout as its base, so its result still shows only its own changes (and now reports `base`). Files the Session may not read (`.env` by default) and ignored files stay behind, `.worktreeinclude` is unchanged, and `worktrees.carry_limit_mb` (default 100, `0` off) caps the total.
Expand All @@ -15,20 +19,37 @@ All notable changes to Cyber Code are recorded here. The format follows [Keep a
- Computer use reports a platform-neutral capability report (schema version 2): a derived mode (`unsupported`, `capture_only`, `input_enabled`), stable reason codes, authority kind, honored selectors and the support evidence level, alongside the existing macOS fields. Receipts add platform, grant, target and frame references, a reason, cleanup state and timestamps; HTTP errors add a `reason` code. `cyber computer allow <session> --preview <id> --yes` confirms a printed review by its identifier.
- `cyber exec --format stream-json --include-hook-events` adds a `hook_event` line for each hook that ran for the run's Session (hook ID, event, scope, outcome, decision, duration, and the tool call it guarded), before the line of what it gated. Hook input, output, reasons and environment are never included. The instance event stream carries the underlying `session.hook.receipt` summaries when asked with `include=hook_receipts`, and so does a Session's event stream (`/sessions/{id}/events`) for that Session's own receipts, which `--input-format stream-json` runs follow.
- The `auto` reviewer can check context before deciding with read-only tools: `transcript_search` over the Session's history, and `read_file`/`grep_files` over the Location under the Session's own read rules (`.env`, `deny_read` globs, secret files and paths outside the Location stay unreadable). Results arrive as framed untrusted data; budgets are 8 calls, 16 KiB per result, 64 KiB per review and 5 s per call. A bare "yes"/"go ahead" reaches the reviewer together with the assistant question it answers. `permission.auto_decided.1` records `reviewer_tools` and `confirmation`; `cyber permissions auto show` adds `reviewer tool calls`.
- Repository map: a ranked, token-budgeted map of the repository's files and definitions built with tree-sitter (Rust, Python, JavaScript, TypeScript, Go, C, C++, Java, Solidity and Bash) and cached per repository. The read-only `repo_map` tool is offered in plan mode and untrusted checkouts too, and hides read-denied files; in trusted checkouts the map is pinned into the baseline context as the `core/repo-map` source (marked `pinned` in `/context`). `repo_map` in config and profiles sets the token budgets; `cyber lsp map`, `GET /api/v1/lsp/map`, `POST /api/v1/lsp/map/rebuild` and TUI `/map` inspect it. The index is never included in backups or exports.
- Native Gemini API adapter behind the experimental `features.gemini` (off by default): `google/*` models stream from `streamGenerateContent` with the key in `x-goog-api-key` (`GEMINI_API_KEY`, then `GOOGLE_GENERATIVE_AI_API_KEY`, then `GOOGLE_API_KEY`), thought signatures are replayed byte-exact, `thinkingLevel`/`thinkingBudget` follow the model, and safety blocks and `google.rpc` quota details map to content-filter, rate-limit and quota errors. Custom providers can use it with `api.type: "gemini"`. `/login google` points to an API key; subscription login is not supported.
- Planner and executor models: `model_roles.plan` names a planner that runs a top-level Session's Turns while it is in plan mode; once the plan is approved (or the Mode changes) the next Turn runs on the Session's own model with the approved plan text, never the planner's reasoning. `/model` while planning overrides the planner for that phase. The TUI footer shows `planner: <model>`, and steps record `model_role: "plan"`. Unset, nothing changes.
- VS Code extension (`clients/vscode`): a panel bound to a Session per workspace folder with streaming, prompt, interrupt, Mode and model; the active file or selection sent as a ranged `file` part; approvals answered from a read-only diff review in the editor; and terminal handoff. It connects only to the local server over its Unix socket or loopback and authenticates with an IDE token only. Each release attaches an unsigned `cyber-<version>.vsix` and its `.sha256`; the extension is not on the Marketplace yet.
- Local IDE tokens: `cyber ide token create --client vscode [--name] [--expires <days>]`, `list` and `revoke`, and `POST|GET|DELETE /api/v1/ide/tokens`. A token (`cyi_…`, 30-day default expiry, one per client, stored hashed) is accepted only from loopback or the Unix socket and only on an allowlist of operations; it cannot create a `bypass` or `dont-ask` Session, mint tokens or reach schedules. `cyber service password` revokes every token.
- Ranged `file` prompt parts: `file { path, range: { start_line, end_line } }` admits only those lines after the usual read checks, and UTF-8 text files are now admitted as `<file>` blocks (before, a text `file` part was refused as unsupported media). The TUI sends `@path#Lx-y` mentions as ranged parts to a local server.
- In-session cron tasks: the model's `cron_create` (a 5-field cron expression in local time, or a one-shot `at`), `cron_list` and `cron_delete`, offered only to root Sessions outside Workflow Runs. Tasks are Session-scoped `cron` loops that share `loops.max_per_session` and the loop budgets, follow `missed: skip|run-once` on resume, and never create a persistent schedule.
- Loop additions: `/loop --until-goal` stops the loop once the Session's current Goal ends, `--notify always|on_change|never` (default `on_change`) sends Session notifications for changed or failed iterations, the observational `LoopIteration` hook fires after each iteration, and `/loop list` shows the pace, next run and stop conditions.
- Persistent schedules: `cyber loops add --cron "<expr>" "<prompt>"` with `list`, `show`, `pause`, `resume`, `run` and `rm`, run by `cyber service` with no client open, in a new or given Session. Runs default to `dont-ask` (an ask the run cannot answer is denied and the run continues), `bypass` needs `loops.allow_bypass` from user or managed config, directories must exist and be trusted (checked again before every run), and the model cannot create schedules. Each schedule gets a deterministic jitter (`loops.jitter_seconds`, default 60), budgets across runs, `--missed skip|run-once`, desktop notifications (macOS and Linux), a `schedule.run.1` record and the `ScheduleRun` hook.
- Path-scoped project rules: `.cyber/rules` and `.claude/rules` definitions (held until the checkout is trusted) are delivered once per Context Epoch after a matching read, edit or patch, and withdrawn when their approval is revoked or the file changes. `/context` and `GET /sessions/{id}/context` inspect every context source with token estimates, pending hook context and compaction, delivered and withheld rules and a next-request estimate; instruction files refused as `outside_project` or `read_denied` are listed there and in `cyber doctor`.

### Changed

- A key chord that computer use refuses (for example Command+C under an application grant) is now refused with `key_chord_refused` before anything is recorded or sent, and the grant stays armed. Before, it was recorded, failed in the native adapter, settled as an unknown operation and stopped the grant. The set of allowed and refused chords on macOS is unchanged.
- In `auto`, a plain read under the enforced OS sandbox (`ls`, `pwd`, `echo`, `cat`, `head`, `tail` or `wc` (never `git`), no shell expansion, only operands the Session may read without asking, untainted run, not escalated or excluded) is a recorded policy allow instead of a reviewer call. Every other command is still reviewed; `classify_read_only: true` reviews these too.
- The longest server-advised retry delay is now set per provider (`providers.<id>.retry.max_wait_ms`, 60 s, 240 s for `gemini`). A longer delay fails at once in an attended Session and is waited out in unattended runs within `usage_limit.max_wait`; before, it was shortened to the cap, so the retry came before the window opened.
- `cyber exec --input-format stream-json` drives a foreground subagent's permission and question requests over stdin like the parent's, bounds owned requests to 64 (a further one gets a `capacity` error line), and adds `input_message_ids` to step lines.

### Fixed

- Model-run commands no longer wait for an editor, pager or Git credential prompt: `git commit` without `-m` aborted only at the command timeout, and `git log` in a PTY waited in the pager. Shell tools, `monitor`, PTYs, background commands, worktree setup and solve checks now get `GIT_EDITOR`/`JJ_EDITOR`/`HGEDITOR`/`EDITOR`/`VISUAL=true`, `PAGER`/`GIT_PAGER`/`JJ_PAGER`/`MANPAGER=cat` and `GIT_TERMINAL_PROMPT=0`; a value set in `sandbox.env.set` is kept.
- Tool loops on Gemini 4 models through an OpenAI-compatible endpoint failed after the first call because thought signatures were not replayed; Gemini 4 now uses the `gemini_signature` carrier like Gemini 3.
- A per-minute Gemini rate limit through the OpenAI-compatible endpoint was treated as an exhausted quota and ended the Turn unretried; `google.rpc` error bodies now go through the Gemini rules.
- Interrupting a `cyber exec --input-format stream-json` run while a subagent waited for permission ended with "Input interruption could not be reconciled"; the held call is now refused without running and the interruption is acknowledged.
- `releases/latest/download/install.sh` redirected to the rolling `channel-beta` release, which has no install script. Channel releases are now prereleases, so only a stable `v<version>` release can be GitHub's latest.

### Security

- Any reviewer tool failure (unknown tool, invalid arguments, a refused read, a timeout or an exhausted budget) ends the `auto` review as a fallback, never an allow.
- A hook's block reason (stderr of an exit-2 command), JSON `reason`/`stop_reason` and failure stderr are redacted like tool output and cut to 4 KiB before they reach live hook notices and hook receipts; the tool result was already redacted but was unbounded.
- `cyber exec` error lines, the `--format json` `error` and stream-json errors now apply the configured `tool_output.redact` patterns and the exact values of known secrets (secret-named environment variables, secret config entries and `--password`), not only the built-in detectors.

## [0.1.0-beta.2] - 2026-11-12

Expand Down
34 changes: 17 additions & 17 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ members = [
]

[workspace.package]
version = "0.1.0-beta.2"
version = "0.1.0"
edition = "2024"
license = "Apache-2.0"
repository = "https://github.com/CyberdyneCorp/cybercode-cli"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ Examples below use the built binary. If you installed it on your PATH, use `cybe

## Install a release

Pre-releases are published on the beta channel: the newest is [`v0.1.0-beta.2`](https://github.com/CyberdyneCorp/cybercode-cli/releases/tag/v0.1.0-beta.2). There is no stable release yet, so `releases/latest/download/install.sh` does not resolve (GitHub never treats a prerelease, including the rolling `channel-beta` manifest release, as latest); install from the beta channel below. Releases publish signed archives for macOS and Linux (glibc and musl) to [GitHub Releases](https://github.com/CyberdyneCorp/cybercode-cli/releases). The install script checks each archive's SHA-256 (and its Sigstore signature when `cosign` is installed); `cyber upgrade` always verifies both before replacing the binary. Windows builds are not released yet (the Windows sandbox is still partial); build from source on Windows.
The latest release is [`v0.1.0`](https://github.com/CyberdyneCorp/cybercode-cli/releases/tag/v0.1.0), on the stable channel. Releases publish signed archives for macOS and Linux (glibc and musl) to [GitHub Releases](https://github.com/CyberdyneCorp/cybercode-cli/releases). The install script checks each archive's SHA-256 (and its Sigstore signature when `cosign` is installed); `cyber upgrade` always verifies both before replacing the binary. Pre-releases are published on the beta channel; add `--channel beta` to the install script or to `cyber upgrade` to follow it. Windows builds are not released yet (the Windows sandbox is still partial); build from source on Windows.

```bash
curl -fsSL https://github.com/CyberdyneCorp/cybercode-cli/releases/download/v0.1.0-beta.2/install.sh | sh -s -- --channel beta
curl -fsSL https://github.com/CyberdyneCorp/cybercode-cli/releases/latest/download/install.sh | sh
cyber upgrade # verified in-place upgrade
cyber uninstall --dry-run # what uninstall would remove
```
Expand Down
4 changes: 2 additions & 2 deletions clients/vscode/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion clients/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "cyber",
"displayName": "Cyber Code",
"description": "Chat with Cyber Code Sessions, review proposed edits in the diff editor and answer approvals without leaving VS Code.",
"version": "0.1.0-beta.2",
"version": "0.1.0",
"publisher": "cyber-code",
"private": true,
"license": "Apache-2.0",
Expand Down
Loading
Loading