<command-message>init</command-message> <command-name>/init</command-name>
- User
init /init
- User
Please analyze this codebase and create a CLAUDE.md file, which will be given to future instances of Claude Code to operate in this repository.
What to add:
- Commands that will be commonly used, such as how to build, lint, and run tests. Include the necessary commands to develop in this codebase, such as how to run a single test.
- High-level code architecture and structure so that future instances can be productive more quickly. Focus on the "big picture" architecture that requires reading multiple files to understand.
Usage notes:
- If there's already a CLAUDE.md, suggest improvements to it.
- When you make the initial CLAUDE.md, do not repeat yourself and do not include obvious instructions like "Provide helpful error messages to users", "Write unit tests for all new utilities", "Never include sensitive information (API keys, tokens) in code or commits".
- Avoid listing every component or file structure that can be easily discovered.
- Don't include generic development practices.
- If there are Cursor rules (in .cursor/rules/ or .cursorrules) or Copilot rules (in .github/copilot-instructions.md), make sure to include the important parts.
Assistant
I'll analyze the codebase to create a comprehensive CLAUDE.md. Let me explore the project structure and key files in parallel.
Assistant
Now let me look at some key backend files to understand the architecture better.
Assistant
Now I have enough information to create a comprehensive CLAUDE.md. Let me write it.
Assistant
I've created the CLAUDE.md file at
.claude/CLAUDE.md. Here's what it covers:-
Common commands —
make dev, backend tests (poetry run pytestwith single-file/single-test examples), frontend lint/build, E2E tests, and Docker Compose production workflow. -
Architecture — The two runtime modes (local agent vs. containerized sidecar), request flow diagram, subagent architecture (orchestrator + sql-analyst only, no chart subagent), and key files in both backend and frontend.
-
Core concepts — Per-user DuckDB session isolation, MCP SSE bridge for container-to-host communication, chart rendering pipeline (Plotly/Vega-Lite), and Bifrost LLM gateway for API key security.
-
Debugging — Preserved the existing note about Python logging being suppressed (use
print(..., flush=True)). -
Configuration — Key environment variables and the
@suffixmodel routing syntax. -
Claude Agent SDK quirks — Important behavioral notes about subagent message yielding that are non-obvious and critical for working with the agent code.
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.