Continuous Learning V2 logo

Continuous Learning V2

Community
mturac
continuous-learning-v2

フックを介してセッションを観察し、信頼度スコアリング付きのアトミックなインスティンクトを作成し、スキル/コマンド/エージェントに進化させるインスティンクトベースの学習システム。

Overview

Publishermturac
Repositoryeverything-openai-codex
Skill namecontinuous-learning-v2
Stars
91
Forks
2
Bundled files
1
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by mturac on GitHub. Read the source before you install it.

Installation

Install the Continuous Learning V2 AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/mturac/everything-openai-codex.git /tmp/everything-openai-codex
mkdir -p .claude/skills
cp -r /tmp/everything-openai-codex/docs/ja-JP/skills/continuous-learning-v2 .claude/skills/continuous-learning-v2
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Continuous Learning V2 in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Continuous Learning V2 on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Continuous Learning V2 is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Continuous Learning v2 - インスティンクトベースアーキテクチャ

OpenAI Codexセッションを信頼度スコアリング付きの小さな学習済み行動である「インスティンクト」を通じて再利用可能な知識に変える高度な学習システム。

v2の新機能

機能v1v2
観察Stopフック(セッション終了)PreToolUse/PostToolUse(100%信頼性)
分析メインコンテキストバックグラウンドエージェント(Fast)
粒度完全なスキルアトミック「インスティンクト」
信頼度なし0.3-0.9重み付け
進化直接スキルへインスティンクト → クラスター → スキル/コマンド/エージェント
共有なしインスティンクトのエクスポート/インポート

インスティンクトモデル

インスティンクトは小さな学習済み行動です:

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

# 関数型スタイルを優先

## Action
適切な場合はクラスよりも関数型パターンを使用します。

## Evidence
- 関数型パターンの優先が5回観察されました
- ユーザーが2025-01-15にクラスベースのアプローチを関数型に修正しました

プロパティ:

  • アトミック — 1つのトリガー、1つのアクション
  • 信頼度重み付け — 0.3 = 暫定的、0.9 = ほぼ確実
  • ドメインタグ付き — code-style、testing、git、debugging、workflowなど
  • 証拠に基づく — それを作成した観察を追跡

仕組み

セッションアクティビティ
      │ フックがプロンプト + ツール使用をキャプチャ(100%信頼性)
┌─────────────────────────────────────────┐
│         observations.jsonl              │
│   (プロンプト、ツール呼び出し、結果)       │
└─────────────────────────────────────────┘
      │ Observerエージェントが読み取り(バックグラウンド、Fast)
┌─────────────────────────────────────────┐
│          パターン検出                    │
│   • ユーザー修正 → インスティンクト      │
│   • エラー解決 → インスティンクト        │
│   • 繰り返しワークフロー → インスティンクト │
└─────────────────────────────────────────┘
      │ 作成/更新
┌─────────────────────────────────────────┐
│         instincts/personal/             │
│   • prefer-functional.md (0.7)          │
│   • always-test-first.md (0.9)          │
│   • use-zod-validation.md (0.6)         │
└─────────────────────────────────────────┘
      │ /evolveクラスター
┌─────────────────────────────────────────┐
│              evolved/                   │
│   • commands/new-feature.md             │
│   • skills/testing-workflow.md          │
│   • agents/refactor-specialist.md       │
└─────────────────────────────────────────┘

クイックスタート

1. 観察フックを有効化

~/.codex/settings.jsonに追加します。

プラグインとしてインストールした場合(推奨):

json
プラグインの `hooks/hooks.json` が OpenAI Codex v2.1+ で自動読み込みされるため、`~/.codex/settings.json` に追加の hook 設定は不要です。`observe.sh` はそこで既に登録されています。

以前に `observe.sh` を `~/.codex/settings.json` にコピーした場合は、重複した `PreToolUse` / `PostToolUse` ブロックを削除してください。重複登録は二重実行と `${CODEX_PLUGIN_ROOT}` 解決エラーを引き起こします。この変数はプラグイン管理の `hooks/hooks.json` でのみ展開されます。

**`~/.codex/skills`に手動でインストールした場合**:

```json
{
  "hooks": {
    "PreToolUse": [{
      "matcher": "*",
      "hooks": [{
        "type": "command",
        "command": "~/.codex/skills/continuous-learning-v2/hooks/observe.sh"
      }]
    }],
    "PostToolUse": [{
      "matcher": "*",
      "hooks": [{
        "type": "command",
        "command": "~/.codex/skills/continuous-learning-v2/hooks/observe.sh"
      }]
    }]
  }
}

2. ディレクトリ構造を初期化

Python CLIが自動的に作成しますが、手動で作成することもできます:

bash
mkdir -p ~/.codex/homunculus/{instincts/{personal,inherited},evolved/{agents,skills,commands}}
touch ~/.codex/homunculus/observations.jsonl

3. インスティンクトコマンドを使用

bash
/instinct-status     # 信頼度スコア付きの学習済みインスティンクトを表示
/evolve              # 関連するインスティンクトをスキル/コマンドにクラスター化
/instinct-export     # 共有のためにインスティンクトをエクスポート
/instinct-import     # 他の人からインスティンクトをインポート

コマンド

コマンド説明
/instinct-statusすべての学習済みインスティンクトを信頼度と共に表示
/evolve関連するインスティンクトをスキル/コマンドにクラスター化
/instinct-export共有のためにインスティンクトをエクスポート
/instinct-import <file>他の人からインスティンクトをインポート

設定

config.jsonを編集:

json
{
  "version": "2.0",
  "observation": {
    "enabled": true,
    "store_path": "~/.codex/homunculus/observations.jsonl",
    "max_file_size_mb": 10,
    "archive_after_days": 7
  },
  "instincts": {
    "personal_path": "~/.codex/homunculus/instincts/personal/",
    "inherited_path": "~/.codex/homunculus/instincts/inherited/",
    "min_confidence": 0.3,
    "auto_approve_threshold": 0.7,
    "confidence_decay_rate": 0.05
  },
  "observer": {
    "enabled": true,
    "model": "fast",
    "run_interval_minutes": 5,
    "patterns_to_detect": [
      "user_corrections",
      "error_resolutions",
      "repeated_workflows",
      "tool_preferences"
    ]
  },
  "evolution": {
    "cluster_threshold": 3,
    "evolved_path": "~/.codex/homunculus/evolved/"
  }
}

ファイル構造

~/.codex/homunculus/
├── identity.json           # プロフィール、技術レベル
├── observations.jsonl      # 現在のセッション観察
├── observations.archive/   # 処理済み観察
├── instincts/
│   ├── personal/           # 自動学習されたインスティンクト
│   └── inherited/          # 他の人からインポート
└── evolved/
    ├── agents/             # 生成された専門エージェント
    ├── skills/             # 生成されたスキル
    └── commands/           # 生成されたコマンド

Skill Creatorとの統合

Skill Creator GitHub Appを使用すると、両方が生成されます:

  • 従来のSKILL.mdファイル(後方互換性のため)
  • インスティンクトコレクション(v2学習システム用)

リポジトリ分析からのインスティンクトにはsource: "repo-analysis"があり、ソースリポジトリURLが含まれます。

信頼度スコアリング

信頼度は時間とともに進化します:

スコア意味動作
0.3暫定的提案されるが強制されない
0.5中程度関連する場合に適用
0.7強い適用が自動承認される
0.9ほぼ確実コア動作

信頼度が上がる場合:

  • パターンが繰り返し観察される
  • ユーザーが提案された動作を修正しない
  • 他のソースからの類似インスティンクトが一致する

信頼度が下がる場合:

  • ユーザーが明示的に動作を修正する
  • パターンが長期間観察されない
  • 矛盾する証拠が現れる

観察にスキルではなくフックを使用する理由は?

「v1はスキルに依存して観察していました。スキルは確率的で、Codexの判断に基づいて約50-80%の確率で発火します。」

フックは100%の確率で決定論的に発火します。これは次のことを意味します:

  • すべてのツール呼び出しが観察される
  • パターンが見逃されない
  • 学習が包括的

後方互換性

v2はv1と完全に互換性があります:

  • 既存の~/.codex/skills/learned/スキルは引き続き機能
  • Stopフックは引き続き実行される(ただしv2にもフィードされる)
  • 段階的な移行パス:両方を並行して実行

プライバシー

  • 観察はマシン上でローカルに保持されます
  • インスティンクト(パターン)のみをエクスポート可能
  • 実際のコードや会話内容は共有されません
  • エクスポートする内容を制御できます

関連

  • Skill Creator - リポジトリ履歴からインスティンクトを生成
  • Homunculus - v2アーキテクチャのインスピレーション(アトミック観察、信頼度スコアリング、インスティンクト進化パイプライン)
  • The Longform Guide - 継続的学習セクション

インスティンクトベースの学習:一度に1つの観察で、Codexにあなたのパターンを教える。

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Continuous Learning V2 AI skill do?

フックを介してセッションを観察し、信頼度スコアリング付きのアトミックなインスティンクトを作成し、スキル/コマンド/エージェントに進化させるインスティンクトベースの学習システム。

Why use Continuous Learning V2 on TypingMind?

Because you install it once and use it with any model. Continuous Learning V2 is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Continuous Learning V2 in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/mturac/everything-openai-codex/tree/main/docs/ja-JP/skills/continuous-learning-v2. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Continuous Learning V2?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Continuous Learning V2?

As many as you like. As long as a model supports skills, you can use Continuous Learning V2 with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Continuous Learning V2 AI skill free?

Yes. It is published on GitHub by mturac under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇