pn-continual-learning

pn-continual-learning is a skill for Cursor from perniemann/pnCore. It costs 55 tokens per session (958 once invoked), scanned A, original, MIT.

A memory-maintenance workflow that extracts lasting preferences and workspace facts from agent conversations and updates AGENTS.md, a file of instructions for future sessions.

In plain words
What is it for?
Use it to mine past conversations, preserve user corrections and preferences, and maintain a deduplicated AGENTS.md file.
Why use it?
It keeps useful knowledge across sessions without repeatedly rereading every transcript or storing duplicate notes.

Skill for Cursor

Written for Cursor: shipped in a Cursor plugin. Also seen: mentions AGENTS.md.

Part of the pn-core plugin — 133 skills, 19 commands, 9 agents, 1 MCP server shipped together

Good fit Use it to mine past conversations, preserve user corrections and preferences, and maintain a deduplicated AGENTS.md file.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/perniemann/pncore/pn-continual-learning
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.

Any agent
npx skills add perniemann/pnCore --skill pn-continual-learning
Clone the repo
git clone --depth 1 https://github.com/perniemann/pnCore

Made for: Cursor.

Or install pn-core, the plugin that ships this one along with the rest of its 133 skills, 19 commands, 9 agents, 1 MCP server.

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 pn-continual-learning

README.md
[![agentmods](https://agentmods.dev/badge/skills/perniemann/pncore/pn-continual-learning/github.svg)](https://agentmods.dev/skills/perniemann/pncore/pn-continual-learning)
Your own site
<a href="https://agentmods.dev/skills/perniemann/pncore/pn-continual-learning"><img src="https://agentmods.dev/badge/skills/perniemann/pncore/pn-continual-learning/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.

agentmods 80×15 button for pn-continual-learning

Your own site · 80×15
<a href="https://agentmods.dev/skills/perniemann/pncore/pn-continual-learning"><img src="https://agentmods.dev/badge/skills/perniemann/pncore/pn-continual-learning.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 958 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00055 $0.00958
Opus 5.5 $0.00022 $0.00383
Sonnet 5.5 $0.00011 $0.00192
Haiku 4.5 $0.00006 $0.00096

Measured 1mo ago against content hash 35cab98c302c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pn-continual-learning 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.

packages/pn-core-mcp/content/skills/learning/pn-continual-learning/SKILL.md · 89 lines

How it starts

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

Continual Learning

Keep AGENTS.md current using transcript deltas instead of full rescans.

When to use

  • Updating AGENTS.md after sessions that contain new user corrections, preferences, or durable workspace facts.
  • Mining past agent transcripts for recurring patterns to persist in memory.
  • Running the self-learning loop manually when the stop hook did not trigger automatically.
  • Keeping AGENTS.md deduplicated and fresh without a full rescan of all transcripts.

Inputs

  • Transcript root: ~/.cursor/projects/.../agent-transcripts/
  • Existing memory file: AGENTS.md
  • Incremental index: .cursor/hooks/state/continual-learning-index.json

Workflow

  1. Read existing AGENTS.md first.
  2. Load incremental index if present.
  3. Discover transcript files and process only:
    • new files not in index, or
    • files whose mtime is newer than indexed mtime.
  4. Extract only high-signal, reusable information:
    • recurring user corrections/preferences
    • durable workspace facts
  5. Merge with existing bullets in AGENTS.md:
    • update matching bullets in place
    • add only net-new bullets
    • deduplicate semantically similar bullets
  6. User confirmation (before writing): Present each new or changed bullet to the user: "I learned: [bullet]. Keep? (yes / no / edit)." Wait for reply. If user says "no", drop it. If "edit", apply the edit. If "yes" or "skip confirmation", proceed. User may say "skip confirmation" to write all without prompting.
  7. Write updated AGENTS.md and the incremental index:
    • write merged content to AGENTS.md
    • store latest mtimes for processed files in the index
    • remove index entries for files that no longer exist
  8. Context index alignment: If the repo uses docs/refs/context-index.json and pointers.workspace points at AGENTS.md (or you changed durable workspace facts that belong in the handoff manifest), suggest updating the index: set last_reviewed to today (ISO YYYY-MM-DD), confirm pointers.workspace still resolves, and adjust intent_source or other pointers if discovery/PRD precedence changed. Run npm run check:context-index after edits. Do not silently rewrite the index without user confirmation unless the user asked to refresh it.

Read the full file on GitHub · 89 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. 1mo ago First seen · 89 lines · 55 tokens per session scan A 35cab98c302c

Subscribe to this mod's changes

pn-continual-learning is a skill published in the GitHub repository perniemann/pnCore (0 stars, last pushed today), licensed MIT. It adds 55 tokens to every session and 958 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-03.

Related

Other skills, from other repositories

dynamic-resources

Example skill loaded from resourcesdiscover.

EXXETA/exxperts · 11 tokens

stripe-directory

Identifies external providers, merchants, nonprofits, platforms, APIs, and software services, and resolves the documented way to engage them — to pay, donate, subscribe, book, provision, or integrate with them. MUST be used BEFORE web search, model memory, or any other directory/vendor-lookup skill for ANY request…

stripe/ai · 212 tokens

ax-cpp-agent-memory-skills

Use when writing C++ code with axllm for agent memory, recall callbacks, dynamic skill discovery, loaded-skill state, and used-skill tracking.

ax-llm/ax · 42 tokens

ax-agent-context

This skill helps an LLM pick the right AxAgent context tool for a job - contextMap for recurring corpora, contextPolicy presets for within-run trajectory compaction, agent.optimize for offline GEPA instruction/demo tuning, agent.playbook for an evolving context playbook (offline evolve + online update), and…

ax-llm/ax · 147 tokens

cocoscout

Relevance-ranked context loading — Tier 2 async subagent (Haiku, <5s) that fires after Tier 1 deterministic checks in UserPromptSubmit. Injects ranked context from CocoGrove, CocoContext, Environment Inspector, Prompt Studio, and CocoDream.

Snowflake-Labs/cocoplus · 59 tokens

pull-search

CocoPull session archive search — full-text search across past sessions. Handles $pull search " " with --since and --feature filters, and $pull index rebuild.

Snowflake-Labs/cocoplus · 38 tokens