Skip to main content

Overview

Codebase Chat is an AI consultant that knows your entire codebase. Unlike semantic search which returns file locations and snippets, Codebase Chat provides synthesized, ready-to-use answers — architecture explanations, debugging analysis, implementation guidance, and code reviews grounded in your actual code. This is powered by CodeAlive’s GraphRAG approach: the AI has access to the full knowledge graph of your codebase, not just individual files.

How It Works

1

Ask a Question

Ask any question about your codebase in natural language. The AI retrieves relevant context from the knowledge graph before generating a response.
2

Get a Synthesized Answer

The response combines information from across your codebase — referencing multiple files, tracing data flows, and explaining architectural patterns.
3

Iterate

Ask another self-contained question that includes the findings and constraints the next answer needs.

Example Conversations

Access Methods

The chat tool is available through any CodeAlive-connected agent:

Stateless requests

Tool API chat does not retain conversation state. Include prior findings, artifact identifiers, assumptions, scope, and constraints in every question. This keeps each request reproducible across agents and integrations.

Best Practices

Search First

Use semantic_search and grep_search for locating code. Use chat when you need explanations or analysis — it’s more expensive per call and can take up to 30 seconds.

Include context

Make every question self-contained by including the relevant findings and constraints

Be Specific

“Explain the payment retry logic” gets better results than “tell me about payments”

Scope by Repo

Target specific repositories for more focused, accurate answers

Semantic Search

Fast code search for finding file locations and snippets

Multi-Repository

Chat across multiple repositories and workspaces

MCP Integration

Connect chat to your AI assistant

API Reference

Tool API chat endpoint documentation