nao context
The context folder your nao agent reads: rules, docs and table files.
Updated 19 October 2026
Agent context, for Improvements. Benchouse reads what your nao agent reads, so it can tell a gap in the context from a mistake by the agent.
What Benchouse reads
Everything in the folder you name that your nao agent can open: RULES.md, nao_config.yaml, databases/, semantics/, docs/ and the rest. Like nao,
we skip .git, .meta, .env files and whatever your .naoignore lists, and
we never store key files. Passwords and API keys in nao_config.yaml are
removed before anything is stored.
nao sync writes columns.md and the other files under databases/. If
your deploy runs nao sync and doesn’t commit the result, we never see those
files, and they are most of what your agent reads. Commit the output, to your
main branch or to a branch of its own, and connect that branch.
Connect
- Find the repository that holds your nao project’s context folder.
- Create a fine-grained token with Contents: read on that one repository,
or a GitLab deploy token with
read_repository. - In Integrations, under Add a source, choose nao context. Give the repository URL, the branch (empty for the default) and the folder inside the repository where the context lives, and paste the token.
Benchouse clones the folder read-only once a day and keeps each version. Disconnecting deletes the token and the stored snapshots.
Push from your deploy
If committing nao sync’s output doesn’t suit you, have the deploy send the
folder to us right after the sync instead. There’s no repository to connect:
the first push creates the source.
- An administrator makes an API key: open MCP in Benchouse and choose Create a key. Store it as a secret in your deploy, say
BENCHOUSE_API_KEY. - After
nao sync, send the folder:
tar czf - -C "$NAO_PROJECT" --exclude .git . | curl --fail-with-body -H "Authorization: Bearer $BENCHOUSE_API_KEY" -H "Content-Type: application/gzip" --data-binary @- https://api.benchouse.ai/v1/sync/nao/context We read it as we read a cloned folder, keep each version, and answer whether
it was new or unchanged. We drop the sample rows (preview.md, profiling.md) on arrival, mask secrets, and leave out any file whose secret
cannot be masked; the answer lists those files. A push is refused while the
same context is also read from a repository, so the two never disagree.
The key belongs to the person who made it. If they leave your organization, pushes fail until someone else makes one.
Limits: 32 MiB compressed, 64 MiB unpacked, 4 MiB per file and 20,000 files. Up to 30 pushes an hour, one at a time, and 48 changed versions a day, with up to 256 MiB of content kept per source; pushing the same folder again is free. Paths must be plain text: no control characters, at most 32 folders deep. Past a limit the answer says which one, and nothing is recorded.
Read through nao’s MCP
If the folder is in no repository and your deploy won’t push it, Benchouse can read it through nao itself, with the MCP endpoint and token already on your nao connection.
- In nao, open Settings → MCP Endpoint, turn the endpoint on and keep its context tools on.
- On the nao connection in Benchouse, add the MCP endpoint and the MCP bearer token, as for evals.
- In Integrations, under Add a source, choose nao context, then Read through nao’s MCP, and pick the connection.
Benchouse lists and reads the folder once a day, as nao’s agent sees it, and
keeps each version. nao already leaves out .git, .meta, .env files and
what your .naoignore lists. As with a push, we drop the sample rows
(preview.md, profiling.md), mask secrets, and leave out any file whose
secret cannot be masked. PDFs and office documents arrive as the text nao
extracts from them.
nao follows symbolic links, including ones that point out of the folder, and Benchouse stores what nao returns for them. The source page lists each link, because a link out of the folder lets nao’s agent read files on nao’s server. A folder holding a broken link can’t be listed by nao, so nao’s agent can’t see it: we leave it out too, and Improvements names the folder and the link to fix. A file nao can’t read is left out the same way and listed on the source page.
The token is your nao session token: it expires after about a week, and when you log out. When a read says nao rejected it, paste a fresh one on the connection. Limits are those of a cloned folder: 20,000 files, 64 MiB, 4 MiB per file. Past a limit, or if the read takes over eight minutes, nothing is recorded.