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
32 changes: 16 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![CI](https://github.com/Codestz/opencode-cockpit/actions/workflows/ci.yml/badge.svg)](https://github.com/Codestz/opencode-cockpit/actions/workflows/ci.yml)
[![npm](https://img.shields.io/npm/v/opencode-cockpit?color=%23cb3837&label=opencode-cockpit)](https://www.npmjs.com/package/opencode-cockpit)
[![Docs](https://img.shields.io/badge/docs-codestz.github.io-9d7cd8)](https://codestz.github.io/opencode-cockpit/)
[![Docs](https://img.shields.io/badge/docs-cockpit.codestz.dev-9d7cd8)](https://cockpit.codestz.dev/)
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)

**Your agent, on instruments.** Cockpit adds what [OpenCode](https://opencode.ai) doesn't ship with:
Expand All @@ -13,7 +13,7 @@ everything each conversation made.

*Drawn by Cockpit's own renderers, the same code that runs in your terminal: a test run failing and
passing in the background, subagents at work, the PR landing in Trail, the context filling. Every
bay, live, is on the [site](https://codestz.github.io/opencode-cockpit/).*
bay, live, is on the [site](https://cockpit.codestz.dev/).*

## Install

Expand Down Expand Up @@ -49,25 +49,25 @@ has something.

| Bay | What it gives you | Key or command | Docs |
| --- | --- | --- | --- |
| **Trail** | What every conversation shipped — PRs, tickets, deploys — and which one shipped it | `ctrl+x f` · `/trail` | [Trail](https://codestz.github.io/opencode-cockpit/trail/overview/) |
| **Shell** | Terminals that outlive the turn; the agent waits on a port or a pattern, you watch | `ctrl+x o` panel · `ctrl+x j` console | [Shell](https://codestz.github.io/opencode-cockpit/shell/overview/) |
| **Subagents** | Every helper in the sidebar with what it's doing now, and its whole run one key away | `ctrl+x d` | [Subagents](https://codestz.github.io/opencode-cockpit/subagents/overview/) |
| **Review** | Review changes like a pull request: notes on lines, which the agent reads and resolves | `ctrl+x v` | [Review](https://codestz.github.io/opencode-cockpit/review/overview/) |
| **Status** | How full the context is, where the tokens went, what changed, what it costs | `/status-setup` | [Status](https://codestz.github.io/opencode-cockpit/status/overview/) |
| **Trust** | Approve the same command three times and Trust answers it for you | `ctrl+x p` · `/trust` | [Trust](https://codestz.github.io/opencode-cockpit/trust/overview/) |
| **Updater** | Every plugin you have: what runs, what is published, and an update you pick | `/plugins-update` | [Updater](https://codestz.github.io/opencode-cockpit/updater/overview/) |
| **Trail** | What every conversation shipped — PRs, tickets, deploys — and which one shipped it | `ctrl+x f` · `/trail` | [Trail](https://cockpit.codestz.dev/trail/overview/) |
| **Shell** | Terminals that outlive the turn; the agent waits on a port or a pattern, you watch | `ctrl+x o` panel · `ctrl+x j` console | [Shell](https://cockpit.codestz.dev/shell/overview/) |
| **Subagents** | Every helper in the sidebar with what it's doing now, and its whole run one key away | `ctrl+x d` | [Subagents](https://cockpit.codestz.dev/subagents/overview/) |
| **Review** | Review changes like a pull request: notes on lines, which the agent reads and resolves | `ctrl+x v` | [Review](https://cockpit.codestz.dev/review/overview/) |
| **Status** | How full the context is, where the tokens went, what changed, what it costs | `/status-setup` | [Status](https://cockpit.codestz.dev/status/overview/) |
| **Trust** | Approve the same command three times and Trust answers it for you | `ctrl+x p` · `/trust` | [Trust](https://cockpit.codestz.dev/trust/overview/) |
| **Updater** | Every plugin you have: what runs, what is published, and an update you pick | `/plugins-update` | [Updater](https://cockpit.codestz.dev/updater/overview/) |

Every key is the same on OpenCode 1 and 2, and none of them is one of OpenCode's own. Each bay is
also published on its own, as `@opencode-cockpit/<bay>` — see
[Install](https://codestz.github.io/opencode-cockpit/start/install/).
[Install](https://cockpit.codestz.dev/start/install/).

## Set up in one sentence

Install, restart, then type `/cockpit-setup`.

The agent reads your settings, asks only what matters — which bays show, in what order, how quiet
when empty — and writes the smallest correct file. Every setting is in the
[Configuration](https://codestz.github.io/opencode-cockpit/configuration/) reference.
[Configuration](https://cockpit.codestz.dev/configuration/) reference.

## Something wrong?

Expand All @@ -76,17 +76,17 @@ npx opencode-cockpit@latest doctor
```

It checks OpenCode, its config, Cockpit's logs and the daemon, and prints the fix for anything
wrong. [Troubleshooting](https://codestz.github.io/opencode-cockpit/help/troubleshooting/) covers the
wrong. [Troubleshooting](https://cockpit.codestz.dev/help/troubleshooting/) covers the
rest.

## Links

- [Documentation](https://codestz.github.io/opencode-cockpit/) — start with
[What Cockpit is](https://codestz.github.io/opencode-cockpit/start/what-cockpit-is/)
- [OpenCode 1 and 2](https://codestz.github.io/opencode-cockpit/start/opencode-versions/) — what
- [Documentation](https://cockpit.codestz.dev/) — start with
[What Cockpit is](https://cockpit.codestz.dev/start/what-cockpit-is/)
- [OpenCode 1 and 2](https://cockpit.codestz.dev/start/opencode-versions/) — what
differs between the two
- [Changelog](CHANGELOG.md)
- [Troubleshooting](https://codestz.github.io/opencode-cockpit/help/troubleshooting/)
- [Troubleshooting](https://cockpit.codestz.dev/help/troubleshooting/)
- [Contributing](CONTRIBUTING.md)

## Contributing
Expand Down
2 changes: 1 addition & 1 deletion packages/client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ Bun ≥ 1.3.5. macOS and Linux.

## More

[Architecture](https://codestz.github.io/opencode-cockpit/platform/architecture/) ·
[Architecture](https://cockpit.codestz.dev/platform/architecture/) ·
[Daemon](../daemon) · [Protocol](../protocol) ·
[Repository](https://github.com/Codestz/opencode-cockpit)

Expand Down
2 changes: 1 addition & 1 deletion packages/daemon/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ Bun ≥ 1.3.5 — OpenCode's embedded runtime qualifies, so no separate install.

## More

[Architecture](https://codestz.github.io/opencode-cockpit/platform/architecture/) ·
[Architecture](https://cockpit.codestz.dev/platform/architecture/) ·
[Repository](https://github.com/Codestz/opencode-cockpit) ·
[Contributing](https://github.com/Codestz/opencode-cockpit/blob/main/CONTRIBUTING.md)

Expand Down
10 changes: 5 additions & 5 deletions packages/opencode/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

**Superpowers for [OpenCode](https://opencode.ai) — take all of them, or just the one you need.**

**[Documentation →](https://codestz.github.io/opencode-cockpit/)** · [Install](https://codestz.github.io/opencode-cockpit/start/install/) · [Shell](https://codestz.github.io/opencode-cockpit/shell/overview/) · [Configuration](https://codestz.github.io/opencode-cockpit/configuration/) · [Changelog](https://github.com/Codestz/opencode-cockpit/blob/main/CHANGELOG.md)
**[Documentation →](https://cockpit.codestz.dev/)** · [Install](https://cockpit.codestz.dev/start/install/) · [Shell](https://cockpit.codestz.dev/shell/overview/) · [Configuration](https://cockpit.codestz.dev/configuration/) · [Changelog](https://github.com/Codestz/opencode-cockpit/blob/main/CHANGELOG.md)

Coding agents are stuck in a one-command-at-a-time world: they run something, wait for it to
finish, and paste the whole log back into their context. Cockpit gives your agent the things a
Expand All @@ -17,7 +17,7 @@ without drowning in it — and gives *you* a live view of all of it, inside Open
![One OpenCode session with Cockpit: background tests failing then passing, subagents at work, the PR landing in Trail, the context filling](https://raw.githubusercontent.com/Codestz/opencode-cockpit/main/media/hero.gif)

*Drawn by Cockpit's own renderers, the same code that runs in your terminal. Every bay, live, is on
the [site](https://codestz.github.io/opencode-cockpit/).*
the [site](https://cockpit.codestz.dev/).*

## Features

Expand Down Expand Up @@ -197,7 +197,7 @@ npx opencode-cockpit@latest doctor
```

checks OpenCode, its config, Cockpit's logs and the daemon, and prints the fix for anything wrong —
on OpenCode 1 and 2, and when Cockpit will not load at all ([what it checks](https://codestz.github.io/opencode-cockpit/help/doctor/)).
on OpenCode 1 and 2, and when Cockpit will not load at all ([what it checks](https://cockpit.codestz.dev/help/doctor/)).

Everything Cockpit does inside OpenCode goes to one file — which OpenCode loaded which bay, and every
error with its stack:
Expand All @@ -206,8 +206,8 @@ error with its stack:
tail -50 ~/.cache/opencode-cockpit/cockpit.log
```

`COCKPIT_DEBUG=1 opencode` adds the detail. [Troubleshooting](https://codestz.github.io/opencode-cockpit/help/troubleshooting/) covers
the failures people hit and what to attach to an issue; [OpenCode 1 and 2](https://codestz.github.io/opencode-cockpit/start/opencode-versions/)
`COCKPIT_DEBUG=1 opencode` adds the detail. [Troubleshooting](https://cockpit.codestz.dev/help/troubleshooting/) covers
the failures people hit and what to attach to an issue; [OpenCode 1 and 2](https://cockpit.codestz.dev/start/opencode-versions/)
covers what differs between the two.

## How it works
Expand Down
2 changes: 1 addition & 1 deletion packages/opencode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"url": "git+https://github.com/Codestz/opencode-cockpit.git",
"directory": "packages/opencode"
},
"homepage": "https://github.com/Codestz/opencode-cockpit#readme",
"homepage": "https://cockpit.codestz.dev/",
"bugs": {
"url": "https://github.com/Codestz/opencode-cockpit/issues"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Bun ≥ 1.3.5 or Node ≥ 20 for the schemas alone. Runs anywhere zod runs.

## More

[Architecture](https://codestz.github.io/opencode-cockpit/platform/architecture/) ·
[Architecture](https://cockpit.codestz.dev/platform/architecture/) ·
[Daemon](../daemon) · [Client](../client) ·
[Repository](https://github.com/Codestz/opencode-cockpit)

Expand Down
8 changes: 4 additions & 4 deletions packages/review/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ All optional, in the `review` section of `~/.config/opencode-cockpit/config.json
| `enabled` | `true` | `false` turns Review off, its agent tools and guidance too; so does `features.review: false` |

A value Review does not know is the default and a `!` row in the pane naming the ones it does. Every
bay's settings are on [Configuration](https://codestz.github.io/opencode-cockpit/configuration/).
bay's settings are on [Configuration](https://cockpit.codestz.dev/configuration/).

## Notes

Expand All @@ -157,7 +157,7 @@ npx opencode-cockpit@latest doctor
```

checks OpenCode, its config, Cockpit's logs and the daemon, and prints the fix for anything wrong —
on OpenCode 1 and 2, and when Cockpit will not load at all ([what it checks](https://codestz.github.io/opencode-cockpit/help/doctor/)).
on OpenCode 1 and 2, and when Cockpit will not load at all ([what it checks](https://cockpit.codestz.dev/help/doctor/)).

Everything Cockpit does inside OpenCode goes to one file — which OpenCode loaded which bay, and every
error with its stack:
Expand All @@ -166,6 +166,6 @@ error with its stack:
tail -50 ~/.cache/opencode-cockpit/cockpit.log
```

`COCKPIT_DEBUG=1 opencode` adds the detail. [Troubleshooting](https://codestz.github.io/opencode-cockpit/help/troubleshooting/) covers
the failures people hit and what to attach to an issue; [OpenCode 1 and 2](https://codestz.github.io/opencode-cockpit/start/opencode-versions/)
`COCKPIT_DEBUG=1 opencode` adds the detail. [Troubleshooting](https://cockpit.codestz.dev/help/troubleshooting/) covers
the failures people hit and what to attach to an issue; [OpenCode 1 and 2](https://cockpit.codestz.dev/start/opencode-versions/)
covers what differs between the two.
2 changes: 1 addition & 1 deletion packages/review/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"url": "git+https://github.com/Codestz/opencode-cockpit.git",
"directory": "packages/review"
},
"homepage": "https://github.com/Codestz/opencode-cockpit#readme",
"homepage": "https://cockpit.codestz.dev/review/overview/",
"bugs": {
"url": "https://github.com/Codestz/opencode-cockpit/issues"
},
Expand Down
12 changes: 6 additions & 6 deletions packages/shell/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# @opencode-cockpit/shell

**Bay 01 of [Cockpit](https://github.com/Codestz/opencode-cockpit).**
[Docs →](https://codestz.github.io/opencode-cockpit/shell/overview/) ·
[Agent tools](https://codestz.github.io/opencode-cockpit/shell/tools/) ·
[Watching health](https://codestz.github.io/opencode-cockpit/shell/watching/) ·
[Panel and keys](https://codestz.github.io/opencode-cockpit/shell/interface/) ·
[Configuration](https://codestz.github.io/opencode-cockpit/configuration/)
[Docs →](https://cockpit.codestz.dev/shell/overview/) ·
[Agent tools](https://cockpit.codestz.dev/shell/tools/) ·
[Watching health](https://cockpit.codestz.dev/shell/watching/) ·
[Panel and keys](https://cockpit.codestz.dev/shell/interface/) ·
[Configuration](https://cockpit.codestz.dev/configuration/)

[![npm](https://img.shields.io/npm/v/@opencode-cockpit/shell)](https://www.npmjs.com/package/@opencode-cockpit/shell)

Expand Down Expand Up @@ -254,7 +254,7 @@ place: interface settings on an entry must be in `tui.json`, agent settings in `
| Warning: "Shell is configured twice" | Remove either `opencode-cockpit` or `@opencode-cockpit/shell` from `opencode.json` (and `tui.json` on OpenCode 1) |
| Panel says the daemon runs older code | `/shells-restart-daemon` once your shells are done |

More in [Troubleshooting](https://codestz.github.io/opencode-cockpit/help/troubleshooting/).
More in [Troubleshooting](https://cockpit.codestz.dev/help/troubleshooting/).

## How it works

Expand Down
2 changes: 1 addition & 1 deletion packages/shell/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"url": "git+https://github.com/Codestz/opencode-cockpit.git",
"directory": "packages/shell"
},
"homepage": "https://github.com/Codestz/opencode-cockpit#readme",
"homepage": "https://cockpit.codestz.dev/shell/overview/",
"bugs": {
"url": "https://github.com/Codestz/opencode-cockpit/issues"
},
Expand Down
8 changes: 4 additions & 4 deletions packages/status/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ bunx @opencode-cockpit/status preview --module examples/gallery.ts --state worki

It is a terminal, not a browser — no DOM, no images, no borders. What there is: truecolor
foreground and background, bold, dim, and alignment. See
[What you can draw](https://codestz.github.io/opencode-cockpit/status/drawing/).
[What you can draw](https://cockpit.codestz.dev/status/drawing/).

## Your own segments, in TypeScript

Expand Down Expand Up @@ -451,7 +451,7 @@ npx opencode-cockpit@latest doctor
```

checks OpenCode, its config, Cockpit's logs and the daemon, and prints the fix for anything wrong —
on OpenCode 1 and 2, and when Cockpit will not load at all ([what it checks](https://codestz.github.io/opencode-cockpit/help/doctor/)).
on OpenCode 1 and 2, and when Cockpit will not load at all ([what it checks](https://cockpit.codestz.dev/help/doctor/)).

Everything Cockpit does inside OpenCode goes to one file — which OpenCode loaded which bay, and every
error with its stack:
Expand All @@ -460,8 +460,8 @@ error with its stack:
tail -50 ~/.cache/opencode-cockpit/cockpit.log
```

`COCKPIT_DEBUG=1 opencode` adds the detail. [Troubleshooting](https://codestz.github.io/opencode-cockpit/help/troubleshooting/) covers
the failures people hit and what to attach to an issue; [OpenCode 1 and 2](https://codestz.github.io/opencode-cockpit/start/opencode-versions/)
`COCKPIT_DEBUG=1 opencode` adds the detail. [Troubleshooting](https://cockpit.codestz.dev/help/troubleshooting/) covers
the failures people hit and what to attach to an issue; [OpenCode 1 and 2](https://cockpit.codestz.dev/start/opencode-versions/)
covers what differs between the two.

## Requirements
Expand Down
2 changes: 1 addition & 1 deletion packages/status/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"url": "git+https://github.com/Codestz/opencode-cockpit.git",
"directory": "packages/status"
},
"homepage": "https://github.com/Codestz/opencode-cockpit#readme",
"homepage": "https://cockpit.codestz.dev/status/overview/",
"bugs": {
"url": "https://github.com/Codestz/opencode-cockpit/issues"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/subagents/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ npx opencode-cockpit@latest doctor
```

checks OpenCode, its config, Cockpit's logs and the daemon, and prints the fix for anything wrong —
on OpenCode 1 and 2, and when Cockpit will not load at all ([what it checks](https://codestz.github.io/opencode-cockpit/help/doctor/)).
on OpenCode 1 and 2, and when Cockpit will not load at all ([what it checks](https://cockpit.codestz.dev/help/doctor/)).

Everything Cockpit does inside OpenCode goes to one file — which OpenCode loaded which bay, and every
error with its stack:
Expand All @@ -145,6 +145,6 @@ error with its stack:
tail -50 ~/.cache/opencode-cockpit/cockpit.log
```

`COCKPIT_DEBUG=1 opencode` adds the detail. [Troubleshooting](https://codestz.github.io/opencode-cockpit/help/troubleshooting/) covers
the failures people hit and what to attach to an issue; [OpenCode 1 and 2](https://codestz.github.io/opencode-cockpit/start/opencode-versions/)
`COCKPIT_DEBUG=1 opencode` adds the detail. [Troubleshooting](https://cockpit.codestz.dev/help/troubleshooting/) covers
the failures people hit and what to attach to an issue; [OpenCode 1 and 2](https://cockpit.codestz.dev/start/opencode-versions/)
covers what differs between the two.
2 changes: 1 addition & 1 deletion packages/subagents/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"url": "git+https://github.com/Codestz/opencode-cockpit.git",
"directory": "packages/subagents"
},
"homepage": "https://github.com/Codestz/opencode-cockpit#readme",
"homepage": "https://cockpit.codestz.dev/subagents/overview/",
"bugs": {
"url": "https://github.com/Codestz/opencode-cockpit/issues"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/trail/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"url": "git+https://github.com/Codestz/opencode-cockpit.git",
"directory": "packages/trail"
},
"homepage": "https://github.com/Codestz/opencode-cockpit#readme",
"homepage": "https://cockpit.codestz.dev/trail/overview/",
"bugs": {
"url": "https://github.com/Codestz/opencode-cockpit/issues"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/trust/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ In the bundle's entry (`"trust": { … }`), this package's own, or the `trust` s
Where the block sits is the top-level `"sidebar"` list's to say — Trust last by default; a
`trust.sidebarOrder` from before 0.9 is no longer read, and is a `!` row in the block until
`/cockpit-setup` removes it. A setting Trust cannot use (`"threshold": "3"`) is a `!` row too. See
[Configuration](https://codestz.github.io/opencode-cockpit/configuration/).
[Configuration](https://cockpit.codestz.dev/configuration/).

The ledger lives outside the project, in
`~/.local/share/opencode-cockpit/trust/<project>-<hash>/events.ndjson` (`$COCKPIT_HOME` or
Expand All @@ -240,7 +240,7 @@ npx opencode-cockpit@latest doctor
```

checks OpenCode, its config, Cockpit's logs and the daemon, and prints the fix for anything wrong
([what it checks](https://codestz.github.io/opencode-cockpit/help/doctor/)).
([what it checks](https://cockpit.codestz.dev/help/doctor/)).

```sh
tail -50 ~/.cache/opencode-cockpit/cockpit.log
Expand Down
2 changes: 1 addition & 1 deletion packages/trust/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"url": "git+https://github.com/Codestz/opencode-cockpit.git",
"directory": "packages/trust"
},
"homepage": "https://github.com/Codestz/opencode-cockpit#readme",
"homepage": "https://cockpit.codestz.dev/trust/overview/",
"bugs": {
"url": "https://github.com/Codestz/opencode-cockpit/issues"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/updater/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ npx opencode-cockpit@latest doctor
```

checks OpenCode, its config, Cockpit's logs and the daemon, and prints the fix for anything wrong —
on OpenCode 1 and 2, and when Cockpit will not load at all ([what it checks](https://codestz.github.io/opencode-cockpit/help/doctor/)).
on OpenCode 1 and 2, and when Cockpit will not load at all ([what it checks](https://cockpit.codestz.dev/help/doctor/)).

Everything Cockpit does inside OpenCode goes to one file — which OpenCode loaded which bay, and every
error with its stack:
Expand All @@ -102,6 +102,6 @@ error with its stack:
tail -50 ~/.cache/opencode-cockpit/cockpit.log
```

`COCKPIT_DEBUG=1 opencode` adds the detail. [Troubleshooting](https://codestz.github.io/opencode-cockpit/help/troubleshooting/) covers
the failures people hit and what to attach to an issue; [OpenCode 1 and 2](https://codestz.github.io/opencode-cockpit/start/opencode-versions/)
`COCKPIT_DEBUG=1 opencode` adds the detail. [Troubleshooting](https://cockpit.codestz.dev/help/troubleshooting/) covers
the failures people hit and what to attach to an issue; [OpenCode 1 and 2](https://cockpit.codestz.dev/start/opencode-versions/)
covers what differs between the two.
Loading
Loading