Skip to content
Yardmaster Guide

Give every session your project's documents

Auto Context shows everything a project hands its agents automatically: your instruction files and the documents in the project's .claude/docs folder.

Intermediate5 minutes

If your agents need the same material every time (a style guide, a database outline, a design picture), put it in the project's documents and every new session gets it automatically. The Auto Context panel shows what each project hands its agents, and lets you add, read and remove it.

Add a document#

  1. Open a project. In its sessions column, find Auto Context.

  2. Click + (Add project doc).

  3. Pick Always-inject (every session gets it) or RAG (on-demand) (the agent reads it only when it needs it).

  4. Choose Paste, Upload or From Google Drive, add your document and click Add.

You can also drag up to 20 files from your computer onto Auto Context; they go to Always-inject. From Google Drive takes a Google Docs, Slides or Sheets link and needs your Google account connected.

The documents are ordinary files in your project folder: .claude/docs/ for Always-inject and .claude/docs/rag/ for on-demand. Adding or deleting a file there by hand works the same.

What the agent receives#

  • Always-inject. Text files (Markdown, plain text, code, CSV and similar) are added, in full, to the first message of each new session, out of sight of your chat. Images, PDFs and Office files are attached to that first message. Text counts against a limit of about 125,000 tokens per project; a file that does not fit is replaced by a note telling the agent to read it if needed, and its row is marked skipped.

  • On-demand context. The agent gets only a list of these files with a one-line description each, and opens the ones it decides it needs. There is no size limit, so large references belong here.

This works with every engine, not only Claude.

Find your instruction files#

System Instructions, the first group in Auto Context, has one row each for the project's CLAUDE.md and MEMORY.md and your global ones (the global CLAUDE.md lives in ~/.claude/). Each row shows when the file last changed and roughly how many tokens it holds. Click a row to open the file to read or edit. A file that does not exist yet shows not created.

These rows cannot be selected for bulk delete, so a stray "select all" never removes them. If you use Agent Instructions Sync, the copies it makes appear here under Synced mirrors.

Why did I get a "tokens in agent docs" alert?#

A project's CLAUDE.md, AGENTS.md and .claude/memory/MEMORY.md are read with every message, so as they grow, your agent has less room for the actual work. When together they pass about 40,000 tokens, an amber row named after the project ("... tokens in agent docs") appears in your Inbox. Open it to see which file is the biggest, then:

  • Edit (labeled with the file, such as Edit CLAUDE.md) opens the biggest file so you can trim it. The row clears by itself once the files are under the limit.

  • Start session asks an agent in that project to propose a shorter version and wait for your approval.

  • Dismiss hides the row until the files grow by about half again or 30 days pass.

To change the limit, set a different one for a project, or turn the alert off, open Settings > Notifications > Doc Alerts.

Enable Doc Token AlertsSettings, Notifications > Doc AlertsMaster switch for warnings when always-loaded agent docs (CLAUDE.md, AGENTS.md, .claude/memory/MEMORY.md) cross a token thresholdOpen in YardmasterOpens Yardmaster. Don't have it? Download

Mark a document as an instruction#

Right-click a Markdown document and click Inject as instruction; it then shows an Instruction badge. Stop injecting as instruction turns it back. Only top-level text documents qualify.

A marked document is taken out of the first message, so it no longer counts against the 125,000-token limit. Instead, before each new Claude session, Yardmaster writes it into .claude/amc-instructions.md in the session's folder, under Project Instructions.

The file is not git-ignored, so git shows it as a new file. Keep your agent instructions in one place says more about the files Yardmaster writes into projects.

Manage many documents at once#

Click the select button next to +, or hold Ctrl (Command on a Mac) and click a row. Then pick rows and use Copy contents (copies their text to the clipboard) or Delete selected (moves them to the system trash after you confirm). In this mode, EscEsc leaves, Command plus ACtrl plus A selects all, Command plus CCtrl plus C copies and DeleteDelete deletes.

Right-click a single document for Copy contents, Copy path, Rename and Delete. A PDF also offers Convert to Markdown; a Markdown document offers Export to PDF and Export to Word, plus Export to Google Docs if you turned on Google Docs export in Settings.

Did this help?