continuous-learning

continuous-learning is a skill for Claude Code from ShaheerKhawaja/ProductionOS. It costs 36 tokens per session (749 once invoked), scanned A, original, MIT.

A session-learning system that watches coding-agent activity, finds repeated patterns, and records them as reusable notes called instincts.

In plain words
What is it for?
It helps capture working habits, track evidence for those habits, rate confidence in them, and suggest or apply them in later coding sessions.
Why use it?
It reduces the need to repeat the same guidance across sessions and projects by remembering patterns that proved useful. Patterns start local and can be shared more widely when they occur often enough.

Skill for Claude Code

Written for Claude Code: PostToolUse hook event. Also seen: mentions CLAUDE.md.

Part of the productionos plugin — 4 skills, 41 commands, 11 agents shipped together

Good fit It helps capture working habits, track evidence for those habits, rate confidence in them, and suggest or apply them in later coding sessions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/shaheerkhawaja/productionos/continuous-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 ShaheerKhawaja/ProductionOS --skill continuous-learning
Clone the repo
git clone --depth 1 https://github.com/ShaheerKhawaja/ProductionOS

Made for: Claude Code.

Or install productionos, the plugin that ships this one along with the rest of its 4 skills, 41 commands, 11 agents.

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 continuous-learning

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/shaheerkhawaja/productionos/continuous-learning"><img src="https://agentmods.dev/badge/skills/shaheerkhawaja/productionos/continuous-learning.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 749 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.00036 $0.00749
Opus 5.5 $0.00014 $0.00300
Sonnet 5.5 $0.00007 $0.00150
Haiku 4.5 $0.00004 $0.00075

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

Security

Grade A, and why

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

.claude/skills/continuous-learning/SKILL.md · 100 lines

How it starts

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

ProductionOS Continuous Learning

Architecture

SESSION ACTIVITY (via PostToolUse hooks)
       ↓
  Observation Log (~/.productionos/analytics/skill-usage.jsonl)
       ↓
  Pattern Extractor (runs at session end via Stop hook)
       ↓
  Instinct Creation (~/.productionos/instincts/project/{hash}/)
       ↓
  Confidence Scoring (0.0 - 1.0, based on repetition + outcome)
       ↓
  Auto-Promotion (confidence > 0.8 → global instinct)
       ↓
  Global Instincts (~/.productionos/instincts/global/)

Instinct Format

Each instinct is a single markdown file:

---
name: {pattern-name}
confidence: 0.65
observations: 3
first_seen: 2026-03-20
last_seen: 2026-03-20
scope: project
promoted_from: null
---

## Pattern
{What was observed}

## Evidence
- Session {date}: {observation 1}
- Session {date}: {observation 2}

## Application
{When to apply this pattern in future sessions}

Confidence Scoring

Confidence Meaning Action
0.0 - 0.3 Weak signal Store but don't act
0.3 - 0.6 Emerging pattern Suggest when relevant
0.6 - 0.8 Strong pattern Apply proactively
0.8 - 1.0 Proven pattern Auto-promote to global

Observation Types

  1. Code Pattern — Repeated code structure across sessions
  2. Tool Usage — Preferred tool sequences (e.g., always Grep before Edit)
  3. Error Recovery — How errors were resolved (reusable fix patterns)
  4. Architecture Decision — Repeated structural choices
  5. Review Finding — Common issues found in code reviews

Stop Hook: Pattern Extraction

At session end, the Stop hook:

  1. Reads ~/.productionos/analytics/skill-usage.jsonl for this session
  2. Groups events by type (edit, bash, security_edit, etc.)
  3. Identifies patterns (repeated file types, common commands, recurring errors)
  4. Creates or updates instinct files
  5. Bumps confidence on existing instincts that match

Commands

  • pos-instincts list — Show all instincts with confidence
  • pos-instincts promote {name} — Manually promote to global
  • pos-instincts demote {name} — Reduce confidence
  • pos-instincts forget {name} — Delete an instinct

Read the full file on GitHub · 100 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. 3mo ago First seen · 100 lines · 36 tokens per session scan A f78899a72ab4

Subscribe to this mod's changes

continuous-learning is a skill published in the GitHub repository ShaheerKhawaja/ProductionOS (8 stars, last pushed 7mo ago), licensed MIT. It adds 36 tokens to every session and 749 once invoked, about $0.0001 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.

Related

continuous-learning compared with skills from other repositories

continuous-learning next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
continuous-learningShaheerKhawaja/ProductionOSSkill87mo agoMITA36Claude Code
lembasjustinjdev/fellowshipSkill52mo agoApache-2.0A51Claude Code
cross-task-learnerjmagly/aiwgSkill234todayMITA20Claude Code, Codex
ralph-memoryjmagly/aiwgSkill234todayMITA21Claude Code, Codex
session-explorejmagly/aiwgSkill234todayMITA25Claude Code, Codex
harness-memory-maintenancejmagly/aiwgSkill234todayMITA26Claude Code, Codex
reflection-injectionjmagly/aiwgSkill234todayMITA23Claude Code, Codex