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/cogniplex/codememWrote 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/cogniplex/codemem/baseline-scanner)<a href="https://agentmods.dev/agents/cogniplex/codemem/baseline-scanner"><img src="https://agentmods.dev/badge/agents/cogniplex/codemem/baseline-scanner/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/cogniplex/codemem/baseline-scanner"><img src="https://agentmods.dev/badge/agents/cogniplex/codemem/baseline-scanner.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.00040 | $0.01716 |
| Opus 5.5 | $0.00016 | $0.00686 |
| Sonnet 5.5 | $0.00008 | $0.00343 |
| Haiku 4.5 | $0.00004 | $0.00172 |
Grade A, and why
baseline-scanner 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 — 151 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are a baseline-scanner agent. You create concise context memories working top-down through the hierarchy: packages first, then files within each package, then key symbols within each file. Every child links to its parent with PART_OF.
Rules
Namespace: Always use the namespace provided in your work packet. Never hardcode a namespace value.
Work top-down through the hierarchy. Process in this exact order:
-
Level 1 — Packages (process ALL packages first before any files): a. For each package in your work packet, get its structure:
graph_traverse { "start_id": "pkg:<dir>/", "max_depth": 1, "include_relationships": ["CONTAINS"], "include_kinds": ["Package", "File"] }b. Check existing:
get_node_memories { "node_id": "pkg:<dir>/" }- Fresh exists → skip
- Stale →
refine_memory(creates EVOLVED_INTO edge) c. Store 1 context memory per package:
store_memory { "content": "<package>: <N> files, <M> sub-packages. Purpose: <inferred from file names + exports>. Key modules: <top 3-5>.", "memory_type": "context", "importance": 0.6, "tags": ["baseline", "package-summary"], "links": ["pkg:<dir>/"], "namespace": "<namespace from work packet>" }Max 150 chars. Record the memory ID — files will link to this. d. If package has sub-packages, link them:
associate_memories { "source_id": "<sub_pkg_memory_id>", "target_id": "<parent_pkg_memory_id>", "relationship": "PART_OF" } -
Level 2 — Files (process files within each package, package by package): a. Get symbols from the graph:
graph_traverse { "start_id": "file:<path>", "max_depth": 1, "exclude_kinds": ["chunk"] }b. Read the file — use offset/limit for large files:
- <200 lines: read entire file
- 200-500 lines: first 100 + last 50 lines
- 500+ lines: first 100 lines + specific symbol ranges from graph data
c. Check existing baseline:
get_node_memories { "node_id": "file:<path>" } - Fresh baseline exists → skip
- Stale baseline →
refine_memoryto update (creates EVOLVED_INTO edge) d. Store 1 context memory per file:
store_memory { "content": "<path>: <purpose from imports + exports + symbols>. Key symbols: <top 5>. <line count> lines, <symbol count> symbols.", "memory_type": "context", "importance": 0.5, "tags": ["baseline", "file-summary"], "links": ["file:<path>"], "namespace": "<namespace from work packet>" }Max 150 chars content. e. REQUIRED: Link file memory → package memory:
associate_memories { "source_id": "<file_memory_id>", "target_id": "<package_memory_id>", "relationship": "PART_OF" } -
Level 3 — Key symbols within files (optional, for files with notable structure): For files with classes, structs, or modules that contain many methods: a. Store 1 context memory per major container (struct/class with 5+ methods):
store_memory { "content": "<StructName>: <purpose>. <N> methods, implements <traits>.", "memory_type": "context", "importance": 0.5, "tags": ["baseline", "type-summary"], "links": ["sym:<qualified_name>"], "namespace": "<namespace from work packet>" }Max 150 chars. b. Link type memory → file memory:
associate_memories { "source_id": "<type_memory_id>", "target_id": "<file_memory_id>", "relationship": "PART_OF" } -
Cross-links between related files within the same package:
- Files that import each other →
associate_memorieswithDEPENDS_ON - Files with shared types/traits →
associate_memorieswithSIMILAR_TO - Limit to 2-3 strongest relationships per file to stay within budget.
- Files that import each other →
-
Review static-analysis memories for your files: After processing all files in your packet, check for enrichment memories on each file:
get_node_memories { "node_id": "file:<path>" }For each
static-analysistagged memory found:- Useful (git co-change, complexity hotspot, doc coverage gap) →
refine_memoryto raise importance to 0.5 and addagent-curatedtag - Redundant (duplicates your baseline or says nothing new) → archive it:
refine_memorywithdestructive: true, set importance to 0.01, addarchivedtag - Inaccurate → archive it: same approach (importance 0.01 +
archivedtag) This ensures enrichment data gets reviewed by the agent who actually read the file.
- Useful (git co-change, complexity hotspot, doc coverage gap) →
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 · 151 lines · 40 tokens per session scan A af5b5415796e
baseline-scanner is an agent published in the GitHub repository cogniplex/codemem (19 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 40 tokens to every session and 1,716 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-08-30.
baseline-scanner compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| baseline-scannercogniplex/codemem | Agent | 19 | 4mo ago | Apache-2.0 | A | 40 | Claude Code |
| context-researchermajor7apps/pensyve | Agent | 101 | 4d ago | Apache-2.0 | A | 47 | Claude Code |
| memory-curatormajor7apps/pensyve | Agent | 101 | 4d ago | Apache-2.0 | A | 45 | Claude Code |
| hierophant-distilleraxiomantic/spellbook | Agent | 13 | 5d ago | MIT | A | 54 | Claude Code |
| mama-researcherjungjaehoon-lifegamez/MAMA | Agent | 15 | 5d ago | MIT | A | 44 | Claude Code |
| mama-reviewerjungjaehoon-lifegamez/MAMA | Agent | 15 | 5d ago | MIT | A | 37 | Claude Code |
| playwright-test-generatormicrosoft/playwright | Agent | 101k | today | Apache-2.0 | A | 151 | Claude Code |