nao sync
Thenao sync command populates your context folder with content from configured sources.
nao sync, the following happens:
1. Database Schemas
For each database in your nao_config.yaml:
- Connect to the database
- Extract schema information (tables, columns, data types)
- Generate context files in
databases/folder - Create structured files for each table:
columns.md- Column definitions and typesdescription.md- Table description (if available)preview.md- Sample data previewprofiling.md- Data profiling information
- Clone or pull the latest code
- Extract relevant files from specified paths
- Index content for the agent
- Store in
docs/folder
- Content is indexed for fast semantic search
- Embeddings are created for relevant context retrieval
- Agent can access all synced information
Scheduling
Initial Setup After runningnao init, sync to populate your context: