Synapse: Agent for Claude Code

.claude/agents/pgdrm-kernel-forge.md

pgdrm-kernel-forge is an agent for Claude Code from JosephOIbrahim/Synapse. It costs 106 tokens per session (856 once invoked), scanned A, original, MIT.

A software agent that builds and tests a deterministic filtering function for a memory system. The function uses time-based decay, exact token matches, and vector-distance thresholds to decide whether candidates are allowed or dropped.

In plain words
What is it for?
Use it to implement the memory filter and its tests before connecting that filter to the rest of the system.
Why use it?
It lets the filtering rules be tested independently, without a database, network, host application, or language model. Hand-computed test values help reveal incorrect math.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; mentions AGENTS.md.

This is JosephOIbrahim/Synapse's own configuration. It tells Claude Code how to work on Synapse 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 Synapse configures →

Reuse

Borrowing it

Nothing to install: this file belongs to JosephOIbrahim/Synapse. 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/JosephOIbrahim/Synapse/master/.claude/agents/pgdrm-kernel-forge.md
Clone the repo
git clone --depth 1 https://github.com/JosephOIbrahim/Synapse

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 pgdrm-kernel-forge

README.md
[![agentmods](https://agentmods.dev/badge/agents/josephoibrahim/synapse/pgdrm-kernel-forge/github.svg)](https://agentmods.dev/agents/josephoibrahim/synapse/pgdrm-kernel-forge)
Your own site
<a href="https://agentmods.dev/agents/josephoibrahim/synapse/pgdrm-kernel-forge"><img src="https://agentmods.dev/badge/agents/josephoibrahim/synapse/pgdrm-kernel-forge/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 pgdrm-kernel-forge

Your own site · 80×15
<a href="https://agentmods.dev/agents/josephoibrahim/synapse/pgdrm-kernel-forge"><img src="https://agentmods.dev/badge/agents/josephoibrahim/synapse/pgdrm-kernel-forge.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 106 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 856 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.00106 $0.00856
Opus 5.5 $0.00042 $0.00342
Sonnet 5.5 $0.00021 $0.00171
Haiku 4.5 $0.00011 $0.00086

Measured 2mo ago against content hash 5aaf5e6f755c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pgdrm-kernel-forge 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 2mo 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.

.claude/agents/pgdrm-kernel-forge.md · 64 lines

How it starts

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

You are KERNEL-FORGE (M2). You build the math that needs nobody.

AGENTS.md binds you in full. harness/memory/SPEC.md is your board law.

Territory — exclusive write

python/synapse/loop/pgdrm.py (new) and its test. You do not touch python/synapse/memory/ (that is moneta-forge), and you do not touch the existing signatures in python/synapse/loop/ports.py.

The invariant that makes M2 possible

PG-DRM's filtering rule is pure. Given a candidate list, a clock reading, and a task-context token set, the ALLOW/DROP decision is a function — no store handle, no hou, no network, no LLM. So it is buildable and falsifiable today even though the port it will eventually live behind is UNAVAILABLE.

Build the function. Do not fake the wire.

Requirements

  1. Pure. No I/O, no hou, no store handle, no global clock read inside the decision function — time is a parameter. A function that reads time.time() internally cannot be tested deterministically, which is how the submitted spec's decay branch became unreachable.
  2. U = exp(-λt) decay, with the expected values in the test hand-computed and shown — never read back from your implementation, never copied from the brief. (Repo precedent: a control pinned "161" from a doc; the truth was 171.)
  3. protected_floor has exactly one meaning. The submitted spec uses it as an eviction threshold in code and describes it as a decay-protection floor in prose. Pick one, write it in the docstring, and pin it in a test that distinguishes the two readings.
  4. Exact-token contamination — deterministic set membership. No fuzzy match, no embedding call, no model.
  5. distance_threshold is implemented or it does not exist. A parameter accepted and never used is a false capability claim. If you cannot implement vector distance without a substrate, take the parameter out and say so.
  6. Every branch has a mutation that turns its test red. Name each one.

Read the full file on GitHub · 64 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. 2mo ago First seen · 64 lines · 106 tokens per session scan A 5aaf5e6f755c

Subscribe to this mod's changes

pgdrm-kernel-forge is an agent published in the GitHub repository JosephOIbrahim/Synapse (12 stars, last pushed today), licensed MIT. It adds 106 tokens to every session and 856 once invoked, about $0.0004 per session on Opus 5.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-31.

Related

Other agents, from other repositories

context-finder

Read-only, memory- and index-aware codebase search. Use for any investigation — "where is X", "how does Y work", "what calls Z", "is W still used", "where is V configured", "does this event/pattern get emitted anywhere" — BEFORE reaching for grep. Consults the code index and prior session memory first and greps last…

futuregerald/futuregerald-claude-plugin · 107 tokens

wiki-ingest

Use this agent when ingesting URLs, files, or pasted text into the vault during automated maintenance cycles. Typical triggers include dev-loop IDLE DISCOVERY ingestion, batch source processing, or converting raw captures to typed-knowledge pages. See "When to invoke" in the agent body for worked scenarios.

karlorz/llm-wiki · 64 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

.NET-Notebook-Migration-Agent

Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.

microsoft/ai-agents-for-beginners · 33 tokens

AVM Owner Triage

Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.

github/awesome-copilot · 61 tokens

Ultimate Transparent Thinking Beast Mode

Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.

github/awesome-copilot · 11 tokens