reinforce

A command for rating a stored memory as useful, unrelated, or outdated. A memory is saved context that an agent may use in later work.

In plain words
What is it for?
Use it after recalling a memory to mark its relevance, add a reason, or reset its decay date when it is useful.
Why use it?
It records feedback so useful memories can remain active and incorrect or old ones can be routed for review.

Command

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.

agentmods
npx agentmods add commands/proticom/gnosys/reinforce
Clone the repo
git clone --depth 1 https://github.com/proticom/gnosys
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 360 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.00360
Opus 5 $0.00000 $0.00180
Sonnet 5 $0.00000 $0.00072
Haiku 4.5 $0.00000 $0.00036

Measured 3d ago against content hash 52234304033c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

reinforce 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 3d 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.

docs/commands/reinforce.md · 64 lines

What it actually says

gnosys reinforce

Signal whether a memory was useful, not relevant, or outdated.

Usage

gnosys reinforce mem-001 --signal useful
gnosys reinforce mem-001 --signal not_relevant --context "wrong project"
gnosys reinforce mem-001 --signal outdated

Arguments

Argument Description
memoryId Memory ID to reinforce

Options

Option Description
--signal <signal> Required signal: useful, not_relevant, or outdated
--context <context> Optional reason/context for the signal

Behavior

  1. Resolves writable store via getResolver().getWriteTarget().
  2. Exits with No writable store found. when no write target exists.
  3. Appends a JSON line to .config/reinforcement.log under the store path.
  4. When --signal useful, updates the memory modified date via syncUpdateToDb (decay reset).
  5. Prints a signal-specific confirmation message.

Output

Memory mem-001 reinforced. Decay clock reset.

Other signals:

Routing feedback logged for mem-001. Memory unchanged.
Memory mem-001 flagged for review as outdated.

Unknown signals use the fallback output:

Signal 'custom' logged for mem-001.

Validation

cd gnosys-public
npm run cli -- reinforce --help
  • gnosys update — edit memory content or metadata directly.
  • gnosys stale — find memories not touched recently.
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. 3d ago First seen · 64 lines · 0 tokens per session scan A 52234304033c

Subscribe to this mod's changes

reinforce is a command published in the GitHub repository proticom/gnosys (4 stars, last pushed 16d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 360 tokens. 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-31.