write.
- **Non-tautological tests** — every test must assert behavior that breaks if prod code deleted.
## Layer model and import rules
Three concentric layers. Imports flow inward only.
```
+-------------------------------------------------------------------+
| cmd/router/main.go (composition root
default
> `./episodic_memory.db` unless the test isolates it. A test module that
> exercises audited code (alerts review, sweeps) without monkeypatching
> `openexecutive.audit.log_event` (or the audit logger's DB) leaks rows that
issues.
- Validate every finding against the code. Make minimal fixes for confirmed issues within scope, run the relevant checks, then start another blind review with a new subagent under
AGENTS.md
## Claude Code
- Use plan mode for multi-file, risky, architectural, or ambiguous changes.
- Use subagents only for bounded sidecar work: exploration, review, test triage, or documentation lookup.
- Prefer separate
License:** FSL-1.1-MIT. No commercial derivative works. Keep this in mind when generating code or suggesting dependencies.
## Repo Structure
```
extensions/ — Curated, ordered learning path (6 builds
self-heal guards; don't diagnose it.
### Custom Slash Commands
Defined in `.claude/commands/`. Claude Code auto-surfaces every command with its description in the session's skills list — **that injected
interactive commit tool:**
```bash
pnpm commit
```
### PR Requirements
- ✅ At least 1 approving review from a code owner
- ✅ All status checks passing (CI/CD pipeline)
- ✅ No merge conflicts with the base branch
here; verify each finding against this repository's code, configuration and history before acting on it. Do not assume a reviewer is right, and do not assume it is wrong
Agents for This Project
- project-analyst
- database-architect
- django-backend-expert
- django-api-developer
- code-reviewer
## CRITICAL INSTRUCTION
Use ONLY the agents listed above. Do NOT use laravel, rails
principles and architecture constraints: [`.specify/memory/constitution.md`](.specify/memory/constitution.md). You MUST read the constitution before performing any codereview.
## Find Detail In
- [docs/claude/architecture.md](docs/claude/architecture.md) — System architecture: SignalR bridge, main-thread execution, deterministic port
Claude Code. Substitute as follows everywhere — prose and code alike:
| Web tool | Claude Code equivalent |
|---|---|
| `questions_v2` | `AskUserQuestion` (returns answers inline; up to 4 questions/call, follow-up call if more
never post a claim about someone else's work without verifying it against the code first.
- When Ben asks for a reply to a contributor, produce a short draft
contributors (human or AI) on how this SDK is put together, plus the things reviews most often come back to. Setup instructions live in [CONTRIBUTING.md](CONTRIBUTING.md).
## Overview
The official Python
same `--out` directory so `context-map.json`, `checklist.json`, and `flow-trace-*.json` are shared automatically.
---
## SYSTEMATIC CODEREVIEW
The `/audit` command runs a hypothesis-driven code audit with tool verification
when working with code in this repository.
## 项目概述
Codeg(Code Generation)是一个多智能体编码工作台,它将多个智能体(Claude Code、Codex CLI、OpenCode、Gemini CLI、OpenClaw、Cline 等)统一到一个工作区中,支持会话聚合和多智能体协作,支持桌面安装,服务器/Docker 部署。
## 技术栈
Before calling a UI feature done — consider visual-test.** `make tsc` + `make test` check code; `/visual-test` checks the *screen*. Run it yourself for self-contained UI changes where
human review.
- NEVER close an issue. Leave issues open for the reviewer.
- Always add the label `agent:claude-code` to every issue and PR you touch.
- Always add labels
A file Claude Code reads at the start of every session. It holds the commands, conventions and warnings the agent needs for this project.
Where does it go?
At the repository root. Claude Code also reads CLAUDE.md files in subdirectories when it works there.
What should it contain?
Build and test commands, the project's layout, conventions that aren't obvious from the code, and mistakes to avoid. Short files tend to work better than long ones.
CLAUDE.md or AGENTS.md?
Claude Code reads CLAUDE.md; most other agents read AGENTS.md. Many projects keep one and point the other at it.