{
 "schema_version": 1,
 "generated": "2026-10-26",
 "id": "ghalebdweikat-winnow--inject-relevant-notes-into-each-prompt",
 "repo": "GhalebDweikat/winnow",
 "repo_url": "https://github.com/GhalebDweikat/winnow",
 "repo_slug": "ghalebdweikat-winnow",
 "title": "Inject relevant memory notes into each Claude Code prompt",
 "page_title": "How to inject relevant memory notes into each Claude Code prompt with Winnow",
 "summary": "Point Winnow at your markdown notes so the right ones load with each prompt.",
 "who": "A developer who keeps project notes or design docs in markdown and wants Claude to see the relevant ones without manual Read calls.",
 "problem": "Relevant notes are easy to forget, and asking Claude to read them each time costs a round of tool calls.",
 "outcome": "Claude receives the most relevant note files, up to a set count and size, along with each prompt.",
 "steps": [
  "Collect the directories of .md files you want considered, such as a notes folder.",
  "Set WINNOW_CONTEXT_DIRS to those directories in ~/.winnow/env, using : on macOS and Linux or ; on Windows.",
  "Optionally tune WINNOW_CONTEXT_GATE, WINNOW_CONTEXT_TOP_K, and WINNOW_CONTEXT_MAX_CHARS.",
  "Open a new Claude Code session and send a prompt that relates to one of your notes.",
  "Check that the matching note appears in Claude's context."
 ],
 "agent_prompt": "In the winnow repo at <repo path>, set WINNOW_CONTEXT_DIRS to <notes directory> and start a new Claude Code session. Send the prompt <test prompt> and confirm that the note matching it is injected. Report the files injected and the file count against WINNOW_CONTEXT_TOP_K.",
 "agents": [
  "claude-code"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "The selector sends your prompt and the first 600 characters of each candidate file to the judge, so keep sensitive notes out of the configured directories.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "python",
 "requirements": [
  "Python 3.10+",
  "uv installed",
  "Claude Code 2.1.260 or newer with function hooks enabled (early access)",
  "A Jev key from TypeSafe, or an Anthropic API key for the adapter judge",
  "Git to clone the repo"
 ],
 "risk": "sensitive",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.7,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/ghalebdweikat-winnow/inject-relevant-notes-into-each-prompt/",
 "md": "https://dedupedai.com/use-cases/ghalebdweikat-winnow/inject-relevant-notes-into-each-prompt/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/ghalebdweikat-winnow--inject-relevant-notes-into-each-prompt.json",
 "api_version": "v1"
}
