Brainlet

Definition

What is Cognitive Augmented Generation?

Cognitive Augmented Generation, or CAG, is Brainlet's architecture for giving an LLM computed project intelligence before it answers. Instead of asking the model to infer a software system from retrieved files, CAG prepares the relevant project knowledge first.

For codebases, that means the model can receive information about architecture, dependencies, conventions, data flow, impact paths, and similar code patterns as task-ready context.

The goal is not a bigger prompt. The goal is better project understanding before the prompt.

What does CAG mean?

CAG means Cognitive Augmented Generation: preparing computed project intelligence before an LLM answers.

Is CAG a replacement for RAG?

For codebase work, CAG is a different architecture. It can use retrieval signals, but it does not stop at retrieved chunks.

Does CAG replace the LLM?

No. CAG gives the LLM better project context so the model can focus on the task.