How doctorjei/kanibako-cli works
Kanibako provides isolated, persistent workspaces for AI coding agents. The primary workflow is: a user starts a box through the CLI; lifecycle handling resolves the project and its settings, prepares a container rig, and launches an agent in the box. Worksets, templates, credentials, channels, helper agents, and VS Code extend that workflow. The lifecycle module is large but only partially sampled, so its documented and indexed dependencies are shown; unsampled subsystem links are omitted where their callers are unclear.
Main entry points: _lifecycle.py Box lifecycle · base.py Agent plugin contract · container.py Container runtime · cli.py CLI commands
Components 22
User entry
- CLI commands
src/kanibako/cli.py
Workspace management
- Box lifecycle
src/kanibako/commands/box/_lifecycle.py - Worksets
src/kanibako/project/workset.py - Workset commands
src/kanibako/commands/workset_cmd.py - Settings resolution
src/kanibako/settings/settings_resolve.py - Configuration
src/kanibako/settings/config.py - Host and box paths
src/kanibako/settings/paths.py - Workset path keys
src/kanibako/settings/workset_dirkeys.py
Box runtime
- Container runtime
src/kanibako/runtime/container.py - Rig management
src/kanibako/runtime/rig_registry.py
Agents and launch
- Launch templates
src/kanibako/launch/templates.py - Agent plugin contract
src/kanibako/targets/base.py - Claude plugin
packages/agent-claude/src/kanibako/plugins/claude/target.py - Codex plugin
packages/agent-codex/src/kanibako/plugins/codex/target.py - Goose plugin
packages/agent-goose/src/kanibako/plugins/goose/target.py
Persistence and extensions
- Box filesystem
src/kanibako/boxfs.py - Channels
src/kanibako/channels/channels.py - Helper agents
src/kanibako/channels/helper_client.py - VS Code integration
src/kanibako/vscode/vscode_remote.py - Network proxy
src/kanibako/proxy/server.py
Other components
- User
- Podman or Docker
Connections 21
- User → CLI commands: runs
README.md - CLI commands → Box lifecycle: dispatches
- Box lifecycle → Worksets: resolves
src/kanibako/commands/box/_lifecycle.py - Workset commands → Worksets: manages
src/kanibako/commands/workset_cmd.py - Box lifecycle → Settings resolution: resolves
src/kanibako/commands/box/_lifecycle.py - Box lifecycle → Configuration: reads
src/kanibako/commands/box/_lifecycle.py - Box lifecycle → Host and box paths: resolves
src/kanibako/commands/box/_lifecycle.py - Box lifecycle → Workset path keys: resolves
src/kanibako/commands/box/_lifecycle.py - Box lifecycle → Container runtime: launches
src/kanibako/commands/box/_lifecycle.py - Box lifecycle → Launch templates: applies
src/kanibako/launch/templates.py - Box lifecycle → Agent plugin contract: launches agent
- Container runtime → Podman or Docker: controls
README.md - Box lifecycle → Rig management: selects rig
- Agent plugin contract → Claude plugin: implements
packages/agent-claude/src/kanibako/plugins/claude/target.py - Agent plugin contract → Codex plugin: implements
packages/agent-codex/src/kanibako/plugins/codex/target.py - Agent plugin contract → Goose plugin: implements
packages/agent-goose/src/kanibako/plugins/goose/target.py - Box lifecycle → Channels: configures
src/kanibako/commands/box/_lifecycle.py - Box lifecycle → Helper agents: supports
- Box lifecycle → VS Code integration: opens
- Container runtime → Network proxy: uses
- Agent plugin contract → Box filesystem: uses
src/kanibako/targets/base.py