> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mindblix.tech/llms.txt
> Use this file to discover all available pages before exploring further.

# Code Agent

> The Code Agent generates, reviews, debugs, and optimizes code across multiple programming languages.

## Overview

The **Code Agent** is a software engineering specialist that can generate code, review pull requests, debug issues, and suggest optimizations.

| Property | Value |
| - | - |
| **Template ID** | `code` |
| **Default Model** | Gemini 1.5 Flash |
| **Avg. Response Time** | \~5 seconds |
| **Supported Languages** | Python, JavaScript, TypeScript, Go, Rust, Java, C++ |

***

## Capabilities

* 💻 **Code Generation** — Generate production-ready code from natural language descriptions
* 🔍 **Code Review** — Analyze code for bugs, security issues, and best practices
* 🐛 **Debugging** — Identify and fix bugs with detailed explanations
* ⚡ **Optimization** — Suggest performance improvements and refactoring
* 📝 **Documentation** — Generate docstrings, README files, and API docs

***

## Usage

```python theme={null}
from mindblix import MindBlix

client = MindBlix(api_key="YOUR_API_KEY")

result = client.agents.execute(
    template="code",
    task="review",
    input={
        "code": open("my_file.py").read(),
        "language": "python",
        "focus": ["security", "performance"]
    }
)

for issue in result.issues:
    print(f"[{issue.severity}] Line {issue.line}: {issue.message}")
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.