Architecture Overview
What exists in the current codebase
Section titled “What exists in the current codebase”The current platform repo is split into four application surfaces plus shared packages:
apps/web— React + Vite web clientapps/api— Hono Agent APIapps/telegram— Telegram adapterapps/worker— skill worker for verified skill executionpackages/shared,packages/security,packages/billing— shared contracts and platform helpers
This is not just a conceptual diagram. The repo structure already enforces the platform boundary.
Layer model
Section titled “Layer model”ClawOS currently operates through four practical layers:
- Channel layer — Web and Telegram
- Agent layer — API orchestration, session handling, tool routing, billing routes
- Skills layer — verified worker execution for first-party skills such as CareerClaw
- Platform layer — auth, identity, session persistence, entitlements, security controls
Request flow in the current implementation
Section titled “Request flow in the current implementation”A normal CareerClaw request follows this path:
- the user sends a message from Web or Telegram
- the channel adapter authenticates the request into a canonical ClawOS user identity
apps/api/src/routes/chat.tsvalidates input and loads session state- the API calls the LLM with the CareerClaw system prompt and tool definitions
- if a tool action is needed, the API issues a signed skill assertion and calls the worker
- the worker verifies the assertion before executing the CareerClaw adapter
- the API formats the final response, saves session state, and returns it through the active channel
Why the worker exists
Section titled “Why the worker exists”The worker is intentionally separate from the API:
- the API owns user trust boundaries and orchestration
- the worker owns verified skill execution
- the API never treats the client as the source of entitlement truth
- the worker does not accept unauthenticated skill execution
That separation is visible in the current code:
apps/api/src/routes/chat.tsapps/api/src/skill-assertions.tsapps/worker/src/index.tsapps/worker/src/assertion-verifier.ts
Current platform truth
Section titled “Current platform truth”Today, CareerClaw is the only live skill, but the shell, registry, and worker structure are already platform-shaped rather than single-skill shortcuts.
That matters because the docs should explain ClawOS as a platform with one live skill, not as a CareerClaw app with extra pages around it.