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.
npx skills add topprismdata/cultivating-ml-agent --skill mem0-dynamic-graph-memorygit clone --depth 1 https://github.com/topprismdata/cultivating-ml-agentWrote 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/skills/topprismdata/cultivating-ml-agent/mem0-dynamic-graph-memory)<a href="https://agentmods.dev/skills/topprismdata/cultivating-ml-agent/mem0-dynamic-graph-memory"><img src="https://agentmods.dev/badge/skills/topprismdata/cultivating-ml-agent/mem0-dynamic-graph-memory/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/skills/topprismdata/cultivating-ml-agent/mem0-dynamic-graph-memory"><img src="https://agentmods.dev/badge/skills/topprismdata/cultivating-ml-agent/mem0-dynamic-graph-memory.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.00069 | $0.00897 |
| Opus 5.5 | $0.00028 | $0.00359 |
| Sonnet 5.5 | $0.00014 | $0.00179 |
| Haiku 4.5 | $0.00007 | $0.00090 |
Grade A, and why
mem0-dynamic-graph-memory 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 3mo 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 — 108 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Mem0 Dynamic Graph Memory (Entity-Relation Extraction)
Context
Static OKF stores predefined edges. Mem0/Letta (2025) extract entities + relations dynamically from text. agy suggested upgrading our existing EntityRelationExtractor as P2: enables automatic concept discovery instead of manual OKF curation.
The core insight: knowledge graphs are useful only if they reflect real relationships, and those relationships must be extracted, not hardcoded.
Guidance
Extract from Paper/Discussion
from framework.src.memory.entity_extraction import EntityRelationExtractor
ext = EntityRelationExtractor()
text = """
LightGBM uses histogram-based gradient boosting.
XGBoost improves LightGBM with second-order gradients.
CatBoost handles categorical features natively, unlike LightGBM.
We evaluated F1 score on Spaceship Titanic.
Walk-forward validation prevents data leakage in time series.
"""
entities, relations = ext.extract(text)
# → 8 entities (techniques, metrics, competitions, concepts)
# → relations: "XGBoost improves LightGBM", etc.
for e in entities:
print(f"{e.type}: {e.name} ({e.mentions} mentions)")
for r in relations:
print(f"{r.source} --{r.relation}--> {r.target}")
With LLM Enhancement
def my_llm(prompt: str) -> str:
return openai_client.chat.completions.create(...).choices[0].message.content
ext = EntityRelationExtractor(llm_call=my_llm)
entities, relations = ext.extract(text)
# → 规则抽取 + LLM 抽取合并去重
Integrate with OKF Index
# 已存在 OKFIndex,可叠加 entity edges
from framework.src.memory.okf_index import OKFIndex
from framework.src.memory.entity_extraction import EntityRelationExtractor
okf = OKFIndex(okf_dir="docs/ml-agent-memory")
okf.build()
ext = EntityRelationExtractor()
entities, relations = ext.extract(paper_abstract)
# 把 entity edges 添加到 OKF 图
for e in entities:
okf.items[f"entity:{e.name.lower()}"] = MemoryItem(
id=f"entity:{e.name.lower()}",
content=f"{e.type}: {e.name}",
type="entity",
importance=0.6,
)
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.
- 3mo ago First seen · 108 lines · 69 tokens per session scan A fbc51fad42f1
mem0-dynamic-graph-memory is a skill published in the GitHub repository topprismdata/cultivating-ml-agent (5 stars, last pushed 1mo ago), licensed MIT. It adds 69 tokens to every session and 897 once invoked, about $0.0003 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.
mem0-dynamic-graph-memory compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| mem0-dynamic-graph-memorytopprismdata/cultivating-ml-agent | Skill | 5 | 1mo ago | MIT | A | 69 | Claude Code, Codex |
| agent-v3-memory-specialistruvnet/ruflo | Skill | 83k | today | MIT | A | 25 | Claude Code |
| knowledge-orgbojieli/ai-agent-book | Skill | 60k | yesterday | Apache-2.0 | A | 96 | Claude Code, Codex |
| xerjxerj-org/xerj | Skill | 23k | today | Apache-2.0 | A | 38 | Claude Code, Codex |
| install-openviking-memoryvolcengine/OpenViking | Skill | 43k | yesterday | AGPL-3.0 | A | 191 | Claude Code, Codex |
| code-runnerfuyuxiang/echo-agent | Skill | 1.0k | yesterday | none | A | 25 | Claude Code, Codex |
| goodmem:helpPAIR-Systems-Inc/goodmem-claude-code-plugin | Skill | 10 | 5d ago | MIT | A | 46 | Claude Code |