How do you give an agent your documents and notes to work from?
20 posts
Playbook
Practitioners provide context by using structured markdown files, direct file reading, or multi-modal inputs like screen recordings.
- Organize structured markdown notes
Maintain raw documents in a Sources/ directory and use an LLM to write linked Concepts/ and People/ notes in Markdown, which are checked before RAG . One method involves generating around 45 concept files in Google's OKF format that point to code locations via a browsable graph . 29
- Directly access files and source code
Instead of relying on compacted summaries, agents can read files directly to improve quality [1, 5]. For coding agents, users can have the agent examine three previous repositories and search the web to build context . 157
- Utilize multi-modal and unstructured inputs
Brief an agent on a new application by providing a phone screen recording of an existing app while verbally explaining feature preferences and usage habits . Agents can also ingest institutional memory from slides, Slack, meeting notes, and code changes . 310
- Manage context through filesystem offloading
Equip agents with a filesystem to offload large tool results as files with only a preview shown to the model, and move old messages to files to be summarized during long conversations . 8
- Implement layered instruction structures
To prevent rules from being ignored, split instructions into five layers, keeping project-level conventions in a CLAUDE.md file under 200 lines . 6
Choosing between approaches
Reading source code directly can trade some speed for higher quality compared to using compacted summaries 5. Using direct file reading instead of an index can reduce costs by about a third 1.
Not covered yet
The material does not detail specific security protocols for handing over private recordings or sensitive documents [3, 10].
Posts
- After 27 days with OKF, agents skipped the index and read files directlyThe team adopted OKF in a single repo on July 3 and after 27 days had 31 concepts and 9 index files.

- Keep raw docs in Sources/ and let Claude write linked Concepts/ and People/ notesThe Salesforce Agentic Search team has used this setup since January: raw documents sit unchanged in Sources/, while Claude writes notes in Concepts/ and People/, extended and refined with /ingest-doc and /refine.

- Record your phone screen while talking through an existing app to brief an agent on a new oneThorsten Ball wanted his own workout app.

- Counter-evidence searches and Haiku pre-filtering drive a RAG assistant for practitionerswarwickabrown transformed 162 academic papers into professional advice for practitioners via a custom RAG pipeline.
- Use GraphQL to cut GitHub RAG API calls from roughly 140 to 5Anushka Shandilya replaced REST with GraphQL to reduce calls from roughly 140 to 5.

- Bind user identity by closure and mask PII to build a cited, role-aware compliance assistantTaxbit built an AI assistant embedded in an enterprise dashboard on Amazon Bedrock AgentCore to fix scattered knowledge.

- Spread instructions across five layers and keep CLAUDE.md under 200 linesJenny Ouyang addresses oversized CLAUDE.md files that get rules ignored and burn tokens by splitting instructions into five layers.

- Read the source directly instead of compacted summaries unless you have codebase-specific evalsdex advises against directory-level compacted summaries unless you build strict evals for your own codebase and keep monitoring them; read the source directly and trade a little speed for quality.
- Have the agent read three of your earlier repos and search the web before it startsThariq says it is now close to impossible to simply show someone your prompt, because everything depends on references, skills and examples.
- Have Codex generate about 45 concept files in Google's OKF format for a full-stack appAfter reading Google Cloud's Open Knowledge Format (OKF) spec, the author had Codex scan his full-stack app's codebase and generate about 45 concept files.

- Offload large tool results and old messages to the filesystem instead of erasing work history
- Add a map and a hand-written guide so agents tell canonical docs from stale ones
- Obsidian second brain: a 200-300 line CLAUDE.md, one fact per memory file, 13 slash commands
10 more posts to see