Component Specifications

Component-level designs and contracts. Amended as components evolve.

agent-tooling Draft

Spec: Agent Tooling

Provides tools to agents for interacting with the project workspace: file, search, code intelligence (code.lsp), debugging (debug).

agent Draft

Spec: Agent Harness

Compiles the project DSL into running agents; wires processor pipeline, provider routing, and observability.

daemon Draft

Spec: Daemon

Defines the kaged daemon process: startup, shutdown, CLI, configuration, and lifecycle gates.

federated-config Draft

Spec: Federated Project Configuration

How projects compose, override, and resolve configuration across multiple layers and overlays.

git

spec: git

http-api Draft

Spec: HTTP + WebSocket API

Operator-facing HTTP endpoints, WebSocket protocol, auth contract, and warning headers.

issues Draft

Spec: Issues

Structured inbox for project-scoped work; guests surface requests, operators triage into actions.

llm Draft

Spec: LLM Provider Interface

Resolves, loads, and wraps LLM provider modules bundled into the daemon binary; takes a resolved route and conversation context, returns typed stream events.

string | null; // ISO 8601 date string or null
local-config Draft

Spec: Local config

Operator-local configuration file: credentials, preferences, project registry — per-user, per-machine.

logging Draft

Spec: Operational Logging

Structured operational logging: dual-sink pipeline, log levels, sources, retention, HTTP API, plugin logging, and UI integration.

notifications Draft

Spec: Session notifications (daemon side)

Daemon-side session notification router: event normalization, presence gate, channel dispatch, Web Push bridge.

plugin-host Draft

Spec: Plugin Host

Spawns, supervises, and communicates with plugins over JSON-RPC 2.0 on stdio.

(newConfig) => {
project-dsl Draft

Spec: Project DSL

The YAML file an operator authors to declare agents, cages, tools, prompts, and model routing.

project-recipe Draft

Spec: project.recipe

project-terminals Draft

Spec: Project Terminals

End-to-end wiring from UI click through PTY/tmux spawn to xterm.js over WebSocket.

release-pipeline

Release pipeline

sandbox Draft

Spec: Sandbox

Compiles DSL cage blocks into kernel-level isolation: bwrap, network allowlists, seccomp, cgroups.

session-manager Draft

Spec: Session Manager

Owns session lifecycle: creation, active work, checkpoint, detach, reattach, termination.

sso-relay Draft

Spec: Shared SSO Relay (@kaged/sso)

The stateless shared SSO relay (@kaged/sso): OAuth dance with upstream providers, short-lived ES256 JWT minting, fragment delivery, and the daemon-side verification contract.

task-runner Draft

Spec: Task Runner

Launch, observe, and manage project-scoped terminal commands from the web UI.

users Draft

Spec: Users, Roles, and Project Grants

Unified user principals — operators, members, and guests in one table with three-tier roles, daemon-managed credentials (password and/or SSO), TOFU provisioning, and per-project grants.

wire Draft

Spec: @kaged/wire

Shared wire contract package — Zod schemas for every HTTP request/response body, error envelope, and WebSocket message.

workflows Draft (declaration side + `steps` schema implemented in `@kaged/dsl`; execution engine implemented in `@kaged/daemon` incl. ADR-0048 routing/loops/`compare`; pre-dispatch upload/file-input surface partial)

Spec: Workflows

Operator-authored, parameterised agent recipes: structured inputs, ordered steps, limited tools, defined lifecycle, and the v1 execution engine.

Client submits inputs; daemon validates (§Input Schema Reference). Failure → `422`, nothing persisted.