Skip to content
Agentguiden.no
Submit

Count what your coding agent loads before blaming the model

The AI development team at Nav, the Norwegian labour and welfare administration, found that its developer platform nav-pilot pointed Copilot CLI at the whole ~/.copilot folder for custom instructions. Copilot searched recursively and also loaded copies from old session worktrees.

Done with CopilotModerate

What was done

The AI development team at Nav, the Norwegian labour and welfare administration, found that its developer platform nav-pilot pointed Copilot CLI at the whole ~/.copilot folder for custom instructions. Copilot searched recursively and also loaded copies from old session worktrees. On one machine instruction sources grew from 18 to 82, and static context from 18,900 to 45,200 tokens. After the fix, context dropped below 32,000 tokens, but that was measured on one machine, and conversations need room too.

How to do it

  1. Paste the prompt into the tool, and replace the text in brackets with your own.
  2. Read the answer through. Do not send, delete or publish anything until you have seen it yourself.
  3. Check the original before you trust a figure, a name or a date.

Try it with Copilot

Find out which folders and files [coding agent] reads as instructions at startup in [project]. Make a list with path, size and approximate tokens per source, and flag old copies from earlier sessions or worktrees. Suggest which sources can be removed or targeted more precisely. Show me the list and the proposal before any configuration files are changed or deleted. You are done when I know how many tokens startup uses before and after.

Replace text in brackets with your own.

Done when. You know how many tokens startup uses before and after.

Read the original

Nav ·

Five agents a day

A short email each morning with five concrete examples of what people use AI agents for. Each example links to its source. You can unsubscribe at any time.

You will first get an email to confirm the address.