Kyber Companion
Kyber Companion combines deterministic project/deployment guidance with a documentation-grounded OpenAI chat. Its character, Kybi, is a floating green astronaut helper with glowing antennae and a holographic developer laptop. Error diagnosis and deploy guards remain deterministic; chat answers are restricted to Kyber's supported public behavior.
Included in the first implementation
- A dedicated Kyber activity-bar view.
- An animated, reduced-motion-aware Kybi webview.
- Deterministic error-code-to-playbook mapping.
kyber doctor --json integration.
- An allowlist for commands exposed as clickable actions.
- A guarded deployment command that records a successful version and blocks a later release with the same version.
- Tests for playbook selection and version guarding.
- Ask Kybi, an OpenAI-powered chat grounded privately in Kyber's public guides and installed CLI help.
- A draggable floating Kybi mascot that remembers its position inside the chat panel.
- A full-width Kyber Control Center for the normal agent lifecycle:
Overview, Design, Test & Run, Deploy, Runs, Tools, Environment, and Help.
- Structured editing for JSON agent configuration and
event.json, with raw-file
access retained for advanced editing and YAML projects.
- Separate Agent Configuration and Capabilities pages. The Capabilities page
presents editable nested form controls on the left and capability selection
with override status on the right.
- Plain-language labels and guidance are layered over the exact CLI capability
names and values. Each override shows its file impact and equivalent
kyber design eject starting point, while the saved sidecar remains fully
compatible with terminal validation, run, and deploy workflows.
- The Control Center uses a consistent dark Kyber dashboard theme across all
pages, with a lifecycle-oriented Overview and the selected agent kept visible
at the top of the workspace.
- UI forms for agent scaffolding, validation, tests, agent/circuit execution,
capability ejection, profiles/defaults, tool discovery, login, version pinning,
local Memory, run inspection, and guarded deployment options.
Run locally
- Open this
kyber-companion directory in VS Code.
- Press
F5 and select Run Kyber Companion (Clean). This launches the
Extension Development Host without unrelated installed extensions.
- The included launch profile opens the sibling
kyber-agents workspace and
lists every nested agent containing a kyber.agent.json, YAML, or YML file.
Python virtual environments
For the selected agent, Companion resolves kyber in this order:
- The interpreter currently selected by the VS Code Python extension.
VIRTUAL_ENV or CONDA_PREFIX inherited by VS Code.
.venv, venv, or env in the agent directory.
.venv, venv, or env in the opened workspace directory.
- The normal system
PATH.
The selected executable and its source are displayed below the workspace agent list.
Ask Kybi
Run Kyber: Ask Kybi or select Ask Kybi in the Companion sidebar. Kybi
answers from the public Kyber developer guides bundled with the extension and
prefers live content from an opened workspace. Kybi answers directly: it does
not expose documentation filenames or ask developers to open Markdown files.
When the available context does not document an answer, Kybi says so instead of
using outside knowledge. Questions about private implementation details are
refused while public behavior is still explained.
Answers are rendered as safe Markdown. JSON is shown as formatted JSON code
blocks, and shell commands are shown in Bash code blocks.
On the first question, Kybi asks for an OpenAI API key. The key is stored in VS
Code Secret Storage and is never passed to the webview. You can replace or
remove it with Kyber: Set OpenAI API Key and Kyber: Clear OpenAI API Key.
OPENAI_API_KEY is also supported. The documentation corpus is read once per
extension session and placed in a stable prompt prefix so later questions can
reuse OpenAI prompt caching. The first request establishes the cache; reuse is
subject to OpenAI's cache lifetime and eligibility rules.
The floating character can be dragged anywhere inside the Ask Kybi webview and
remembers its position. VS Code extensions cannot draw arbitrary overlays on top
of native editor controls, so dragging is intentionally bounded to that panel.
4. Select the Kyber Companion icon in the Activity Bar.
5. Select the dashboard icon in the Companion view, or run Kyber: Open Control
Center, to open the complete workflow UI.
Control Center execution model
The Control Center keeps the installed Kyber CLI authoritative. It edits only
the user-owned JSON configuration and input files directly; validation, tests,
runs, profile/default resolution, tool discovery, Memory, and deployment are
launched through the selected project's resolved CLI. The exact command remains
visible in the integrated terminal, preserving reproducibility for CI and
headless use. YAML manifests remain available through the raw editor until the
CLI exposes a lossless structured write contract.
Run the dependency-free checks with:
npm test
npm run check
CLI contract
The diagnostic command is expected to return JSON:
{
"success": false,
"error": {
"code": "KYBER_AUTH_REQUIRED"
}
}
Unknown codes always use the KYBER_UNKNOWN playbook. They never receive speculative instructions.
Deployment behavior
Use Kyber: Deploy with Version Guard from the Command Palette or the companion sidebar. After a successful kyber deploy, the extension stores the deployed version in VS Code workspace state. A second release using the same version is blocked and opens the manifest so the developer can update it.
The guard currently applies to deployments launched through the companion. Enforcing the same rule for kyber deploy invoked in an arbitrary external terminal requires the CLI deploy command to call the shared guard contract before deployment. That integration should be added only after matching the host CLI's existing command architecture and version source.