# C0

C0 is an AI-powered coding assistant built into your IDE. It indexes your entire codebase, remembers what it learns, and helps you write, debug, review, document, and understand code all through natural conversation, without ever leaving your editor.

***

### What makes C0 different

Most AI coding tools work in isolation. They don't know your project, your patterns, or your team's conventions. Every session starts from scratch.

C0 is built around a **persistent knowledge base** that continuously indexes your codebase. It understands your functions, your dependencies, your architectural patterns, and how everything connects. That understanding carries across sessions, so C0 gets more useful the longer you use it not less.

On top of that foundation, C0 offers a set of purpose-built **workflows** not a generic chat box, but specific modes designed around the things developers actually do all day: debugging, writing tests, reviewing code, documenting code and working from Jira tickets.

***

### Core workflows

| Workflow            | What it does                                                   |
| ------------------- | -------------------------------------------------------------- |
| Chat with code      | Ask questions about your codebase in plain language            |
| Debug mode          | Trace errors to their root cause and fix them                  |
| Optimize mode       | Improve performance, readability, and structure                |
| Generate test cases | Write meaningful tests for any function or module              |
| Code reviews        | Catch bugs and issues before code is merged                    |
| Deep Wiki           | Generate rich documentation with usage notes and edge cases    |
| Code Map            | Visualize code structure and system flow with Mermaid diagrams |
| Swagger Agent       | Agent works with Swagger documentation and API Specifications  |

***

### Integrations

| Integration    | What it does                                         |
| -------------- | ---------------------------------------------------- |
| Jira           | Work directly from tickets without context-switching |
| Knowledge base | The persistent memory layer that powers everything   |

***

## Get Started with C0

> New to C0? Install the extension, connect your codebase, and run your first workflow in under five minutes.

***

### Choose your environment

#### VS Code / Cursor / Antigravity

Install the C0 extension directly from the [marketplace](https://marketplace.visualstudio.com/items?itemName=AyushSinghal.Code-Mate).

#### CodeMate Toolbox

Already have Toolbox installed? You can install the C0 extension directly from within it no marketplace required.

1. Open **CodeMate Toolbox**.
2. Navigate to **C0 → Install Extension**.
3. Toolbox will detect your installed editors and install the extension automatically.

Don't have Toolbox yet? [Download it here](https://app.codemate.ai/download).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.codemate.ai/c0.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
