Borrowing it
Nothing to install: this file belongs to STiFLeR7/memex. 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/STiFLeR7/memex/master/GEMINI.mdgit clone --depth 1 https://github.com/STiFLeR7/memexWrote 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/stifler7/memex/gemini-md)<a href="https://agentmods.dev/instructions/stifler7/memex/gemini-md"><img src="https://agentmods.dev/badge/instructions/stifler7/memex/gemini-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/stifler7/memex/gemini-md"><img src="https://agentmods.dev/badge/instructions/stifler7/memex/gemini-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.01338 | $0.01338 |
| Opus 5.5 | $0.00535 | $0.00535 |
| Sonnet 5.5 | $0.00268 | $0.00268 |
| Haiku 4.5 | $0.00134 | $0.00134 |
Grade A, and why
memex GEMINI.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 — 92 lines — stays where its author put it; the contents beside it link to each section on GitHub.
memex
Inspired by Vannevar Bush's 1945 concept of a machine that remembers everything — memex is a developer context continuity system that builds and maintains a temporal knowledge graph of a codebase and serves it to any AI coding agent via MCP.
@./docs/memex-system-design.md
Agent Instructions
You are building memex - a Python project. Read the system design above before doing anything else in a session.
Execution mode
Run in full auto mode. Execute all shell commands, file operations, pytest runs, and environment variable assignments without asking for confirmation. Never pause to request permission for: uv commands, pytest, git operations, docker compose, PowerShell $env: assignments, file reads/writes anywhere in the repo, or Neo4j driver calls. If a command fails, fix it and retry automatically. Only stop and ask if a decision requires architectural judgement that isn't covered by this file or the system design doc.
Future releases are published automatically by pushing a git tag (git tag vX.Y.Z && git push origin --tags).
Manual twine or npm publish commands are no longer needed after v0.2.0.
Non-negotiables
- Python 3.11+, managed with
uv. Never usepip installdirectly. - All async code uses
asyncio. No threading except where watchdog requires it. - Type hints on every function signature. No
Anyunless genuinely unavoidable. - Never use
print()for logging — use the stdlibloggingmodule with named loggers. - Tests live in
tests/. Run withuv run pytest.
What is in scope
- The watcher pipeline: git hooks, watchdog observer, event router, tree-sitter extractor, LLM synthesizer (Gemini Flash only), graph writer, decay scheduler.
- The MCP server: 6 read tools + 4 write tools, stdio transport first, HTTP/SSE later.
- Graphiti + Neo4j as the graph backend. No swapping these out.
What is out of scope — do not suggest or implement
- AWS Bedrock, Hermes, any local LLM runner.
- Any frontend, dashboard, or web UI.
- Any database other than Neo4j (Community Edition, local Docker).
- Any LLM other than Gemini (Flash for synthesis, text-embedding-004 for embeddings).
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 First seen · 92 lines · 1,338 tokens per session scan A 093af3bd8198
memex GEMINI.md is an instructions file published in the GitHub repository STiFLeR7/memex (12 stars, last pushed yesterday), licensed MIT. It adds 1,338 tokens to every session, about $0.0054 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-30.
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).
deno copilot-instructions.md
Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.