foundations-information-theory

foundations-information-theory is a skill for Codex from vasilyu1983/AI-Agents-public. It costs 43 tokens per session (8,051 once invoked), scanned A, original, MIT.

A set of information-theory concepts for measuring uncertainty, shared information, compression, and the quality of signals in data and AI systems.

In plain words
What is it for?
Use it for prompt and retrieval compression, drift detection, feature selection, search result diversity, hallucination checks, and agent message sizing.
Why use it?
It helps you decide what information to keep, detect changes in data, diagnose uncertain model outputs, and work within message or context limits.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it for prompt and retrieval compression, drift detection, feature selection, search result diversity, hallucination checks, and agent message sizing.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vasilyu1983/ai-agents-public/foundations-information-theory
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add vasilyu1983/AI-Agents-public --skill foundations-information-theory
Clone the repo
git clone --depth 1 https://github.com/vasilyu1983/AI-Agents-public

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for foundations-information-theory

README.md
[![agentmods](https://agentmods.dev/badge/skills/vasilyu1983/ai-agents-public/foundations-information-theory/github.svg)](https://agentmods.dev/skills/vasilyu1983/ai-agents-public/foundations-information-theory)
Your own site
<a href="https://agentmods.dev/skills/vasilyu1983/ai-agents-public/foundations-information-theory"><img src="https://agentmods.dev/badge/skills/vasilyu1983/ai-agents-public/foundations-information-theory/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for foundations-information-theory

Your own site · 80×15
<a href="https://agentmods.dev/skills/vasilyu1983/ai-agents-public/foundations-information-theory"><img src="https://agentmods.dev/badge/skills/vasilyu1983/ai-agents-public/foundations-information-theory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 8,051 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium analysis-evasion · line 1
    Suspicious Unicode normalization or mixed-script content
    Fix: Review the flagged content for security risks. Ensure no credentials, secrets, or sensitive data are exposed.
  • medium Excessive Agency · line 116
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00043 $0.08051
Opus 5 $0.00022 $0.04026
Sonnet 5 $0.00009 $0.01610
Haiku 4.5 $0.00004 $0.00805

Measured 8d ago against content hash 0ebb0301f1ab, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

foundations-information-theory scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

frameworks/shared-skills/skills/foundations-information-theory/SKILL.md · 313 lines

How it starts

The opening of the file, as written. The whole thing — 313 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Information Theory Foundations

When to Apply

Apply information-theory when:

  • Compressing prompts, retrieval contexts, logs, or feature sets
  • Drift detection — distribution shift from baseline (KL, JS divergence)
  • Feature selection by mutual information with target
  • Retrieval re-ranking, MMR, or diversity-aware candidate selection
  • Prompt-quality diagnosis via output-conditional entropy / Fano bound
  • Hallucination / abstention gating via semantic entropy over meaning-clustered samples (#1)
  • RL post-training diagnostics — policy-entropy collapse is the dominant failure mode in RLVR (#1)
  • Agent-to-agent message budgets and KV-cache handoff sizing, framed as a bottleneck/rate problem (#6, #8)

Skip and use simpler alternatives when:

  • Question is about causation, not information — use foundations-causal-inference
  • Single-feature linear correlation is sufficient — Pearson r is cheaper than MI for monotonic continuous data
  • Streaming data with hard latency budget — full MI/KL is too slow; use sketches or sampled approximations
  • N samples too small for stable entropy estimate (rule of thumb n > 5 × #bins per variable)
  • Problem is system-stability or feedback control — use foundations-control-theory
  • Bits/nats unit doesn't map to a business decision — risk of treating it as decoration, not signal

11 applied information-theory primitives for quantifying uncertainty, signal, and compression, backed by a formal theory map. Each primitive solves a specific measurement problem. Primitives are domain-agnostic: the same entropy calculation that budgets a context window also bounds a lossless compressor; mutual information that scores retrieval also measures feature relevance in ML.

Contents

Read the full file on GitHub · 313 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 313 lines · 43 tokens per session scan A 0ebb0301f1ab

Subscribe to this mod's changes

foundations-information-theory is a skill published in the GitHub repository vasilyu1983/AI-Agents-public (87 stars, last pushed 9d ago), licensed MIT. It adds 43 tokens to every session and 8,051 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

continuum-recipes

Copy-pasteable Continuum patterns — RAG, plan-and-execute, ReAct, multi-tenant agents, FastAPI integration, structured output, prompt-injection scanning, custom containers. Invoke when the user asks "how do I do X with Continuum" and X is a common app pattern rather than a single API question.

shyftlabs/continuum · 73 tokens

context-management

Strategies for managing AI agent context windows including optimization, summarization, retrieval-augmented generation, progressive disclosure, and pruning. Use when the user is hitting context limits, building long-running agents, implementing RAG, optimizing token usage, or designing systems that need to manage…

VersoXBT/claude-initial-setup · 66 tokens

atlas

Architect the intelligence layer for agentic systems — RAG pipelines, model selection, embeddings, evaluation, and knowledge systems. Use when the user says "atlas", "ai data", "data arc". Produces data/ML architecture blueprints.

agenisea/ai-design-engineering-cc-plugins · 51 tokens

AgentDB Performance Optimization

Optimize AgentDB performance with quantization (4-32x memory reduction), HNSW indexing (150x faster search), caching, and batch operations. Use when optimizing memory usage, improving search speed, or scaling to millions of vectors.

shyftlabs/continuum · 53 tokens

ReasoningBank with AgentDB

Implement ReasoningBank adaptive learning with AgentDB's 150x faster vector database. Includes trajectory tracking, verdict judgment, memory distillation, and pattern recognition. Use when building self-learning agents, optimizing decision-making, or implementing experience replay systems.

shyftlabs/continuum · 56 tokens

AgentDB Memory Patterns

Implement persistent memory patterns for AI agents using AgentDB. Includes session memory, long-term storage, pattern learning, and context management. Use when building stateful agents, chat systems, or intelligent assistants.

shyftlabs/continuum · 45 tokens