Quick Start
Q&A Page The agent gathers requirements through interactive clarifying questions with multiple choice options.







API Overview
The Code Agent operates as a stateful API endpoint. You send code modification requests. The agent generates changes and stores them in a session. You can review, modify, and export changes when ready. Endpoint:POST /api/v1/agents/code
Authentication: Bearer token required
Request Format
Response Format
How It Works
- Context Enrichment: Fetches code from referenced node IDs to understand existing patterns
- Systematic Analysis: Analyzes your codebase to identify all files that will be impacted
- Pattern Examination: Examines existing code patterns and conventions
- Style-Matched Generation: Generates changes that match your project style exactly
Multi-Agent Mode
The agent activates multi-agent mode for complex code generation. It delegates implementation to a specialized Code Implementation sub-agent. This sub-agent has 20 iterations available, the highest among all agents. Integration agents handle integration-specific code. Single-Agent Mode: The agent processes simple modifications directly using its tools. Multi-Agent Mode: Complex tasks trigger delegation to specialized sub-agents with up to 20 iterations for thorough implementation.Common Use Cases
Adding Features
You request new features. The agent generates the necessary code across multiple files. It tracks all changes in the session.Modifying Code
You request modifications to existing code. The agent locates the relevant files. It makes precise changes while preserving functionality.Fixing Bugs
You describe bugs and request fixes. The agent analyzes the issue. It generates corrections and explains the root cause.Example Request
Example Response
Reviewing Changes
You can review changes before applying them. The agent provides several tools for inspection.View All Changes
Request a summary of all modifications in the session.View Specific Diff
Request the diff for a specific file.Export Changes
Export all changes for application to your codebase.Error Responses
400 Bad Request
400 Bad Request
The request has invalid format or missing required fields.
401 Unauthorized
401 Unauthorized
404 Not Found
404 Not Found
The specified project does not exist or is not accessible.
429 Too Many Requests
429 Too Many Requests
You have exceeded the rate limit.
Related Agents
- Ask a Question - Answers questions about your codebase
- Debug an Issue - Provides systematic bug diagnosis and resolution

