learning-classifier

learning-classifier is an agent for coding agents from datacore-one/datacore. It costs 41 tokens per session (2,591 once invoked), scanned A, original, MIT.

An agent that processes new learning notes, removes duplicates, and turns useful recurring or new patterns into organized memory entries called engrams.

In plain words
What is it for?
Use it to classify learning files, compare entries with existing knowledge, create or reinforce memory entries, and track which entries have already been processed.
Why use it?
It keeps accumulated agent knowledge organized, avoids storing the same lesson repeatedly, and flags contradictions or patterns that should apply more broadly.

Agent

Install

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.

agentmods
npx agentmods add agents/datacore-one/datacore/learning-classifier
Clone the repo
git clone --depth 1 https://github.com/datacore-one/datacore

Wrote 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.

agentmods badge for learning-classifier

README.md
[![agentmods](https://agentmods.dev/badge/agents/datacore-one/datacore/learning-classifier.svg)](https://agentmods.dev/agents/datacore-one/datacore/learning-classifier)
Your own site
<a href="https://agentmods.dev/agents/datacore-one/datacore/learning-classifier"><img src="https://agentmods.dev/badge/agents/datacore-one/datacore/learning-classifier.svg" alt="Measured on agentmods" height="20"></a>
Per session 41 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,591 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00041 $0.02591
Opus 5 $0.00020 $0.01295
Sonnet 5 $0.00008 $0.00518
Haiku 4.5 $0.00004 $0.00259

Measured yesterday against content hash ccc94afa6a2e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

learning-classifier 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 yesterday.

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.

.datacore/agents/learning-classifier.md · 225 lines

How it starts

The opening of the file, as written. The whole thing — 225 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Learning Classifier Agent

Quick Reference

Question Answer
What do I do? Classify new learning entries, dedup against engrams, create/reinforce engrams
Where is state? .datacore/state/learning_classifier_cursor.yaml
Who spawns me? wrap-up step 6, session-learning-coordinator
What MCP tools? plur_similarity_search, plur_learn, plur_feedback, plur_recall_hybrid (fallback)
Agent Relationship
session-learning-coordinator Parent — spawns this agent after learning files are written
session-learning Upstream — writes the learning entries this agent classifies

You are the Learning Classifier Agent — responsible for turning learning file entries into properly classified PLUR engrams while avoiding duplicates.

Algorithm

Step 1: Read Cursor

Read the cursor file to determine where the last run left off:

# .datacore/state/learning_classifier_cursor.yaml
# Each value is the date of the LAST PROCESSED ENTRY for that file,
# not today's date. Never set a cursor to today's run date — only to the
# actual date of the last entry you successfully processed.
last_run: "2026-04-20"
cursors:
  ".datacore/learning/patterns.md": "2026-04-19"
  ".datacore/learning/corrections.md": "2026-04-18"
  "0-personal/.datacore/learning/patterns.md": "2026-04-20"
  "1-datafund/.datacore/learning/patterns.md": "2026-04-15"
  # ... per-file cursors keyed by relative path from Data root
  • last_run: date this agent last ran (informational only — not used for filtering)
  • cursors: per-file last-processed-entry dates. A missing key means "process all entries" for that file.

If the cursor file does not exist, process all entries (first run).

Step 2: Read New Entries

Scan learning files across all spaces for entries newer than the cursor:

Files to scan:

  • .datacore/learning/patterns.md (root)
  • .datacore/learning/corrections.md (root)
  • [0-9]-*/.datacore/learning/patterns.md (per-space)
  • [0-9]-*/.datacore/learning/corrections.md (per-space)

Read the full file on GitHub · 225 lines

Changes

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.

  1. yesterday First seen · 225 lines · 41 tokens per session scan A ccc94afa6a2e

Subscribe to this mod's changes

learning-classifier is an agent published in the GitHub repository datacore-one/datacore (4 stars, last pushed today), licensed MIT. It adds 41 tokens to every session and 2,591 once invoked, about $0.0002 per session on Opus 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-03.