continuous-learning-v2

continuous-learning-v2 is a skill for Claude Code from Jamkris/everything-gemini-code. It costs 33 tokens per session (2,030 once invoked), scanned B, original, MIT.

A learning system that watches Gemini CLI sessions and records small reusable behaviors called instincts. Each instinct includes a trigger, an action, supporting evidence, and a confidence level, and related instincts can later become skills or agents.

In plain words
What is it for?
Use it to observe tool activity, capture corrections and successful approaches, group related patterns, and build reusable skills, commands, or agents.
Why use it?
It preserves useful lessons from previous work in small, reviewable pieces instead of losing them when a session ends. It can also export and import these learned behaviors.

Skill for Claude Code

Written for Claude Code: PreToolUse hook event. Also seen: mentions Gemini CLI.

Good fit Use it to observe tool activity, capture corrections and successful approaches, group related patterns, and build reusable skills, commands, or agents.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jamkris/everything-gemini-code/continuous-learning-v2
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 Jamkris/everything-gemini-code --skill continuous-learning-v2
Clone the repo
git clone --depth 1 https://github.com/Jamkris/everything-gemini-code

Made for: Claude Code.

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-v2

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/jamkris/everything-gemini-code/continuous-learning-v2"><img src="https://agentmods.dev/badge/skills/jamkris/everything-gemini-code/continuous-learning-v2.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,030 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00033 $0.02030
Opus 5.5 $0.00013 $0.00812
Sonnet 5.5 $0.00007 $0.00406
Haiku 4.5 $0.00003 $0.00203

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

Security

Grade B, and why

continuous-learning-v2 scanned grade B with 1 finding 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.

The scan reads SKILL.md. This mod also ships 4 executable files (agents/start-observer.sh, hooks/observe.sh, scripts/instinct-cli.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

Add to your `~/.gemini/settings.json`.
skills/continuous-learning-v2/SKILL.md · 285 lines

How it starts

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

Continuous Learning v2 - Instinct-Based Architecture

An advanced learning system that turns your Gemini CLI sessions into reusable knowledge through atomic "instincts" - small learned behaviors with confidence scoring.

What's New in v2

Feature v1 v2
Observation Stop hook (session end) PreToolUse/PostToolUse (100% reliable)
Analysis Main context Background agent (Haiku)
Granularity Full skills Atomic "instincts"
Confidence None 0.3-0.9 weighted
Evolution Direct to skill Instincts → cluster → skill/command/agent
Sharing None Export/import instincts

The Instinct Model

An instinct is a small learned behavior:

---
id: prefer-functional-style
trigger: "when writing new functions"
confidence: 0.7
domain: "code-style"
source: "session-observation"
---

# Prefer Functional Style

## Action
Use functional patterns over classes when appropriate.

## Evidence
- Observed 5 instances of functional pattern preference
- User corrected class-based approach to functional on 2025-01-15

Properties:

  • Atomic — one trigger, one action
  • Confidence-weighted — 0.3 = tentative, 0.9 = near certain
  • Domain-tagged — code-style, testing, git, debugging, workflow, etc.
  • Evidence-backed — tracks what observations created it

How It Works

Session Activity
      │
      │ Hooks capture prompts + tool use (100% reliable)
      ▼
┌─────────────────────────────────────────┐
│         observations.jsonl              │
│   (prompts, tool calls, outcomes)       │
└─────────────────────────────────────────┘
      │
      │ Observer agent reads (background, Haiku)
      ▼
┌─────────────────────────────────────────┐
│          PATTERN DETECTION              │
│   • User corrections → instinct         │
│   • Error resolutions → instinct        │
│   • Repeated workflows → instinct       │
└─────────────────────────────────────────┘
      │
      │ Creates/updates
      ▼
┌─────────────────────────────────────────┐
│         instincts/personal/             │
│   • prefer-functional.md (0.7)          │
│   • always-test-first.md (0.9)          │
│   • use-zod-validation.md (0.6)         │
└─────────────────────────────────────────┘
      │
      │ /egc-evolve clusters
      ▼
┌─────────────────────────────────────────┐
│              evolved/                   │
│   • commands/new-feature.md             │
│   • skills/testing-workflow.md          │
│   • agents/refactor-specialist.md       │
└─────────────────────────────────────────┘

Read the full file on GitHub · 285 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 285 lines · 33 tokens per session scan B ca5486155b25

Subscribe to this mod's changes

continuous-learning-v2 is a skill published in the GitHub repository Jamkris/everything-gemini-code (90 stars, last pushed 4mo ago), licensed MIT. It adds 33 tokens to every session and 2,030 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.