Skip to main content

Why a Context Builder?

The Context Builder helps you build a file-system for your agent. This way you can have a full transparent view on the context your agent has access to, and engineer the right way to:
  1. Make it reliable for users - Ensure consistent, accurate responses
  2. Make it optimized - Reduce costs, tokens usage, and improve speed
Context is built with nao using a CLI. The CLI will initialize your context repository and sync your context within this repo.

How It Works

nao uses a file-system approach to organize context:
your-project/
β”œβ”€β”€ nao_config.yaml                    # Main configuration
β”œβ”€β”€ RULES.md                           # Agent behavior rules
β”œβ”€β”€ agent/                             # Agent tools and integrations
β”‚   β”œβ”€β”€ mcps/                          # Model Context Protocols (MCP servers)
β”‚   β”œβ”€β”€ skills/                        # Reusable skills workflows
β”‚   └── tools/                         # Custom tools
β”œβ”€β”€ databases/                         # Database context
β”œβ”€β”€ docs/                              # Documentation files (including synced Notion pages)
β”œβ”€β”€ repos/                             # Cloned repositories
β”œβ”€β”€ semantics/                         # Semantic context
└── queries/                           # Example queries

Build Your Context

Learn how to add different types of context:

Databases

Connect databases and sync schemas

Repositories

Add dbt projects and documentation

Rules

Define how your agent should behave

Next Steps

Context Configuration

Learn how to initialize and configure your nao project

Context Principles

Core principles for optimizing your agent’s performance

Context Engineering Playbook

Step-by-step guide to building effective context for your analytics agent

Evaluation

Test and evaluate your agent with unit tests