Repository navigation
AI Bootstrap and Authority
Canonical source:
.ai/BOOTSTRAP.md— this page is rendered from it on every publish; edit the source.
You are working in ClawAI — "Every AI, one workspace" (product positioning:
docs/01-executive-context/product-vision.md). Architecturally, a local-first AI
orchestration platform: 21 NestJS microservices + a Next.js frontend + 6 shared
packages, in an npm-workspace monorepo. Events flow over RabbitMQ (topic exchange
claw.events); nginx reverse-proxies /api/v1/* to services.
- Run:
npm run knowledge:context -- --task="<what you are doing>" - Read:
.ai/local/current-context.md— it lists the affected workspaces, governing rules, matching skills, files to inspect, tests, and pitfalls. - Follow the rules it cites. Do not invent repository facts — derive them from
the manifests in
.ai/manifests/and the real code.
-
CLAUDE.md— long-form operating policy -
rules/00-non-negotiable-rules.md— engineering blockers -
context/architecture-map.md— structural architecture -
context/stack-and-toolchain.md— commands + toolchain - Numbered
rules/*→skills/*→context/*+memory/* - Generated
.ai/manifests - Compact AI-family routers (
AGENTS.md,CODEX.md,cursor.md, …)
- NEVER
--no-verifyor otherwise bypass git hooks. - NEVER suppress lint/type errors (
eslint-disable,@ts-ignore,any,as unknown as). - NEVER cross a service's database boundary — use HTTP or RabbitMQ.
- NEVER put business logic in controllers or DB calls outside repositories.
- NEVER log secrets/tokens/passwords; NEVER expose secrets to the frontend.
- NEVER add user-facing text without i18n in all 13 locales.
- NEVER add code without a test.
npm run affected:list # what your diff touches + why
git add <explicit paths> && git commit # pre-commit gates the staged change; Docs: trailer (rules/63)
git push # pre-push gates every pushed ref; then CI
The hooks run the gates the change type needs; run nothing else by hand.
Full validation before release: npm run release:preflight.
- Architecture map →
context/architecture-map.md - Service catalog →
context/service-catalog.md(generated:.ai/manifests/services.json) - Rules →
rules/· Skills →skills/· Reviewer roles →agents/ - Durable pitfalls/lessons →
memory/ - Task packs →
.ai/packs/
- Services (21): agent-service :4015, audit-service :4007, auth-service :4001, chat-service :4002, connector-service :4003, file-generation-service :4013, file-service :4006, health-service :4009, image-service :4012, llamacpp-service :4017, memory-service :4005, ollama-service :4008, payment-service :4018, plugin-service :4021, research-service :4016, routing-service :4004, thread-generation-service :4020, threads-service :4019, workspace-service :4014
- Shared packages: @claw/shared-auth, @claw/shared-constants, @claw/shared-entitlements, @claw/shared-rabbitmq, @claw/shared-types, @claw/shared-utilities
- Events: 190 on
claw.events - Permissions: 94 · Env vars: 386
- API endpoints: 973 · Frontend pages: 184
This file is generated. To change it, edit the renderer + policy sources and run
npm run knowledge:build.
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