cognitive-update

cognitive-update is a skill for Claude Code from wrg32786/aigent-os. It costs 40 tokens per session (824 once invoked), scanned A, original, MIT.

A cautious procedure for updating an agent’s saved goals, beliefs, self-description, and operating procedures from explicit or well-supported evidence.

In plain words
What is it for?
Use it during system checks or other reviews that need to record confirmed changes in the agent’s long-term state.
Why use it?
It prevents one unverified statement from permanently changing the agent’s stored memory or behaviour.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: agent in frontmatter.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is node daemons/nightly-contracts.mjs snapshot --root <aigent-root> \.

Good fit Use it during system checks or other reviews that need to record confirmed changes in the agent’s long-term state.

Compare 6 skills from other repositories ↓
Install

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.

Clone the repo
git clone --depth 1 https://github.com/wrg32786/aigent-os
agentmods
npx agentmods add skills/wrg32786/aigent-os/cognitive-update

Made for: Claude Code.

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 cognitive-update

README.md
[![agentmods](https://agentmods.dev/badge/skills/wrg32786/aigent-os/cognitive-update.svg)](https://agentmods.dev/skills/wrg32786/aigent-os/cognitive-update)
Your own site
<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>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 824 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 pass 7 Sept 2026
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.00040 $0.00824
Opus 5 $0.00020 $0.00412
Sonnet 5 $0.00008 $0.00165
Haiku 4.5 $0.00004 $0.00082

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

Security

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.

skills/cognitive-update/SKILL.md · 107 lines

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.json
  • vault/memory/runtime/BELIEF_STATE.jsonl (append-only)
  • vault/memory/runtime/SELF_MODEL.json
  • vault/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

Read the full file on GitHub · 107 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. 6d ago First seen · 107 lines · 40 tokens per session scan A f96eb117f5ad

Subscribe to this mod's changes

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.