How ananyajoshi0203-cpu/claude-code-setup works
This repository is both a documented Claude Code project setup and an example FastAPI model-serving application. The main API workflow is a client request routed through FastAPI to prediction logic, which returns a label and confidence. Separate documented branches cover Claude context and enforcement, subagents and skills, and the example training workflow. Connections for the Claude configuration are based on README descriptions; the training and prediction implementations are intentionally stubs.
Main entry points: main.py FastAPI app · skills Skills · predict.py Predict route · train.py Training job
Components 20
Model-serving API
- FastAPI app
src/app/main.py - Predict route
src/app/api/predict.py - Classification logic
src/app/services/predict.py - App settings
src/app/config.py - Error handling
src/app/errors.py
Model training
- Training job
src/app/training/train.py - Training config
configs/train.yaml - Run artifacts
Claude context
- Project instructions
CLAUDE.md - Architecture notes
docs/architecture.md - Scoped rules
.claude/rules - Permissions and hooks
.claude/settings.json - MCP configuration
.mcp.json
Claude workflows
- Subagents
.claude/agents - Skills
.claude/skills - Promotion checklist
.claude/skills/eval-model/checklist.md - Endpoint template
.claude/skills/new-endpoint/template.py - Loop harness
harness/PROMPT.md
Other components
- API client
- Claude Code user
Connections 17
- API client → FastAPI app: sends request
README.md - FastAPI app → Predict route: registers router
src/app/main.py - FastAPI app → App settings: reads settings
src/app/main.py - FastAPI app → Error handling: registers handler
src/app/main.py - Predict route → Classification logic: classifies text
src/app/api/predict.py - Claude Code user → Project instructions: starts session
README.md - Project instructions → Architecture notes: imports notes
README.md - Claude Code user → Scoped rules: loads applicable rules
README.md - Claude Code user → Permissions and hooks: applies permissions
README.md - Claude Code user → MCP configuration: loads tools
README.md - Claude Code user → Subagents: starts subagent
README.md - Claude Code user → Skills: invokes skill
README.md - Skills → Promotion checklist: reads checklist
README.md - Skills → Endpoint template: uses template
README.md - Claude Code user → Loop harness: runs loop work
README.md - Training config → Training job: configures run
- Training job → Run artifacts: writes artifacts
src/app/training/train.py