Logo vun Context Failure Classifier

Context Failure Classifier

Communautéit
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).

Iwwersiicht

EditeurAnthonyAlcaraz
Repositoryagentic-graph-rag-skills
Skill-Nummcontext-failure-classifier
Stären
29
Forks
9
Matgeliwwert Fichieren
2
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 2 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum AnthonyAlcaraz op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Context Failure Classifier an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/AnthonyAlcaraz/agentic-graph-rag-skills/tree/main/skills/crisis/context-failure-classifier
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

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
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Context Failure Classifier an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Context Failure Classifier automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Context Failure Classifier net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de 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...

Firwat Context Failure Classifier op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Context Failure Classifier besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Context Failure Classifier an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/AnthonyAlcaraz/agentic-graph-rag-skills/tree/main/skills/crisis/context-failure-classifier an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Context Failure Classifier benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Context Failure Classifier benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Context Failure Classifier domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Context Failure Classifier gratis?

Jo. De Skill gëtt vum AnthonyAlcaraz ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇