Agent Task Index
This document lists common AI agent tasks with the relevant documentation and endpoints needed to complete them.
Machine-Readable Endpoints:
https://assistdocs.asimo.io/agent/index.json- Documentation metadatahttps://assistdocs.asimo.io/agent/docs.json- Full document list with filteringhttps://assistdocs.asimo.io/agent/tasks.json- Common agent tasks with commandshttps://assistdocs.asimo.io/search-index.json- Full-text search indexhttps://assistdocs.asimo.io/agent/repo-index.json- Repository structure indexhttps://assistdocs.asimo.io/agent/repo/manifest.json- Key files manifesthttps://assistdocs.asimo.io/agent/repo/files/{path}.json- Source file contenthttps://assistdocs.asimo.io/agent/doc-code-map.json- Doc ↔ code crosswalk mapping
Common Tasks
1. Understand Project Status
Goal: Get current state of all components
Key Documents:
- Implementation Status - Source of truth
- START_HERE.md - Project orientation
API Endpoint:
curl https://assistdocs.asimo.io/agent/docs.json | jq '.[] | select(.category == "overview")'
2. Implement a Project Phase
Goal: Complete a development phase (0-15)
Key Documents:
- Implementation Status - Check prerequisites
docs/phases/PHASE_XX_*.md- Phase instructions- Claude Execution Guide - Process guidelines
- Claude Prompts - Ready-to-use prompts
Workflow:
- Check phase prerequisites in Implementation Status
- Read the specific phase document
- Follow Claude Execution Guide workflow
- Update Implementation Status when complete
3. Debug Backend Issues
Goal: Diagnose and fix API Gateway, database, or cache problems
Key Documents:
Quick Commands:
# Check API Gateway logs docker logs voiceassist-server --tail 100 # Check health curl http://localhost:8000/health # Check database psql -c "SELECT count(*) FROM pg_stat_activity WHERE datname = 'voiceassist'"
4. Debug Frontend Issues
Goal: Diagnose and fix React web app or admin panel problems
Key Documents:
Quick Commands:
# Check for TypeScript errors cd apps/web-app && pnpm tsc --noEmit # Run tests pnpm test # Development server pnpm dev
5. Debug Voice/Realtime Issues
Goal: Diagnose WebSocket, STT, or TTS problems
Key Documents:
Key Files:
apps/web-app/src/hooks/useRealtimeVoiceSession.tsapps/web-app/src/components/voice/VoiceModePanel.tsxservices/api-gateway/app/api/voice.py
6. Update Documentation
Goal: Add or modify documentation
Key Documents:
Workflow:
- Edit markdown files in
docs/ - Add proper frontmatter with metadata (see Metadata Standard)
- Validate:
cd apps/docs-site && pnpm validate:all - Regenerate search index and agent JSON:
pnpm generate-search-index && pnpm generate-agent-json - Build:
pnpm build - Deploy: Copy
out/to/var/www/assistdocs.asimo.io/
7. Add New API Endpoint
Goal: Implement a new REST API route
Key Documents:
- API Reference
- Backend Architecture
services/api-gateway/README.md
Key Paths:
- Route handlers:
services/api-gateway/app/api/ - Services:
services/api-gateway/app/services/ - Models:
services/api-gateway/app/models/ - Tests:
services/api-gateway/tests/
8. Work on Admin Panel
Goal: Implement admin panel features
Key Documents:
- Admin Panel Implementation Plan - Canonical implementation roadmap
- Admin Panel Specs - Full specifications
- Implementation Status - Current status
Key Paths:
- Backend:
services/api-gateway/app/api/admin_*.py - Frontend:
apps/admin-panel/src/ - Shared types:
packages/types/src/admin/
Implementation Plan Phases:
- Phase 1: Backend-to-Admin Service Matrix
- Phase 2: Admin API Enhancement Plan
- Phase 3: Admin Panel UI Implementation
- Phase 4: API Client Integration
- Phase 5: Security & Compliance
- Phase 6: Testing Strategy
- Phase 7: Deployment & Rollout
Admin Feature Categories:
| Category | API Prefix | UI Route |
|---|---|---|
| Voice/Realtime | /api/admin/voice/* | /voice |
| Integrations | /api/admin/integrations/* | /integrations |
| Tools | /api/admin/tools/* | /tools, /tools/logs |
| Security/PHI | /api/admin/phi/* | /security |
| Backups/DR | /api/admin/backups/* | /backups |
| Troubleshooting | /api/admin/logs/* | /troubleshooting |
Critical Requirements:
- All endpoints must enforce RBAC (admin or viewer role)
- All mutations must emit audit logs
- PHI must be masked in all responses
- See Implementation Plan §5.6 for forbidden actions
9. Security/Compliance Work
Goal: HIPAA compliance, security hardening
Key Documents:
- Security Compliance
- Semantic Search Design - PHI detection
10. Infrastructure/Deployment
Goal: Docker, Kubernetes, monitoring setup
Key Documents:
11. Docs Health Audit
Goal: Assess documentation quality and identify improvement areas
Key Documents:
Workflow:
- Fetch health metrics:
curl https://assistdocs.asimo.io/agent/health.json - Run local validation:
cd apps/docs-site && pnpm validate:all - Check AI summary coverage:
curl https://assistdocs.asimo.io/agent/docs-summary.json | jq '.stats' - Identify stale docs from health.json
category_freshnesssection - Add missing
ai_summaryfields to docs targeting AI agents
Quick Commands:
cd apps/docs-site # Run all validation checks pnpm validate:all # Check for docs missing ai_summary pnpm validate:metadata 2>&1 | grep "Missing ai_summary" # Regenerate agent JSON after fixes pnpm generate-agent-json
Repository Navigation Tasks
These tasks leverage the machine-readable repository endpoints to explore and understand the codebase.
12. Discover Repository Components
Goal: List and understand all major components in the codebase
API Endpoints:
https://assistdocs.asimo.io/agent/repo-index.json- Full repository structurehttps://assistdocs.asimo.io/agent/repo/manifest.json- Key files manifest
Workflow:
# List all component categories curl https://assistdocs.asimo.io/agent/repo-index.json | jq '.stats.by_component' # Find all frontend components curl https://assistdocs.asimo.io/agent/repo-index.json | jq '[.entries[] | select(.component | startswith("frontend"))]' # Find all backend services curl https://assistdocs.asimo.io/agent/repo-index.json | jq '[.entries[] | select(.component | startswith("backend"))]' # Get language breakdown curl https://assistdocs.asimo.io/agent/repo-index.json | jq '.stats.by_language'
Key Documents:
- Agent API Reference - Full endpoint documentation
- Repo Navigation for Agents - Patterns and examples
13. Locate Feature Implementation
Goal: Given a feature name, find relevant implementation files
API Endpoints:
https://assistdocs.asimo.io/agent/repo-index.json- File paths by componenthttps://assistdocs.asimo.io/agent/repo/files/{encoded-path}.json- Source code contenthttps://assistdocs.asimo.io/search-index.json- Full-text search
Workflow:
-
Search documentation for feature context:
curl https://assistdocs.asimo.io/agent/docs.json | jq '.docs[] | select(.title | test("voice"; "i"))' -
Find implementation files by component:
# Voice features are in backend/api-gateway and frontend/web-app curl https://assistdocs.asimo.io/agent/repo-index.json | jq '[.entries[] | select(.path | test("voice"; "i"))]' -
Get source code for specific file:
# Path encoding: / → __ (double underscore) # Example: services/api-gateway/app/api/voice.py → services__api-gateway__app__api__voice.py.json curl https://assistdocs.asimo.io/agent/repo/files/services__api-gateway__app__api__voice.py.json -
Cross-reference with documentation:
curl https://assistdocs.asimo.io/agent/docs.json | jq '.docs[] | select(.tags | index("voice"))'
Key Documents:
- Voice Mode Pipeline - Voice architecture
- Backend Architecture - Service structure
- Frontend Architecture - App structure
14. Audit Implementation vs Documentation
Goal: Compare documentation claims against actual code implementation
API Endpoints:
https://assistdocs.asimo.io/agent/docs.json- Documentation metadatahttps://assistdocs.asimo.io/agent/repo-index.json- Repository structurehttps://assistdocs.asimo.io/agent/repo/files/{encoded-path}.json- Source code
Workflow:
-
Identify feature documentation:
curl https://assistdocs.asimo.io/agent/docs.json | jq '.docs[] | select(.category == "admin")' -
Extract documented paths/endpoints from docs
-
Verify files exist in repo-index:
curl https://assistdocs.asimo.io/agent/repo-index.json | jq '[.entries[] | select(.path | test("admin"))]' -
Fetch and compare source code:
curl https://assistdocs.asimo.io/agent/repo/files/services__api-gateway__app__api__admin.py.json | jq '.content' -
Report discrepancies:
- Missing files referenced in docs
- Undocumented endpoints in code
- Version/status mismatches
Key Documents:
- Implementation Status - Component status matrix
- API Reference - Documented endpoints
- Documentation Metadata Standard - Status values
15. Explore Codebase by Language
Goal: Find all files of a specific programming language
API Endpoint:
https://assistdocs.asimo.io/agent/repo-index.json
Workflow:
# Find all TypeScript files curl https://assistdocs.asimo.io/agent/repo-index.json | jq '[.entries[] | select(.language == "typescript")]' # Find all Python files curl https://assistdocs.asimo.io/agent/repo-index.json | jq '[.entries[] | select(.language == "python")]' # Count files by language curl https://assistdocs.asimo.io/agent/repo-index.json | jq '.stats.by_language' # Find configuration files (YAML, JSON, TOML) curl https://assistdocs.asimo.io/agent/repo-index.json | jq '[.entries[] | select(.language | . == "yaml" or . == "json" or . == "toml")]'
Supported Languages:
typescript, javascript, python, markdown, json, yaml, toml, html, css, scss, shell, dockerfile, terraform, prisma, graphql
16. Find Entry Points and Configuration
Goal: Quickly locate main entry points and config files
API Endpoint:
https://assistdocs.asimo.io/agent/repo/manifest.json- Curated key files
Workflow:
# Get all exported key files curl https://assistdocs.asimo.io/agent/repo/manifest.json | jq '.files' # Find package.json files (entry points) curl https://assistdocs.asimo.io/agent/repo/manifest.json | jq '[.files[] | select(.path | endswith("package.json"))]' # Find Python entry points curl https://assistdocs.asimo.io/agent/repo/manifest.json | jq '[.files[] | select(.path | endswith("main.py"))]' # Get root configuration files curl https://assistdocs.asimo.io/agent/repo/manifest.json | jq '[.files[] | select(.path | contains("/") | not)]'
Key Files Categories:
| Category | Examples |
|---|---|
| Root Config | package.json, turbo.json, docker-compose.yml |
| API Gateway | main.py, config.py, requirements.txt |
| Web App | next.config.js, page.tsx, layout.tsx |
| Admin Panel | next.config.js, page.tsx, layout.tsx |
| Documentation | START_HERE.md, AGENT_ONBOARDING.md |
Doc-Code Crosswalk Tasks
These tasks use the /agent/doc-code-map.json endpoint to navigate between documentation and code.
17. Doc-Code Crosswalk Audit
Goal: Ensure docs' relatedPaths point to real files and key code files have documentation
API Endpoints:
https://assistdocs.asimo.io/agent/doc-code-map.jsonhttps://assistdocs.asimo.io/agent/repo/manifest.json
Workflow:
# 1. Check for missing paths (relatedPaths that don't exist in repo) curl https://assistdocs.asimo.io/agent/doc-code-map.json | jq '.meta.missing_paths' # 2. Get stats on doc-code coverage curl https://assistdocs.asimo.io/agent/doc-code-map.json | jq '.meta.stats' # 3. Find key files in manifest that have no docs curl https://assistdocs.asimo.io/agent/doc-code-map.json -o map.json curl https://assistdocs.asimo.io/agent/repo/manifest.json | \ jq --slurpfile map map.json '[.files[].path] - [($map[0].by_path | keys)[]]'
Report Format:
- List paths in
missing_pathsthat need fixing in source docs - List key manifest files without documentation
- Recommend adding
relatedPathsto important docs
18. Explain This File Using Related Docs
Goal: Given a repo path, pull relevant docs and summarize the file's purpose
API Endpoints:
https://assistdocs.asimo.io/agent/doc-code-map.jsonhttps://assistdocs.asimo.io/agent/docs.jsonhttps://assistdocs.asimo.io/agent/repo/files/{encoded}.json
Workflow:
# Example: Explain services/api-gateway/app/api/voice.py # 1. Find docs that reference this file curl https://assistdocs.asimo.io/agent/doc-code-map.json | \ jq '.by_path["services/api-gateway/app/api/voice.py"].docs' # 2. Get those docs' ai_summary SLUGS=$(curl -s https://assistdocs.asimo.io/agent/doc-code-map.json | \ jq -r '.by_path["services/api-gateway/app/api/voice.py"].docs[]') for slug in $SLUGS; do curl -s https://assistdocs.asimo.io/agent/docs.json | \ jq --arg s "$slug" '.docs[] | select(.slug == $s) | {title, ai_summary}' done # 3. Get the file content curl https://assistdocs.asimo.io/agent/repo/files/services__api-gateway__app__api__voice.py.json | \ jq '.content'
Output: Combine docs' ai_summary fields with file content to explain purpose.
19. Find Implementation for a Feature
Goal: Given a feature name, find both docs and code
API Endpoints:
https://assistdocs.asimo.io/agent/docs.jsonhttps://assistdocs.asimo.io/agent/doc-code-map.json
Workflow:
# Example: Find everything about "voice mode" # 1. Find docs mentioning the feature curl https://assistdocs.asimo.io/agent/docs.json | \ jq '[.docs[] | select(.title | test("voice"; "i")) | {slug, title, component, relatedPaths}]' # 2. Get code files from those docs curl https://assistdocs.asimo.io/agent/doc-code-map.json | \ jq '[.by_doc_slug | to_entries[] | select(.key | test("voice"; "i")) | .value.relatedPaths] | flatten | unique' # 3. Find docs for specific component curl https://assistdocs.asimo.io/agent/doc-code-map.json | \ jq '[.by_doc_slug | to_entries[] | select(.value.component == "backend/api-gateway") | .key]'
Filtering Documents by Task
Use the agent JSON API to filter documents:
// Fetch all docs const response = await fetch("https://assistdocs.asimo.io/agent/docs.json"); const data = await response.json(); // Filter by category const debuggingDocs = data.docs.filter((d) => d.category === "debugging"); // Filter by audience (use canonical 'ai-agents' value) const agentDocs = data.docs.filter((d) => d.audience && d.audience.includes("ai-agents")); // Filter by tag const backendDocs = data.docs.filter((d) => d.tags && d.tags.includes("backend")); // Find docs with ai_summary const docsWithSummary = data.docs.filter((d) => d.ai_summary);
Related Documentation
- Agent Onboarding - Getting started
- Agent API Reference - Endpoint details
- Implementation Status - Component status
- Claude Execution Guide - Workflow guidelines