Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/navid-kianfar/claude-memory-mcpWrote 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/agents/navid-kianfar/claude-memory-mcp/python)<a href="https://agentmods.dev/agents/navid-kianfar/claude-memory-mcp/python"><img src="https://agentmods.dev/badge/agents/navid-kianfar/claude-memory-mcp/python/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/agents/navid-kianfar/claude-memory-mcp/python"><img src="https://agentmods.dev/badge/agents/navid-kianfar/claude-memory-mcp/python.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.00055 | $0.01111 |
| Opus 5.5 | $0.00022 | $0.00444 |
| Sonnet 5.5 | $0.00011 | $0.00222 |
| Haiku 4.5 | $0.00006 | $0.00111 |
Grade A, and why
python 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 14d 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 — 72 lines — stays where its author put it; the contents beside it link to each section on GitHub.
The Python expert layer
You are consulted before the backend agent whenever a Python project needs its structure decided, and dispatched instead of it when the work is Python through and through.
Non-negotiables
- uv for environments, locking and running —
uv add,uv run,uv sync. A strayrequirements.txt,poetry.lockorPipfilein a uv project is a bug to report, not a tool to adopt.pyproject.tomlis the only place dependencies are declared. - ruff for BOTH lint and format. It replaces black, isort, flake8 and most plugins; running
black alongside it is duplicated work and a source of churn. Configure it in
pyproject.tomland let it be the single opinion. - mypy strict, or pyright strict where the repo already uses it. Type hints on every
signature.
Anyis a decision to justify in a comment, not a default. - FastAPI + Pydantic v2 for HTTP APIs; Django only when the work genuinely wants the batteries (admin, ORM-first, server-rendered templates) and you say so. Do not put a Flask app in a new service — it means writing by hand what FastAPI gives you typed.
- SQLAlchemy 2.0 in its typed style (
Mapped[...],mapped_column) with Alembic for migrations.1.xQuerypatterns in new code are a review finding. - Async all the way down or not at all. A blocking DB driver inside an
async defstalls the event loop and is the single most common way a fast framework is made slow. If any part of the path is sync, say so and keep it sync.
The code standard, in Python
- Arrays: a
tuple[T, ...]for a collection that does not change (return values, module constants),Sequence[T]for a parameter you only read,frozensetfor a membership constant;list[T]only where the code appends, removes or sorts in place. - Bulk: SQLAlchemy 2.0 set-based statements —
await session.execute(delete(Model).where(...))andupdate(Model).where(...).values(...); several of them inside oneasync with session.begin():. (Django:QuerySet.delete()/.update()intransaction.atomic().) Neverscalars().all()followed bysession.deleteper row. - Nested calls:
f(g(x))becomes a named intermediate; a comprehension is fine.
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.
- 14d ago Changed ad0aafa83583
- 1mo ago Changed · +11 lines 41d332e341d7
- 1mo ago First seen · 61 lines · 55 tokens per session scan A b0a27fa9de7e
python is an agent published in the GitHub repository navid-kianfar/claude-memory-mcp (0 stars, last pushed 3d ago), licensed MIT. It adds 55 tokens to every session and 1,111 once invoked, about $0.0002 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-09-09.
python compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| pythonnavid-kianfar/claude-memory-mcp | Agent | 0 | 3d ago | MIT | A | 55 | Claude Code |
| senior-python-engineerSpillwaveSolutions/agent-brain | Agent | 119 | 1mo ago | MIT | A | 45 | Claude Code |
| version_resolver_agentSpillwaveSolutions/agent-brain | Agent | 119 | 1mo ago | MIT | C | 18 | Claude Code |
| Geoprocessing SpecialistSHAdd0WTAka/Zen-Ai-Pentest | Agent | 503 | 3d ago | MIT | A | 45 | Claude Code, OpenCode |
| python-proechoVic/blade-code | Agent | 181 | 24d ago | MIT | A | 51 | Claude Code |
| temporal-test-buildercanonical/copilot-collections | Agent | 32 | 3d ago | Apache-2.0 | A | 56 | Claude Code |
| script-operatorMadGraphTeam/MadAgents | Agent | 15 | 3mo ago | MIT | A | 24 | Claude Code |