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
β”‚   └── tools/                         # Custom tools
β”œβ”€β”€ databases/                         # Database context
β”œβ”€β”€ docs/                              # Documentation files
β”œβ”€β”€ repos/                             # Cloned repositories
β”œβ”€β”€ semantics/                         # Semantic context
└── queries/                           # Example queries

Build Your Context

Learn how to add different types of context:

Next Steps

Context Engineering Playbook

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