Logo di 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).

Panoramica

AutoreAnthonyAlcaraz
Repositoryagentic-graph-rag-skills
Nome della skillcontext-failure-classifier
Stelle
29
Fork
9
File inclusi
2
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • 2 file inclusi

    Script, modelli di documento e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da AnthonyAlcaraz su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Context Failure Classifier in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/AnthonyAlcaraz/agentic-graph-rag-skills/tree/main/skills/crisis/context-failure-classifier
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Nuova skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella nella cartella delle skill di quell'agente.

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
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Context Failure Classifier in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Context Failure Classifier non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Context Failure Classifier non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA 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...

Perché usare Context Failure Classifier su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Context Failure Classifier è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Context Failure Classifier in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/AnthonyAlcaraz/agentic-graph-rag-skills/tree/main/skills/crisis/context-failure-classifier. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Context Failure Classifier?

Qualsiasi modello che colleghi in TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Context Failure Classifier?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Context Failure Classifier: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Context Failure Classifier è gratuita?

Sì. È pubblicata su GitHub da AnthonyAlcaraz con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, modelli o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇