Logo von Context Failure Classifier

Context Failure Classifier

Community
AnthonyAlcaraz
context-failure-classifier

Classify an observed agent symptom into Ch1's context-failure taxonomy. Given a sentence describing what an agent did wrong, name the agent-level failure mode (action blindness / memory fragmentation / planning paralysis / context drift / tool chaos), the architectural root cause among the five fatal flaws, and the curing graph capability. Batch mode aggregates a post-mortem's symptoms into a prioritized cure list, surfacing Ch1's cascade point — that the failure modes reinforce one another. Use to triage why an enterprise agent is failing and decide what to build next. NOT for general bug triage (it only knows retrieval/context failures), NOT for model-quality issues (Ch1: the flaws are architectural, not the model).

Übersicht

HerausgeberAnthonyAlcaraz
Repositoryagentic-graph-rag-skills
Skill-Namecontext-failure-classifier
Sterne
29
Forks
9
Mitgelieferte Dateien
2
LizenzMIT
Links
  • Anweisungen in Markdown

    Eine SKILL.md-Datei, die das Modell bei Bedarf lädt. So werden nur dann Token verbraucht, wenn eine Anfrage tatsächlich dazu passt.

  • Funktioniert mit jedem LLM

    KI-Skills bestehen aus reinem Markdown, nicht aus anbieterspezifischem Code. Daher funktionieren sie mit GPT, Claude, Gemini, Grok oder einem lokalen Modell.

  • 2 mitgelieferte Dateien

    Skripte, Vorlagen und Referenzmaterial, die das Modell bei der Arbeit lesen kann. Die Dateien sind schreibgeschützt und werden niemals ausgeführt.

  • Open Source

    Von AnthonyAlcaraz auf GitHub veröffentlicht. Prüfen Sie den Quellinhalt vor der Installation.

Installation

Installieren Sie den KI-Skill Context Failure Classifier in TypingMind, um ihn mit jedem LLM zu nutzen, oder fügen Sie ihn einem anderen Agenten hinzu, der SKILL.md lesen kann.

1

In TypingMind installieren

TypingMind installiert einen Skill direkt aus seinem GitHub-Ordner — liest SKILL.md, bündelt die Ressourcendateien und speichert das Ergebnis lokal.

  1. Öffnen Sie die App und gehen Sie zu Plugins → Skills.
  2. Wählen Sie „Von GitHub installieren“.
  3. Fügen Sie die unten angegebene URL des Skill-Ordners ein und bestätigen Sie.
    https://github.com/AnthonyAlcaraz/agentic-graph-rag-skills/tree/main/skills/crisis/context-failure-classifier
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill anlegen → Über GitHub-URL. Fügen Sie dann die Ordner-URL ein und klicken Sie auf „Weiter“.
2

In einem anderen Agenten installieren

Jeder Agent, der das Agent-Skills-Format lesen kann, kann diesen Skill nutzen — kopieren Sie den Ordner in das Skill-Verzeichnis des jeweiligen Agenten.

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/crisis/context-failure-classifier .claude/skills/context-failure-classifier
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Context Failure Classifier in einem beliebigen Chat in TypingMind. Den Rest übernimmt das Modell. Name und Beschreibung des Skills stehen im System-Prompt. Sobald eine Anfrage passt, lädt das Modell selbstständig die vollständigen Anweisungen — Sie müssen den Skill nie manuell aufrufen, und er verbraucht erst Token, wenn er tatsächlich genutzt wird.

Das Modell lädt Context Failure Classifier automatisch, sobald eine passende Anfrage gestellt wird.

Funktioniert mit jedem KI-Modell

KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher ist Context Failure Classifier nicht an das Modell gebunden, für das der Skill geschrieben wurde. Installieren Sie ihn einmal in TypingMind und nutzen Sie ihn mit GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder einem selbst betriebenen lokalen Modell — alles mit Ihren eigenen API-Keys.

  • Wird nur bei Bedarf geladen

    Der System-Prompt enthält nur den Namen und die Beschreibung. Die Anweisungen werden bei der ersten passenden Anfrage geladen. Ein ungenutzter Skill verursacht daher keine Kosten.

  • Modell im laufenden Chat wechseln

    Da der Skill aus Anweisungen statt aus Code besteht, funktioniert er auch nach einem Modellwechsel — das nächste Modell liest dieselbe SKILL.md-Datei.

Skill-Anweisungen

Dies ist der Inhalt von SKILL.md, den das Modell lädt. Lesen Sie ihn vor der Installation — ein Skill besteht aus Anweisungen, denen Ihr Modell folgt.

Context-Failure-Mode Classifier

Overview

Ch1 argues the symptoms enterprises see — an agent that breaks dependencies, forgets, reverts to dead configs, can't connect facts, guesses the wrong API — are not independent bugs. They are the surface of five fatal flaws of naive vector RAG, and at the agent level each flaw "compounds into agent failure," "reinforcing others, creating a cascade of agent incompetence."

This skill maps a free-text symptom to that taxonomy. It answers three questions for each symptom:

  1. Which agent-level failure mode is this? Action blindness, memory fragmentation, planning paralysis, context drift, or tool chaos.
  2. What is the architectural root cause? One of the five fatal flaws.
  3. What cures it? The specific graph capability (entity relationships, evolving memory, temporal evolution, multi-hop reasoning, tool orchestration).

Batch mode reads a list of symptoms (e.g. a post-mortem's bullets) and returns a cure list ordered by how many symptoms each cure resolves — operationalizing Ch1's claim that closing one root flaw often relieves several symptoms because they cascade.

When to Use

  • Triaging why a deployed enterprise agent produces wrong / unsafe outputs
  • Turning a post-mortem's narrative into a prioritized architecture backlog
  • Deciding which graph capability to build first given observed failures
  • Teaching the difference between symptom (agent behavior) and root cause (architecture)

Phrases: "why did my agent break dependencies", "agent forgot context", "classify this failure", "agent reverted to old config", "agent picked the wrong tool", "what should we fix first".

When NOT to Use

  • General software bug triage — this taxonomy only covers retrieval/context failures
  • Model-quality complaints (hallucination from a weak model, refusals) — Ch1 is explicit the five flaws are architectural, not model quality
  • Latency / cost / infra incidents with no context-failure behavior

Process

StepInputActionOutputVerification
1one symptom sentencelib.classify(symptom)primary mode + root flaw + cure + candidatesmatched signals justify the chosen mode
2symptom with multiple signalslib.classify(symptom)cascade_modes populatedsecondary modes surfaced (the cascade)
3list of symptomslib.classify_batch(list)per-symptom + aggregateflaw counts sum to classified count
4aggregateread prioritized_curescures ordered by symptom coveragetop cure resolves the most symptoms

Rationalizations

Agent rationalizationDocumented rebuttal
"These are five separate bugs, fix them one at a time."Ch1: "Each failure mode reinforces others, creating a cascade of agent incompetence." The classifier surfaces cascade_modes so you fix the shared root flaw, not five symptoms.
"The agent hallucinated; we need a better model."Ch1: the flaws "cannot be addressed by optimizing search or tweaking embedding models." If the symptom matches the taxonomy, the cure is a graph capability, not a model upgrade.
"It picked the wrong tool because the prompt was bad."Anthropic's failure mode (Ch1, tool chaos): bloated tool sets where "a human engineer can't definitively say which tool should be used." That is tool_chaos, cured by tool orchestration, not by prompt polishing.
"Just retrieve more chunks and it'll connect the facts."Planning paralysis comes from the associativity gap — transitive relationships "simply don't exist in isolated embeddings" (Ch1, the associativity gap). More chunks don't create the missing edges.

Red Flags

  • A real context-failure symptom returns unclassified. Re-state it in behavioral terms (what the agent did), not infrastructure terms; the classifier keys on observed behavior.
  • Everything classifies as one mode. Either the symptoms genuinely share a root flaw (legitimate, check the cascade), or the symptom text is too generic to discriminate — add the specific wrong behavior.
  • Cure list recommends building all five capabilities at once. Ch1's cascade point means start with the highest-coverage cure; building all five before validating one is the "three-car garage" anti-pattern.

Non-Negotiable Verification

  1. Run the benchmark battery. python cli.py benchmark must report:
    • each of the five modes classifies from its distinctive signal
    • each primary carries the correct root-flaw and cure mapping
    • an irrelevant symptom is reported unclassified, not forced
    • batch mode aggregates flaw counts and orders cures by coverage
    • every taxonomy mode maps to a known fatal flaw
  2. Verify CLI help. python cli.py --help exits 0 and prints the SKILL.md description.

Security Posture

  • Prompt injection. Symptom sentences are untrusted free text (often pasted from post-mortems). The classifier only tokenizes them against a fixed signal vocabulary and returns taxonomy labels; instructions embedded in a symptom are never executed and can at most mis-classify that one symptom.
  • Data exfiltration. No network calls, no file writes. Post-mortem text may contain incident details; it stays in-process and appears only in the stdout report the caller owns.
  • Privilege escalation. No shell invocation, no eval, no dynamic import. The cure list is advisory text - it grants nothing; the humans who read the prioritized backlog decide what gets built.

Source Attribution

Distilled from Agentic GraphRAG (O'Reilly) by Anthony Alcaraz and Sam Julien — Ch1: The Crisis of Agentic AI, specifically the five-fatal-flaws opening and the "Consequences for vector-based agents" section (action blindness / memory fragmentation / planning paralysis / context drift, and the cascade that reinforces them). Tool-chaos failure mode anchored in Anthropic's "Effective Context Engineering for Agents"; local-vs-global query failure in Microsoft's "From Local to Global: A GraphRAG Approach."

Mitgelieferte Dateien

Das Modell liest diese Dateien bei Bedarf, während der Skill geladen ist. Sie werden als lesbare Dateien bereitgestellt und niemals ausgeführt.

Häufig gestellte Fragen

Was macht der KI-Skill Context Failure Classifier?

Classify an observed agent symptom into Ch1's context-failure taxonomy. Given a sentence describing what an agent did wrong, name the agent-level failure mode (action blindness / memory fragmentation / planning paralysis / context drift / tool chaos), the architectural root cause among the five fatal flaws, and the curing graph capability. Batch mode aggregates a post-mortem's symptoms into a prioritized cure list, surfacing Ch1's cascade point — that the failure modes reinforce one another. Use to triage why an enterprise agent is failing and decide what to build next. NOT for general bug...

Warum Context Failure Classifier in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Context Failure Classifier besteht aus reinem Markdown statt aus anbieterspezifischem Code. So funktioniert derselbe Skill mit GPT-5, Claude, Gemini, Grok oder einem lokalen Modell – und Sie können das Modell mitten im Chat wechseln, ohne dass der Skill seine Funktion verliert. TypingMind verwendet Ihre eigenen API-Schlüssel. Sie bezahlen die Anbieter daher direkt statt über ein Abonnement pro Nutzerplatz, und Ihre Skills und Chats bleiben in Ihrem eigenen Speicher.

Wie installiere ich Context Failure Classifier in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/AnthonyAlcaraz/agentic-graph-rag-skills/tree/main/skills/crisis/context-failure-classifier ein. TypingMind liest die Datei SKILL.md, bündelt die zugehörigen Dateien und installiert alles als Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können Context Failure Classifier nutzen?

Jedes Modell, das Sie in TypingMind verbinden. KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher können GPT, Claude, Gemini, Grok und lokale Modelle diesen Skill laden, wenn eine Anfrage dazu passt.

Wie viele KI-Modelle kann ich mit Context Failure Classifier verwenden?

So viele Sie möchten. Solange ein Modell Skills unterstützt, können Sie Context Failure Classifier damit verwenden – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama und weitere – alles in TypingMind mit Ihren eigenen API-Schlüsseln.

Ist der KI-Skill Context Failure Classifier kostenlos?

Ja. Der Skill wird von AnthonyAlcaraz auf GitHub unter der Lizenz MIT veröffentlicht. Sie bezahlen nur Ihren eigenen KI-Anbieter für die verwendeten Token.

Was sind KI-Skills?

Ein KI-Skill ist ein wiederverwendbares Anweisungspaket, das einem KI-Modell vermittelt, wie es eine bestimmte Aufgabe erledigt. Es folgt dem offenen Format Agent Skills: eine Datei namens SKILL.md mit einem Namen und einer Beschreibung sowie allen Skripten, Vorlagen oder Referenzdateien, die das Modell möglicherweise benötigt. Das Modell liest die Anweisungen nur, wenn Ihre Anfrage zum Skill passt. Ein installierter Skill verursacht daher erst Kosten, wenn er verwendet wird.

Wie unterscheiden sich KI-Skills von Plugins oder MCP-Servern?

Ein Plugin oder MCP-Server stellt einem Modell neue aufrufbare Tools bereit – Code, der auf einem System ausgeführt wird und ein Ergebnis zurückgibt. Ein KI-Skill vermittelt dem Modell stattdessen Wissen und Vorgehensweisen: wie es eine Aufgabe angeht, welche Schritte es befolgt und wie eine gute Ausgabe aussieht. Skills bestehen aus reinem Markdown und benötigen daher weder Server noch API-Schlüssel oder Laufzeitumgebung. Sie funktionieren mit jedem Modell.

Alle

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇