Repository navigation
Workspace Map
Canonical source:
context/workspace-map.md— this page is rendered from it on every publish; edit the source.
Review when root workspaces or service/package manifests change. Last verified: 2026-10-04.
The npm-workspace inventory. Ground truth: root package.json
("workspaces": ["packages/*", "apps/*"]), .ai/manifests/services.json,
.ai/manifests/packages.json, .ai/manifests/tests.json.
Total workspaces: 28 = 6 shared packages + 21 backend services + 1 frontend.
| Package | Depends on (internal) | Owns |
|---|---|---|
@claw/shared-types |
— | types, enums, event payloads, EventPattern, Permission enum |
@claw/shared-constants |
— | ports, exchange name, API prefix, service names, pagination |
@claw/shared-auth |
shared-types, shared-utilities | AuthGuard, RolesGuard, @Public, @Roles, @CurrentUser
|
@claw/shared-rabbitmq |
shared-constants, shared-types | RabbitMQModule, RabbitMQService (retry+DLQ), StructuredLogger |
@claw/shared-utilities |
shared-constants, shared-types | jwt, http-client, crypto, url-safety, retry, time helpers |
@claw/shared-entitlements |
shared-types | plan feature gates (allow* fields) |
Full ownership rules: package-boundaries.md. Dependency
edges: .ai/manifests/workspace-dependency-graph.json.
| Service | Port | DB | Test files | Endpoints |
|---|---|---|---|---|
| claw-auth-service | 4001 | Postgres | 36 | 45 |
| claw-chat-service | 4002 | Postgres | 64 | 37 |
| claw-connector-service | 4003 | Postgres | 16 | 13 |
| claw-routing-service | 4004 | Postgres | 50 | 63 |
| claw-memory-service | 4005 | Postgres | 12 | 46 |
| claw-file-service | 4006 | Postgres | 15 | 14 |
| claw-audit-service | 4007 | Mongo | 15 | 7 |
| claw-ollama-service | 4008 | Postgres | 17 | 34 |
| claw-health-service | 4009 | none | 4 | 1 |
| claw-client-logs-service | 4010 (env-only) | Mongo | 6 | 5 |
| claw-server-logs-service | 4011 (env-only) | Mongo | 7 | 7 |
| claw-image-service | 4012 | Postgres | 9 | 9 |
| claw-file-generation-service | 4013 | Postgres | 7 | 7 |
| claw-workspace-service | 4014 | Postgres | 66 | 103 |
| claw-agent-service | 4015 | Postgres | 9 | 83 |
| claw-research-service | 4016 | Postgres | 14 | 16 |
| claw-llamacpp-service | 4017 | Postgres | 16 | 26 |
| claw-payment-service | 4018 | Postgres | 76 | 26 |
| claw-threads-service | 4019 | none | 2 | 1 |
| claw-thread-generation-service | 4020 | Postgres | 2 | 1 |
Counts from .ai/manifests/services.json + tests.json. The
env-only-port note for client-logs/server-logs is expanded in
port-and-service-map.md.
| Workspace | Runner | Test files | Pages |
|---|---|---|---|
| claw-frontend | vitest | 211 | 102 |
service, shared package and the frontend uses vitest (ADR-099). See testing-map.md.
- Shared packages depend only on other shared packages (a small DAG: types/constants are leaves; utilities/rabbitmq/entitlements depend on them; auth depends on types and utilities).
- Every service depends on
@claw/shared-constants,@claw/shared-types,@claw/shared-utilities; all except health also use@claw/shared-rabbitmq. - Only
agent,payment,research, andworkspaceadditionally import@claw/shared-auth(they run their own auth surface). -
health-serviceis intentionally minimal: it depends only on@claw/shared-utilities.
See service-dependency-map.md for the full edge set.
ClawAI Wiki · source-controlled under wiki/ · generated/mirrored from the current repository knowledge layer.
ClawAI Wiki
Product
- Product-Vision
- Flagship-Features
- Business-Overview
- Requirements-Register
- Drift-Log
- Runtime-Managed-Connector-Providers
- Threads
- ADR-Index
Architecture
- System-at-a-Glance
- Architecture-Map
- System-Architecture
- Message-Flow
- End-to-End-Data-Flow
- Routing-Engine
- Event-Bus
- Security-Architecture
Platform
- Backend-Services
- Frontend-Architecture
- Shared-Packages
- Database-Reference
- API-Reference
- Provider-Catalog
- Memory-and-Context-Architecture
- File-Support-Architecture
- Research-and-Web-Crawling
Runtime & Ops
- Docker-Guide
- Nginx-Reference
- CI-CD-Pipeline
- Logging-and-Observability
- Operational-Runbooks
- Troubleshooting
Quality
Engineering OS
- AI-Native-Engineering-OS
- Generated-Manifests
- Rules-Catalog
- Skills-Catalog
- Context-Layer
- Engineering-Memory
- Tooling-and-Automation
- Scripts-and-Operations
- ESLint-and-Architecture-Enforcement
- Extended-Work-Skills
Agents
Reference