Khaos-Brain: Skill for Codex

.agents/skills/kb-dream-pass/SKILL.md

kb-dream-pass is a skill for Codex from liuyingxuvka/Khaos-Brain. It costs 46 tokens per session (1,108 once invoked), scanned A, original, MIT.

A repository-managed verification pass for a knowledge base, where simulations test a model's stated evidence and boundaries.

In plain words
What is it for?
Use it as the second phase of local maintenance or as an explicitly requested diagnostic in the specified knowledge-base repository.
Why use it?
It can reveal gaps in the model while keeping verification separate from permanent knowledge decisions and canonical records.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: installed under .agents/ (shared by several agents).

This is liuyingxuvka/Khaos-Brain's own configuration. It tells Codex how to work on Khaos-Brain itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Khaos-Brain configures →

Reuse

Borrowing it

Nothing to install: this file belongs to liuyingxuvka/Khaos-Brain. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/liuyingxuvka/Khaos-Brain/main/.agents/skills/kb-dream-pass/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/liuyingxuvka/Khaos-Brain

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 kb-dream-pass

README.md
[![agentmods](https://agentmods.dev/badge/skills/liuyingxuvka/khaos-brain/kb-dream-pass/github.svg)](https://agentmods.dev/skills/liuyingxuvka/khaos-brain/kb-dream-pass)
Your own site
<a href="https://agentmods.dev/skills/liuyingxuvka/khaos-brain/kb-dream-pass"><img src="https://agentmods.dev/badge/skills/liuyingxuvka/khaos-brain/kb-dream-pass/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 kb-dream-pass

Your own site · 80×15
<a href="https://agentmods.dev/skills/liuyingxuvka/khaos-brain/kb-dream-pass"><img src="https://agentmods.dev/badge/skills/liuyingxuvka/khaos-brain/kb-dream-pass.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,108 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.
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.00046 $0.01108
Opus 5 $0.00023 $0.00554
Sonnet 5 $0.00009 $0.00222
Haiku 4.5 $0.00005 $0.00111

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

Security

Grade A, and why

kb-dream-pass 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 12d 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.

.agents/skills/kb-dream-pass/SKILL.md · 46 lines

How it starts

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

KB Dream Pass

Dream is a bounded immutable model-verification producer. It pins an exact LogicGuard generation, pressures its declared support and boundaries through simulations, and sends material model-gap deltas to Sleep; it does not own durable knowledge decisions or canonical model writes.

Authority and entrypoint

Work from the repository root. Read PROJECT_SPEC.md, docs/maintenance_agent_worldview.md, docs/dream_runbook.md, and .agents/skills/local-kb-retrieve/DREAM_PROMPT.md. Current user instructions override repository defaults.

Run:

python .agents/skills/local-kb-retrieve/scripts/kb_dream.py --json

The native Dream runner owns simulations, experiments, terminal validation, and its immutable run receipt. Do not create a second experiment, maintenance, or model-write path.

Required behavior

  1. When invoked by the local composite task, require its exact parent cycle/phase identity and writer context. The normal simulation path is explicitly read-only with no canonical commit window; only a delegated global-writer token may be used for the bounded receipt/handoff commit, and Dream must not acquire a second scheduled-owner lane. An explicit diagnostic uses its own bounded run identity but still cannot become a scheduler or model publisher.
  2. Pin the exact canonical generation, model revision, root node/ArgumentBlock, and ModelMesh revision before selection. Never substitute a floating head or readable-card projection when an exact binding is missing.
  3. Build each evidence fingerprint from the pinned LogicGuard identities, canonical route, hypothesis, source identifiers and content digests, and prior applicable outcome. Run id, time, AI model name, thread id, and prompt wording must not make unchanged evidence appear new.
  4. Load prior closure outcomes before broad work. If the fingerprint is already closed and no decision-relevant evidence changed, return or reuse no_delta_closed without another experiment, history entry, candidate, observation, or handoff.
  5. Evaluate the full exact opportunity inventory, but persist at most 64 representative opportunity rows plus the exact inventory count, digest, and omitted count. Then select only a small route-deduplicated set that clears the value and executability gates. A no-op is a valid convergent result.
  6. For each selected model, plan one bounded suite covering evidence-removal, assumption-removal, rebuttal-strengthening or counterexample, boundary-pressure, cross-edge-removal, and neighbor-pin-replacement. Execute every applicable path separately. Emit one typed performed or not_applicable disposition for every declared perturbation kind; performed paths must carry their materialization/result fingerprint and skipped paths must carry a concrete reason. Each simulation is an overlay over the pinned immutable model, not a proposed canonical revision.
  7. Record design, validation plan, safety tier, rollback plan, success/failure/inconclusive criteria, tested node and edge ids, expected invariant, and bounded sandbox path before execution.
  8. Write only Dream-owned bounded runtime receipts and experiment evidence under the Dream run root. Never persist the full expanded opportunity ocean or duplicate complete source-action histories in every opportunity row.
  9. For a material result, emit one typed idempotent Sleep handoff containing exact generation/model/mesh bindings, gap kind, affected node or edge ids, evidence fingerprint, result digest, provenance, and requested disposition.
  10. Before closure, prove that the canonical generation pointer and pinned model/mesh revisions are unchanged.
  11. Never directly write or modify models, meshes, readable card projections, candidates, confidence, lifecycle status, predictive observations, or central KB history.
  12. Do not require a human to read files or select routine experiments. Keep external or irreversible actions outside Dream unless separately authorized in an active task.

Read the full file on GitHub · 46 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 12d ago First seen · 46 lines · 46 tokens per session scan A bc9d05040e40

Subscribe to this mod's changes

kb-dream-pass is a skill published in the GitHub repository liuyingxuvka/Khaos-Brain (37 stars, last pushed 1mo ago), licensed MIT. It adds 46 tokens to every session and 1,108 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-08-30.

Related

Other skills, from other repositories

knowledge-base

Skill "knowledge-base" from Pinvou/pinvou-agent, covering ima knowledge base, operations, routing rules, examples and file upload guard.

Pinvou/pinvou-agent · 0 tokens

notes

Skill "notes" from Pinvou/pinvou-agent, covering ima notes, operations, write rules, examples and response handling.

Pinvou/pinvou-agent · 0 tokens

shodh-memory

Persistent memory system for AI agents. Use this skill to remember context across conversations, recall relevant information, and build long-term knowledge. Activate when you need to store decisions, learnings, errors, or context that should persist beyond the current session.

varun29ankuS/shodh-memory · 53 tokens

vault

Search, read, write, and manage files in the Kept conversation vault. Use when the user asks about past conversations, wants to save notes, needs to find specific content, or wants to organize their vault.

egroup-labs/kept · 45 tokens

knowledge-ingestion

A skill for saving links, social posts, videos, podcasts, screenshots, PDFs, local files, or text into an Obsidian knowledge base, a personal collection of searchable notes. The ingestion tools analyse and format the material for storage.

lyc403223157-source/knowledge-inbox · 112 tokens

personal-knowledge-ingestion

A skill for saving links, videos, social posts, local files, screenshots, PDFs, or text into an Obsidian vault, a folder used for personal notes and knowledge. It uses connected knowledge tools to process and format the saved item.

lyc403223157-source/knowledge-inbox · 86 tokens