event-log-and-reducer

event-log-and-reducer is a skill for Claude Code from kitchen-engineer42/joharnessburg. It costs 56 tokens per session (3,129 once invoked), scanned A, original, MIT.

A coordination pattern for many software agents working on the same project. Each agent writes its own append-only event file, and a reducer combines those files into one canonical state.

In plain words
What is it for?
Use it to collect parallel work, preserve an audit trail, retry safely, and build reliable shared state from many smaller work units.
Why use it?
It avoids several agents trying to edit one shared file at the same time, which can cause locks, conflicts, or lost changes. Rebuilding the state produces the same result when given the same events.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: mentions subagents; mentions Claude Code.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the john plugin — 28 skills, 5 commands, 5 agents, 3 hooks shipped together

Good fit Use it to collect parallel work, preserve an audit trail, retry safely, and build reliable shared state from many smaller work units.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add kitchen-engineer42/joharnessburg
Claude Code
/plugin install john

Made for: Claude Code.

Or install john, the plugin that ships this one along with the rest of its 28 skills, 5 commands, 5 agents, 3 hooks.

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 event-log-and-reducer

README.md
[![agentmods](https://agentmods.dev/badge/skills/kitchen-engineer42/joharnessburg/event-log-and-reducer/github.svg)](https://agentmods.dev/skills/kitchen-engineer42/joharnessburg/event-log-and-reducer)
Your own site
<a href="https://agentmods.dev/skills/kitchen-engineer42/joharnessburg/event-log-and-reducer"><img src="https://agentmods.dev/badge/skills/kitchen-engineer42/joharnessburg/event-log-and-reducer/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 event-log-and-reducer

Your own site · 80×15
<a href="https://agentmods.dev/skills/kitchen-engineer42/joharnessburg/event-log-and-reducer"><img src="https://agentmods.dev/badge/skills/kitchen-engineer42/joharnessburg/event-log-and-reducer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,129 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.00056 $0.03129
Opus 5 $0.00028 $0.01564
Sonnet 5 $0.00011 $0.00626
Haiku 4.5 $0.00006 $0.00313

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

Security

Grade A, and why

event-log-and-reducer 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.

plugins/joharnessburg/skills/event-log-and-reducer/SKILL.md · 174 lines

How it starts

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

event-log-and-reducer

When N subagents are working in parallel on shared state, the naive approach (each subagent writes to a shared catalog file with a lock) is what KC (a sibling verification harness) learned the hard way is fragile at scale. John uses event log + reducer instead — same shape that React/Redux and event-sourced systems use, ported to filesystem.

The pattern in one diagram

Subagent A ── events/extract/chunks/A-001.json (append-only, A's own file) ─┐
Subagent B ── events/extract/chunks/B-002.json                              │
Subagent C ── events/extract/chunks/C-003.json                              ├──► reducer ──► .john/checkpoints/extract/state.json
...                                                                         │              (canonical)
Subagent N ── events/extract/chunks/N-200.json                             ─┘
  • Each subagent invokes emit_event.py; the writer assigns a unique filename and atomic envelope. Zero contention and retries never overwrite history.
  • The reducer reads all event files for a phase, in deterministic order, and produces canonical state.
  • Running the reducer twice yields the same output (idempotent).
  • Canonical state is the read source for the next phase.

Where files live

In the user's project, under <project>/.john/:

  • <project>/.john/events/<phase-name>/<work-unit-type>/<subagent-id>-<sequence>.json — events. One file per subagent emission.
  • <project>/.john/checkpoints/<phase-name>/state.json — canonical reduced state. Written by reducer.

Conventions:

  • Phase, work-unit, agent, and audit-run IDs use letters, digits, _, and -, beginning with a letter or digit.
  • Event files are JSON; canonical state is JSON. Markdown if the canonical state is human-facing.
  • Producers do not choose filenames. Pipe one JSON object through the shipped atomic writer:
printf '%s\n' '{"event_type":"chunk_complete","chunk_id":"chunk-042"}' | \
  python3 "${CLAUDE_PLUGIN_ROOT}/scripts/emit_event.py" \
    --phase extract --work-unit-id chunk-042 \
    --agent-id extractor-7 --audit-run-id run-20260709

Read the full file on GitHub · 174 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. 12d ago First seen · 174 lines · 56 tokens per session scan A b6f4bff7ba76

Subscribe to this mod's changes

event-log-and-reducer is a skill published in the GitHub repository kitchen-engineer42/joharnessburg (9 stars, last pushed 2mo ago), licensed MIT. It adds 56 tokens to every session and 3,129 once invoked, about $0.0003 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-31.

Related

Other skills, from other repositories

tackle-issue

Start-of-work triage in this monorepo. Trigger on: a GitHub issue number ("tackle issue 99", "work on #42", bare #N), pasted proposal/spec text ("investigate this", "pressure-test this", "scope this"), or picker phrasing ("tackle the next issue", "what should I work on"). Read-only investigation that tries to falsify…

gtapps/claude-code-hermit · 149 tokens

stale-proposals

Audit this repository's local proposal queue for stale entries: proposals still marked proposed, deferred, or accepted even though the work already shipped, plus old proposals whose subject has become inert. Reconcile proposals against plugin changelogs and first-parent Git history, automatically resolve only…

gtapps/claude-code-hermit · 140 tokens

add-source

Interactively add a new source to feed-sources.md with type inference, https and name-uniqueness validation, and category checking against feed-categories.md. Appends a formatted row to the Active Sources table. Invoke with /feed-hermit:add-source.

gtapps/claude-code-hermit · 56 tokens

source-scout

Gap-driven discovery of new RSS/web sources for feed-sources.md. Interactive runs WebFetch-verify candidates and auto-add them; --scheduled runs queue unverified candidates for operator review (no WebFetch, per the domain-allowlist rule). Complements source-health (removal) with discovery (addition). Invoke with…

gtapps/claude-code-hermit · 77 tokens

plan-to-tasks

Transform a plancreation planv{N}.md into a structured tasks.yaml + per-WP workpackages/.yaml using parallel Sonnet sub-agents. Use after plan-creation finishes when you need execution-friendly task structure.

QBall-Inc/the-bulwark · 50 tokens

debt-ops-add

Register a deferred decision in the tech-debt registry. Trigger by judgment, not a marker scan, whenever a future reader would ask "why this way?": an unmade decision, stub, loosened type, bypassed check, swallowed error, a default picked "for now", or a TODO/FIXME/HACK/XXX marker. Trigger immediately whenever you…

bcanfield/agentic-tech-debt · 115 tokens