Knowledge > Runbooks > Agent Ops > How Claude Code Agents Work in This System
How Claude Code Agents Work in This System
Reference guide for understanding how Claude Code agents are configured, what tools they have access to, and how they coordinate across the ChurchWiseAI portfolio.
Agent Entry Points
Agents are invoked via the Claude Code CLI (claude) or through the /chief-of-staff skill. The session-start hook at ~/.claude/hooks/session-start.sh automatically injects system context at the start of every session, ensuring agents always have current portfolio context.
Skills (Slash Commands)
Skills extend agent capabilities for common workflows. Invoke with /skill-name in the conversation:
| Skill | Purpose |
|---|---|
/chief-of-staff | Enhanced executive assistant — daily briefing, task dispatch, coaching |
/commit | Structured git commit with correct format |
/review-pr | Pull request review with QA lens |
/dispatching-parallel-agents | Launch multiple Claude agents for concurrent tasks |
Tool Access
MCP Plugins (Always Available)
| Plugin | Key Tools | Use For |
|---|---|---|
| Supabase | mcp__plugin_supabase_supabase__execute_sql, apply_migration, list_tables | All database queries and migrations |
| Cartesia | mcp__cartesia-mcp__text_to_speech, list_voices | Voice testing and TTS generation |
| Gmail | mcp__claude_ai_Gmail__gmail_* | Read/search emails as john@churchwiseai.com |
| Google Calendar | mcp__claude_ai_Google_Calendar__gcal_* | View and manage calendar |
| Context7 | mcp__plugin_context7_context7__* | Look up current library documentation |
CLI Tools (All Logged In)
| Tool | Account | Key Commands |
|---|---|---|
vercel | churchwiseai-5386 | vercel logs, vercel env ls, echo "val" | vercel env add NAME production, vercel --prod |
stripe | churchwiseai@gmail.com | stripe customers list, stripe subscriptions list — add --api-key $STRIPE_LIVE_SECRET_KEY for live mode |
gh | JohnMoelker | gh pr create, gh issue list, gh run view |
LiveKit CLI (Voice Agent Deploy)
The voice agent deploys to LiveKit Cloud via the LiveKit CLI via the LiveKit CLI:
C:\dev\lk.exe agent deploy --project cwa-voice --silent
The Cartesia CLI is legacy and no longer used for deployments. The voice agent runs on LiveKit Agents v1.5, deployed to LiveKit Cloud. Never attempt pip install cartesia or npm install cartesia on Windows — it will fail.
Memory and Knowledge Architecture
Persistent Memory
Agent memory is stored in C:\Users\johnm\.claude\projects\C--dev\memory\ as markdown files. MEMORY.md is the index. Memory persists across sessions and contains project state, feedback, and architectural decisions.
Knowledge Hierarchy
Always read information sources in this order:
C:\dev\knowledge\— canonical truth for all business knowledge (pricing, features, policies, brand)- Per-codebase
CLAUDE.md— code-level context (file paths, build commands, safety rules) C:\dev\knowledge\drafts\— proposals/in-progress, verify before trusting- Other
.mdfiles — check if a canonical version inknowledge/exists first C:\dev\knowledge\archive\— contains⚠️ ARCHIVEDheader, never use for decisions
Plans
When agents develop multi-step plans, they save them to C:\Users\johnm\.claude\plans\ as markdown files. This allows work to resume across sessions.
Multi-Agent Coordination
Multiple Claude agents may be running concurrently across sessions. Coordination happens through:
- Git branches — each agent creates its own feature branch (see multi-agent-git.md)
- DECISION_LOG.md — append-only journal of significant decisions
- FOUNDER_ACTIONS.md — queue of items requiring founder intervention
- FEATURE_REGISTRY.md — prevents two agents from building the same feature in different places
What Agents Should Do Without Asking
- Read any database table (SELECT queries)
- Read Stripe data (products, prices, customers)
- Read and SET Vercel env vars
- Run builds (
pnpm build) - Git operations on feature branches (commit, push)
- Search Gmail and Calendar for context
- MailerLite API operations
What Agents Must Confirm Before Doing
- Writing to the production database (INSERT, UPDATE, DELETE)
- Creating/modifying Stripe products or prices in LIVE mode
- Deploying to Vercel production (
vercel --prod) - Pushing to
mainormasterbranches - Sending emails to customers
- Voice agent deployment (push to
main+cartesia connect) - Deleting Vercel env vars
See Also
- Starting a New Task Runbook
- Multi-Agent Git Runbook
- Decision Logging Runbook
- Cross-project CLAUDE.md:
C:\dev\CLAUDE.md