Borrowing it
Nothing to install: this file belongs to LindaHaviv/second-brain. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/LindaHaviv/second-brain/main/AGENTS.mdgit clone --depth 1 https://github.com/LindaHaviv/second-brainWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/instructions/lindahaviv/second-brain/agents-md)<a href="https://agentmods.dev/instructions/lindahaviv/second-brain/agents-md"><img src="https://agentmods.dev/badge/instructions/lindahaviv/second-brain/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/instructions/lindahaviv/second-brain/agents-md"><img src="https://agentmods.dev/badge/instructions/lindahaviv/second-brain/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.01778 | $0.01778 |
| Opus 5.5 | $0.00711 | $0.00711 |
| Sonnet 5.5 | $0.00356 | $0.00356 |
| Haiku 4.5 | $0.00178 | $0.00178 |
Grade A, and why
second-brain AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 116 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Instructions for AI coding agents
You (an AI coding agent — Claude Code, Cursor, Codex, or similar) have been handed this repo to set up, adapt, or extend a second brain: one Oracle database holding your user's content, searchable by meaning, with a self-compiling wiki, agent memory, and an MCP server. Everything below is what a maintainer would tell you on day one.
What to read first
README.md— the build, in order. The Quickstart IS the setup procedure; run it top to bottom rather than improvising your own.README.md→ "Build yours with your AI" — if your user wants THEIR version (their sources, their questions), start from those three prompts: interview → plan first.docs/EXPORT_GUIDE.md+ any loader inscripts/— the pattern for adding a source.SECURITY.md— before anything touches real data or the internet.
The rules (non-negotiable)
- Secrets never enter files or chat. Credentials live in
oracle/.env(gitignored) or the OS keychain (keychain:<item>values — seeoracle/agent/keychain_secrets.py). Never print token values, never commit.env, never paste keys into your transcript. - Privacy is structural — keep it that way. Every read path filters
visibility='content'. If you write a new query overposts/content_chunks, include the visibility filter. Private/business items must stay out of search, the wiki compiler, memory consolidation, AND anything you add. The column's values:'content'= searchable everywhere; anything else ('business','archived', or a label of the user's choosing) is excluded from every read path, and the cloud-copy script ships only'content'. If the user's most valuable questions are ABOUT their private data, plan a local-only query path for that scope — don't widen the default filters. The memory layer carries the same contract:agent_memoryandconversationshave avisibilitycolumn too, tagged at write time by the deterministic deny-list (oamp_memory.violates_privacy) and filtered to'content'on every read — so a private detail the agent saw never resurfaces in its recall, a shared memory view, or the working-memory window. Any new memory write/read keeps that filter. (Semantic and procedural memory need no column: the consolidator distills only from content-scope posts, and tool definitions hold no private data.) - Run the tests after any change:
./.venv/bin/python tests/test_brain.py(needs the local DB from the Quickstart running). All green before you call it done. - Run the matching eval when you touch quality-bearing code:
- retrieval/search changes →
tests/eval_retrieval.py - agent answer/verify changes →
tests/eval_grounding.py,tests/eval_verify.py - privacy classifier changes →
tests/eval_classifier.py - memory backend changes →
tests/eval_oamp.pyThe golden sets intests/*.jsonwork on the sample data; encourage your user to grow their own once real content is loaded.
- retrieval/search changes →
- Every loop earns its keep. A new source, agent, or scheduled job ships with an
eval that proves it works or a report your user will actually read (see
docs/LOOP_ENGINEERING.md). Don't add silent automation. - No self-modification patterns. Agents here never rewrite their own prompts or
code at runtime; scheduling stays deterministic (
scripts/sync.py+ cron/launchd). Keep that property — it's what makes the system auditable with plain SQL. - Don't scrape platforms. Loaders use official APIs and user-requested exports only. If a platform has neither, the answer is "not yet," not a headless browser.
- Money stays out of the Content Tracker. In the user's Notion, fees, rates, invoice numbers, payment status, and contract terms live ONLY in the deal tracker (Brand Collab Tracker). Content/calendar rows may reference "paid collab — terms in the deal tracker" and nothing more. Any agent flow that logs content from a brief strips the money facts and routes them to the deal tracker instead.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago Changed · +5 lines · +92 tokens per session e5e6cbeea42c
- 1mo ago First seen · 111 lines · 1,686 tokens per session scan A cec99115c1c8
second-brain AGENTS.md is an instructions file published in the GitHub repository LindaHaviv/second-brain (13 stars, last pushed 1mo ago), licensed MIT. It adds 1,778 tokens to every session, about $0.0071 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other instructions, from other repositories
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
next.js AGENTS.md
AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).
langchain AGENTS.md
AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.
vscode copilot-instructions.md
Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).
vscode model-prompts.instructions.md
Model-specific prompt authoring and registry guidelines.