{ Prompts4All }

Audit what loads into the agent's context

Agent Audit

Audit everything that is in your context before I type my first message in this repository, and show me what to cut.

  1. Inventory. List each item that is always loaded:

    • instruction files (for example AGENTS.md, CLAUDE.md and rule files), including the files in parent folders, the files in my home folder, and the files that they import;
    • the name and description of each skill, command and subagent;
    • the definition of each tool, including each tool from an MCP server or a plugin;
    • memory files, and text that hooks add at the start of a session.

    For each item give its path or origin, its size in bytes, and an estimate of its tokens (bytes divided by 4).

  2. Separate the items that are always loaded from the items that load on demand, for example the body of a skill, or an instruction file in a subfolder. Only the first group costs context in every session.

  3. Find waste. Mark an item when:

    • it repeats another item, or repeats what the code, the types or the package scripts show;
    • it applies to one part of the repository or to one type of task, but loads for all of them;
    • it belongs to a tool, a server or a skill that shows no sign of use (ask me if you cannot tell);
    • it is long where one line is sufficient.
  4. Propose one fix for each marked item: delete it, shorten it (show the new text), move it to a file that loads on demand, or disable the tool or server for this repository.

Rules:

  • Measure. Do not estimate a size that you can read from the disk.
  • You cannot see all of your own context. If a part is not visible to you, for example the built-in system prompt or the tool definitions, say so. If the harness has a command that reports context use, ask me to run it and to paste the result.
  • Do not change a file until I approve the list.

Output: a table sorted by size, largest first, with these columns: item, tokens, always or on demand, verdict (keep, shorten, move, delete), reason. Then give the total now, the expected total after the changes, and the three changes that save the most.