Looking for something specific?
- Tools Reference - Complete tool documentation
- Choose an Agent - Agent selection guide
Quick Start
Get started in 30 seconds
API Reference
Request/response documentation
Use Cases
Find code and explore architecture
19 Specialized Tools
Knowledge graph and code analysis
Quick Start
Get answers about your codebase using the REST API.



API Overview
The Ask Agent operates through the Conversations API. You create a conversation with the agent, then send messages. The agent processes questions using 19 specialized tools and returns structured markdown responses with code citations. Authentication: Bearer token required (Firebase auth)Conversation Request Format
Message Request Format
Form data:multipart/form-data, not JSON. The content field is required.
Response Format
How It Works
The agent enriches context before processing. It fetches code from referenced node IDs. It retrieves the file structure of your project. This context helps the agent understand your codebase layout. The agent then processes your query using its knowledge graph tools. It locates relevant code across files. It builds relationships between components. It synthesizes findings into a structured response.Processing Flow
The agent follows this workflow for every query:- User Query: Receives your question about the codebase
- Context Enrichment: Loads referenced files and project structure
- Query Complexity: Determines if simple or complex
- Simple: Single-Agent Mode → Tool Selection
- Complex: Multi-Agent Mode → Sub-Agent Delegation
- Knowledge Graph Search: Finds relevant code semantically
- Code Analysis: Examines code structure and relationships
- Response Generation: Synthesizes findings with precise citations
- Markdown Answer + Citations: Returns formatted response with file references
Advanced: Multi-Agent Architecture
Advanced: Multi-Agent Architecture
For complex queries, the Ask Agent automatically activates multi-agent mode:
- Main Agent: Coordinates overall task and gathers information
- Q&A Specialist: Synthesizes findings into comprehensive answers (12 iterations)
- Integration Agents: Handle framework-specific queries
- Query requires information from 5+ files
- Answer needs synthesis across multiple systems
- Integration-specific knowledge required (e.g., Django ORM, React hooks)
How Tools Work Together
Common Use Cases
Finding Code
Locate where features live
Understanding Features
Learn how things work
Exploring Architecture
Get system overviews
Finding Code
Locate where specific functionality lives in your codebase.E-commerce: Find Payment Processing
E-commerce: Find Payment Processing
Question:What the agent does:
- Searches for “payment”, “checkout”, “order” semantically
- Maps relationships between payment service, cart, and orders
- Traces the complete flow across multiple files
- Payment processor integration code
- Cart validation logic
- Order creation workflow
- Transaction handling
- Email notification triggers
SaaS: Find API Endpoints
SaaS: Find API Endpoints
Question:Response format:
Data Pipeline: Find Database Queries
Data Pipeline: Find Database Queries
Question:What you get:
- All SQL queries for orders table
- ORM model definitions
- Query optimization notes
- Index usage
- Transaction boundaries
Understanding Features
Learn how features work by asking natural language questions.Authentication Flow
Authentication Flow
Question:The agent traces:
- Login endpoint → AuthService → Database
- Token generation → JWT configuration
- Middleware verification → Protected routes
- Session management → Logout flow
Data Flow Tracing
Data Flow Tracing
Question:Response includes:
- Frontend form submission code
- API endpoint handler
- Validation logic
- Database persistence
- Background job triggers
- Email notification
- Success/error responses
Exploring Architecture
Get high-level system overviews and identify patterns.Design Patterns Analysis
Design Patterns Analysis
Question:The agent identifies:
- Repository pattern (data access)
- Factory pattern (object creation)
- Observer pattern (event handling)
- Singleton pattern (configuration)
- Strategy pattern (payment processors)
Dependency Mapping
Dependency Mapping
Question:Response shows:
Example Request
Example Response
Error Handling
All agents return standard error responses. See the Error Reference for complete documentation. Quick Reference:400 VALIDATION_ERROR- Invalid request format401 UNAUTHORIZED- Invalid/missing API key404 NOT_FOUND- Project doesn’t exist429 RATE_LIMIT_EXCEEDED- Too many requests
Related Agents
- Build a Feature - Generates and manages code modifications. The Ask Agent also powers the clarifying questions in the Code Agent workflow.

- Debug an Issue - Provides systematic bug diagnosis and resolution

