Letta Failure Modesのロゴ

Letta Failure Modes

コミュニティ
AnthonyAlcaraz
letta-failure-modes

Reviewer skill: diagnose an agent's memory architecture against the 8 Letta Leaderboard failure modes (Ch4). Takes a memory snapshot (or a description of the architecture) and reports which failure modes are present, with concrete evidence and recommended fixes. Use BEFORE shipping any memory implementation to production and BEFORE root-causing why a deployed agent "forgets" or "drifts." NOT a benchmark (does not produce a single accuracy number), NOT a substitute for production observability (this is a static diagnostic, not a runtime monitor).

概要

公開者AnthonyAlcaraz
リポジトリagentic-graph-rag-skills
スキル名letta-failure-modes
スター
29
フォーク
9
同梱ファイル
2
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 2個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    AnthonyAlcarazがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Letta Failure Modes」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/AnthonyAlcaraz/agentic-graph-rag-skills/tree/main/skills/memory/letta-failure-modes
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/AnthonyAlcaraz/agentic-graph-rag-skills.git /tmp/agentic-graph-rag-skills
mkdir -p .claude/skills
cp -r /tmp/agentic-graph-rag-skills/skills/memory/letta-failure-modes .claude/skills/letta-failure-modes
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでLetta Failure Modesを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にLetta Failure Modesを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Letta Failure Modesは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Letta 8-Failure-Modes Diagnostic

Overview

The Letta Leaderboard for benchmarking agentic memory names eight distinct failure modes that tend to co-occur (Ch4):

  1. No-retrieval-when-available — model fails to recognize when relevant info is already in memory; issues unnecessary searches.
  2. Hierarchy-collapse — trivia in prime memory; critical facts archived or dropped.
  3. In-conversation-misses — agent misses key pieces of info even when present in the immediate context.
  4. Volume-degradation — retrieval accuracy degrades as data volume grows; performance drops at scale.
  5. Silent-overwrite — new info overwrites old facts instead of being layered; system cannot explain how or why things changed.
  6. Cross-reference-failure — related info isolated in separate silos; no pattern recognition.
  7. Temporal-blur — event timelines blur; agent loses temporal coherence.
  8. Threshold-collapse — works at hundreds of facts, quietly collapses at thousands.

This skill takes a snapshot of an agent's memory state (or a structural description) and reports which of these 8 are present, with evidence and recommended fixes. It runs static analysis — no agent inference loop required.

When to Use

  • Pre-launch review of a new memory implementation
  • Root-cause analysis when an agent in production is "forgetting" or "drifting"
  • Periodic audit (weekly / monthly) on long-running agents
  • Code review of a colleague's memory layer

Phrases: "audit my memory architecture", "why is my agent forgetting", "is my memory production-ready", "Letta Leaderboard", "memory diagnostic".

When NOT to Use

  • Single failure mode you've already identified. If you know it's silent-overwrite, just go fix it; this skill's value is the cross-cutting audit, not the depth on one mode.
  • Runtime monitor. This is a static diagnostic. Production needs metrics + alerts, not periodic full-audit invocation.
  • Benchmark/eval. This does not produce a comparable accuracy number. For Letta Leaderboard scoring, run the actual benchmark suite.

Process

StepInputActionOutputVerification
1Memory snapshot dict OR architecture description JSONlib.diagnose(snapshot)DiagnosticReport with 8 entries (one per failure mode)report covers all 8 modes; each entry has status ∈ {ok, warning, present}; severity score 0-3
2Reportlib.format_text(report)Human-readable diagnosticevery "present" mode includes evidence + fix recommendation
3Reportlib.format_json(report)machine-readable JSONround-trip serializable
4Reportlib.total_score(report)int 0-24 (sum of severities)0 = production-ready; ≥10 = ship at risk; ≥18 = do not ship
5Scenario namecli.py scenario broken-vs-cleanshowcase that EXERCISES all 8 modes: an anti-pattern snapshot triggers all 8 (present) and a clean composed snapshot triggers 0broken reports 8 present, clean reports 0

Diagnostic Heuristics (per failure mode)

ModeStatic signalThreshold
No-retrieval-when-availablerecall layer is empty or query log not preservedrecall.size == 0 with mature memory
Hierarchy-collapse>50% short-lived facts in core OR durable facts > 50% in archival vs core(composes with hierarchical-memory.diagnostics)
In-conversation-missesextract_fn not wired up — interactions logged but no facts promotedrecall.size > 5 AND core.size == 0
Volume-degradationretrieval method is linear-scan with no indexflagged via architecture description tag
Silent-overwriteedges have no valid_until mechanism / no invalidation_reasonflagged if bi-temporal-edge primitive is absent
Cross-reference-failureaverage node degree < 1 OR graph is a forest with many disconnected componentscomponents > nodes/10
Temporal-blurtimestamps not preserved on edges / factsfacts without created_at
Threshold-collapsecore_limit OR retrieval pipeline declared O(n) on architecture formsize-test scenario fails at 10x scale

Rationalizations

Agent rationalizationDocumented rebuttal
"My agent works fine on the demo — I'll skip the audit."Demo workloads are small. The Ch4 anchor: "Systems that work acceptably with hundreds of facts quietly collapse when exposed to thousands." Threshold-collapse is the failure mode that hides best in demos.
"I'll fix the failures as users complain."The first 7 failure modes are silent — the agent "feels" wrong without producing a single error log. You will not know which mode to fix unless you scan for them.
"I'll skip diagnostics for short-lived agents."Short-lived agents that suffer in-conversation-misses still produce wrong answers. The discipline is cheap (one call); the failure cost is incident-response time.
"I already use a hierarchical memory — that covers most of these."Letta-style hierarchy covers 1, 2, 3, and partially 8. The other 4 (silent-overwrite, cross-reference-failure, temporal-blur, volume-degradation) are orthogonal and need separate primitives (bi-temporal-edge, graphiti-incremental-update, indexed retrieval). The hierarchy alone is necessary, not sufficient.
"The diagnostic scoring is arbitrary."The 0-24 score is a forcing function. The Ch4 chapter quote — "The quality of memory management directly determines agent performance on long-running tasks" — converts to a single number that goes up when memory degrades. Track the number.

Red Flags

  • All 8 modes flagged ok. Either the diagnostic is broken (likely) or the architecture is exceptional (suspicious — verify by running a size-stress scenario).
  • silent-overwrite flagged with no bi-temporal-edge. The fix is mechanical: integrate bi-temporal-edge for the affected relationships.
  • hierarchy-collapse and volume-degradation both flagged. The memory architecture is unrescuable without a redesign; recommend switching to a structured 3-tier hierarchy (composes with hierarchical-memory).
  • temporal-blur flagged on a regulated-domain agent. Compliance blocker — fix before shipping.

Non-Negotiable Verification

  1. Run the benchmark battery. python cli.py benchmark must report:
    • all 8 failure modes detectable from a synthesized broken memory
    • no false-positives on a known-clean memory built from the other three Ch4 skills (bi-temporal-edge + hierarchical-memory + graphiti-incremental-update)
    • round-trip report serialize / deserialize
  2. Run the showcase scenario. python cli.py scenario broken-vs-clean reports 8 vs 0 failure modes respectively.
  3. Verify CLI help. python cli.py --help exits 0 and prints SKILL.md.

Security Posture

  • Prompt injection. Memory snapshots and architecture descriptions are untrusted input analyzed statically - nothing in them is executed. The risk is a crafted snapshot that hides its failure modes to earn a false clean report; diagnose real exported state, not a hand-written summary.
  • Data exfiltration. Snapshots contain actual memory content (facts, conversation traces). No network calls, no file writes; the diagnostic report goes to stdout and the caller owns where it flows.
  • Privilege escalation. No shell invocation, no eval, no dynamic import. A zero-failure-mode report is advisory - it is a static diagnostic, not a production go-ahead, and does not replace runtime observability.

Source Attribution

Distilled from Agentic GraphRAG (O'Reilly, by Anthony Alcaraz and Sam Julien), Chapter 4 — The Problem section (Letta Leaderboard 8 failure modes). Composes with sibling Ch4 skills: bi-temporal-edge / hierarchical-memory / graphiti-incremental-update.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Letta Failure Modes」では何ができますか?

Reviewer skill: diagnose an agent's memory architecture against the 8 Letta Leaderboard failure modes (Ch4). Takes a memory snapshot (or a description of the architecture) and reports which failure modes are present, with concrete evidence and recommended fixes. Use BEFORE shipping any memory implementation to production and BEFORE root-causing why a deployed agent "forgets" or "drifts." NOT a benchmark (does not produce a single accuracy number), NOT a substitute for production observability (this is a static diagnostic, not a runtime monitor).

TypingMindでLetta Failure Modesを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Letta Failure Modesはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにLetta Failure Modesをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/AnthonyAlcaraz/agentic-graph-rag-skills/tree/main/skills/memory/letta-failure-modesを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Letta Failure Modesを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Letta Failure Modesで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもLetta Failure Modesを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Letta Failure Modes」は無料ですか?

はい。AnthonyAlcarazがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇