Логотип Hindsight Epistemic Classifier

Hindsight Epistemic Classifier

Спільнота
AnthonyAlcaraz
hindsight-epistemic-classifier

Classify facts into HINDSIGHT's 4 epistemic networks (Latimer et al. 2025, cited in Ch4): World (objective external facts), Experience (agent's own first-person actions), Opinion (subjective beliefs with confidence), and Observation (synthesized entity summaries). The separation enables traceability — when users ask "how do you know that", the agent can distinguish evidence from inference from summary. Use when memory must support "how do you know" questions and the agent will be asked to justify its outputs. NOT for one-shot agents (no need to justify), NOT for storage-only systems (the classification is for retrieval-time reasoning, not just persistence).

Огляд

ВидавецьAnthonyAlcaraz
Репозиторійagentic-graph-rag-skills
Назва навичкиhindsight-epistemic-classifier
Зірки
29
Форки
9
Файли в пакеті
2
ЛіцензіяMIT
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Файлів у комплекті: 2

    Скрипти, шаблони й довідкові матеріали, які модель може читати під час роботи. Файли доступні лише для читання й ніколи не виконуються.

  • Відкритий вихідний код

    Видавець на GitHub: AnthonyAlcaraz. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Hindsight Epistemic Classifier у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/AnthonyAlcaraz/agentic-graph-rag-skills/tree/main/skills/memory/hindsight-epistemic-classifier
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

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/hindsight-epistemic-classifier .claude/skills/hindsight-epistemic-classifier
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Hindsight Epistemic Classifier в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Hindsight Epistemic Classifier, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Hindsight Epistemic Classifier не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

HINDSIGHT 4-Network Epistemic Classifier

Overview

Production memory systems benefit from distinguishing what the agent observed from what it believes. HINDSIGHT (Latimer et al., 2025, cited in Ch4) organizes memory into four networks:

  • World network — objective facts about external reality. Verifiable by external sources (the production region is us-east-1, the CEO of ACME is X, the API endpoint returned 503).
  • Experience network — the agent's own first-person actions. "I called the deploy API at 22:30." "I retrieved 5 documents." First-person, timestamped, agent-as-actor.
  • Opinion network — subjective beliefs with confidence scores. "I believe the root cause is X with 0.7 confidence." Inference, not observation.
  • Observation network — synthesized entity summaries. "Sarah is the on-call lead this week" derived from the union of {Sarah's calendar, on-call rotation doc, prior incidents}. Distillation, not evidence.

Per the HINDSIGHT paper as quoted in Ch4: "developers and users can see what the agent knows versus what it believes." This skill is the classification layer that makes the distinction queryable.

When to Use

  • Audit-grade agents — when a user asks "how do you know that," the response must trace evidence to network
  • Regulated environments — opinion must be flagged as opinion, not stated as fact
  • Multi-agent systems — Agent A's opinion should not become Agent B's fact via uncritical knowledge sharing
  • Debugging hallucinations — if the agent stated X confidently, the network classification tells you whether X is evidence-grounded (World/Experience) or inference (Opinion/Observation)

Phrases: "where did the agent get this", "is this fact or inference", "justify the answer", "trust calibration", "HINDSIGHT", "epistemic status".

When NOT to Use

  • One-shot agents that need no justification trail
  • Storage-only systems (the classification is for retrieval-time reasoning, not just persistence)
  • Pure-retrieval agents that never synthesize — the Observation network is empty, the Opinion network is empty; just use World + Experience

Process

StepInputActionOutputVerification
1Raw fact text + optional metadatalib.classify(text, metadata)EpistemicClass(network, confidence)network ∈ {World, Experience, Opinion, Observation}; confidence in [0, 1]
2List of factslib.classify_batch(facts)List of EpistemicClasscounts per network match expected distribution for the source
3Memory containing classified factslib.justify(memory, query)Provenance chain: which World+Experience facts ground a given Opinion/Observationevery Opinion or Observation traces back to World or Experience
4Classified memorylib.network_audit(memory)Health report — % per network, orphan Opinions (no provenance chain), Experience without timestampsflags experience_without_timestamp_count > 0

Classification Heuristics

NetworkLinguistic signalsMetadata signals
Worlddeclarative third-person, no agent pronoun, verb tense past or present, no confidence hedgingsource != agent, external_ref present
Experiencefirst-person agent pronouns ("I called", "I retrieved"), action verbs, timestampsource == agent, action_type present
Opinionhedging ("I believe", "likely", "probably", "appears to"), explicit confidenceconfidence < 1.0, inferred_from present
Observationsynthesis language ("based on X and Y", "in summary"), multiple inputsderived_from has multiple refs

The default classifier is heuristic — production should swap in an LLM classifier with a typed-output schema at this seam.

Rationalizations

Agent rationalizationDocumented rebuttal
"All facts are facts — networks are overengineering."Then when the user asks "how do you know," the agent cannot distinguish "the API returned 503" (World, evidence) from "I believe the database was overloaded" (Opinion, inference). The trust calibration collapses.
"Just track a confidence score; networks are redundant."Confidence is a property of Opinion. World facts don't have confidence — they have provenance. Confidence-only loses the World/Experience/Opinion distinction.
"Observation can be folded into World."Observation is synthesized from World; it inherits the synthesis-step's failure modes. If you fold it into World, your "World" silently includes summarizations that may contradict raw evidence. The chapter's worked example: Sarah's role is World; "Sarah is the most reliable on-call" is Observation.
"I'll skip Experience because the agent always logs its actions."Logging is not classification. Experience is the network that answers "what did I do" vs "what happened in the world." If your logs are merged into World, you've conflated agent-action with external-event.

Red Flags

  • Opinion network is empty. Either the agent never reasons (unusual) or opinions are being misclassified as World (more likely; check hedging-language detection).
  • Experience network has no timestamps. Replay / forensic reconstruction is broken — fix at lib boundary.
  • Observation network references nothing. The provenance chain is broken; observations should reference the World/Experience facts they synthesize from.
  • World network has confidence < 1.0 entries. World is supposed to be evidence; if it has confidence, it's Opinion misclassified.

Non-Negotiable Verification

  1. Run the benchmark battery. python cli.py benchmark must report:
    • all 4 networks distinguishable from typical training-data examples
    • classify_batch produces deterministic output
    • justify returns a non-empty provenance chain for Opinion/Observation
  2. Verify CLI help. Exits 0, prints SKILL.md description.

Security Posture

  • Prompt injection. Fact text is untrusted input classified against fixed signals - never executed. The attack shape is epistemic masquerade: adversarial phrasing that dresses an opinion as an objective World fact so downstream agents over-trust it. The provenance chain from justify is the cross-check; use it.
  • Data exfiltration. No network calls, no file writes. Facts and their provenance chains may reference sensitive sources; they surface only in the stdout report the caller owns.
  • Privilege escalation. No shell invocation, no eval, no dynamic import. Network labels are trust metadata: silently promoting Opinion/Observation to World is the escalation to guard against - the label is advisory and grants no evidentiary standing by itself.

Source Attribution

Distilled from Agentic GraphRAG (O'Reilly, by Anthony Alcaraz and Sam Julien) Ch4 — Epistemic Classification subsection. Primary research: HINDSIGHT (Latimer et al., 2025).

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

Поширені запитання

Що робить навичка ШІ Hindsight Epistemic Classifier?

Classify facts into HINDSIGHT's 4 epistemic networks (Latimer et al. 2025, cited in Ch4): World (objective external facts), Experience (agent's own first-person actions), Opinion (subjective beliefs with confidence), and Observation (synthesized entity summaries). The separation enables traceability — when users ask "how do you know that", the agent can distinguish evidence from inference from summary. Use when memory must support "how do you know" questions and the agent will be asked to justify its outputs. NOT for one-shot agents (no need to justify), NOT for storage-only systems (the cl...

Навіщо використовувати Hindsight Epistemic Classifier у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Hindsight Epistemic Classifier — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Hindsight Epistemic Classifier у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/AnthonyAlcaraz/agentic-graph-rag-skills/tree/main/skills/memory/hindsight-epistemic-classifier. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Hindsight Epistemic Classifier?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Hindsight Epistemic Classifier?

Зі скількома забажаєте. У TypingMind ви можете використовувати Hindsight Epistemic Classifier із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Hindsight Epistemic Classifier?

Так. На GitHub цю навичку публікує AnthonyAlcaraz за ліцензією MIT. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі
Логотип openclaw

Gitcrawl

openclaw
ОрганізаціяПопулярне

Архів GitHub: пошук завдань і PR, актуальність синхронізації, групи дублікатів, поточна передача справ у GitHub і робота з репозиторіями Gitcrawl.

82.2K
391K
Файлів: 1
Відкрити
Логотип openclaw

Graincrawl

openclaw
ОрганізаціяПопулярне

Архів Granola: пошук, актуальність синхронізації, нотатки, транскрипти, панелі, підрахунки SQL і робота з репозиторіями Graincrawl.

82.2K
391K
Файлів: 1
Відкрити
Логотип openclaw

Openclaw Changelog Update

openclaw
ОрганізаціяПопулярне

Повторно створюйте розділи журналу змін релізу OpenClaw на основі історії git перед випусками beta, stable або extended-stable.

82.2K
391K
Файлів: 1
Відкрити
Логотип openclaw

Openclaw Ci Limits

openclaw
ОрганізаціяПопулярне

Керуйте GitHub Actions для OpenClaw і пропускною здатністю CI у Blacksmith, бюджетами реєстрації раннерів, обмеженнями fanout, одночасним запуском лише одного завдання для кожного push у main, розміром шард, перенесенням завдань на хостовані раннери, станом черги та безпечним…

82.2K
391K
Файлів: 1
Відкрити

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇