Architecture

Silk Code separates the developer-owned coding environment from replaceable cloud or local AI models.

Major layers

LayerResponsibility
InterfacesTerminal REPL, one-shot CLI, and local multi-session web GUI.
Agent harnessRepository context, tool orchestration, permissions, checkpoints, compaction, and verification.
Provider layerCloud APIs, OpenAI-compatible endpoints, Ollama, and local-model discovery.
ToolsFilesystem editing, tests, git, GitHub, MCP, sandbox execution, and benchmarks.
PersistenceResumable sessions, project memory, rules, and provenance metadata.

Design principles

Detailed specification

See the project’s Software Requirements Specification for the authoritative design.