Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/wrg32786/aigent-osnpx agentmods add skills/wrg32786/aigent-os/cognitive-updateWrote 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.
[](https://agentmods.dev/skills/wrg32786/aigent-os/cognitive-update)<a href="https://agentmods.dev/skills/wrg32786/aigent-os/cognitive-update"><img src="https://agentmods.dev/badge/skills/wrg32786/aigent-os/cognitive-update.svg" alt="Measured on agentmods" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00040 | $0.00824 |
| Opus 5 | $0.00020 | $0.00412 |
| Sonnet 5 | $0.00008 | $0.00165 |
| Haiku 4.5 | $0.00004 | $0.00082 |
Grade A, and why
cognitive-update 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 6d 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.
How it starts
The opening of the file, as written. The whole thing — 107 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/cognitive-update
Nightly uses this shared protocol after /system-check. It never infers a
durable state change from one agent-authored claim.
Ownership fence
This protocol may update only:
vault/memory/runtime/GOAL_STACK.jsonvault/memory/runtime/BELIEF_STATE.jsonl(append-only)vault/memory/runtime/SELF_MODEL.jsonvault/memory/runtime/PROCEDURES.jsonl(append-only)
The documented memory/ fallback is valid for minimal installations. This
protocol never writes ACTIVE_STATE.json or STATE_EVENTS.jsonl; the runtime
state daemon owns those products. It never writes Dream or measurement ledgers.
Evidence admission
Direct updates require one of:
- the operator's explicit goal, belief, or procedure statement with a durable source reference;
- a repository-owned command or test invoked with explicit arguments and a literal exit code;
- an external artifact that directly decides the claim;
- two independent observed occurrences for a recurring capability or failure.
Capsules and Session Log entries are discovery sources. They cannot verify their own confident claims. If evidence is incomplete, skip the durable update and stage an observation through the nightly evidence flow.
File rules
GOAL_STACK.json
Move, append, or update only explicit goals, blockers, next actions, and completions. Completion requires success criteria plus an external artifact or operator confirmation. Preserve unknown fields and unrelated arrays.
BELIEF_STATE.jsonl
Append only. A revision reuses the original id and includes revision_note; a
new belief receives max numeric bNNN plus one. Do not use line count. Serialize
UTF-8 JSON and parse the appended line.
SELF_MODEL.json
Update only named capability, limitation, recurring-failure, reliability-risk,
or achieved-learning-goal fields. When alias arrays coexist, update each alias
pair in lockstep or fail SELF_MODEL_ALIAS. A one-off result is not a durable
capability.
PROCEDURES.jsonl
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.
- 6d ago First seen · 107 lines · 40 tokens per session scan A f96eb117f5ad
cognitive-update is a skill published in the GitHub repository wrg32786/aigent-os (18 stars, last pushed today), licensed MIT. It adds 40 tokens to every session and 824 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-01.
Other skills, from other repositories
hive.context-preservation
Proactively extract critical values from tool results into working notes before automatic context pruning destroys them.
hive.note-taking
Maintain a free-form scratchpad of decisions, extracted values, and open questions so context pruning doesn't lose anything you still need.
memory-flush
Promote important recent log entries into MEMORY.md and prune stale ones.
Vizra ADK Memory System
Implement persistent memory, session context, and vector memory (RAG) for AI agents.
continuum-memory
Configure and use Continuum's two-tier memory system — mem0+Qdrant/Milvus for long-term facts, Redis for short-term sessions, with multi-tenant scopes (USER / AGENT / SHARED / RUN / CONVERSATION). Invoke when the user asks about "remember", "user preferences", "long-term memory", "vector search over memories"…
carryover
Use when recalling, saving or curating carryover memory, wikis, playbooks or the Obsidian vault.