event-analyzer

event-analyzer is an agent for Claude Code from scaccogatto/okf-skills. It costs 52 tokens per session (1,642 once invoked), scanned A, original, MIT.

An analysis agent for examining one repository-history event, such as a Git commit or a Claude session. It extracts the concepts, reasoning, and project knowledge represented by that event.

In plain words
What is it for?
It analyzes commit diffs or session outcomes during the mapping stage of an OKF backfill.
Why use it?
It turns raw history into structured information that can be used when rebuilding an OKF knowledge bundle.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter.

Part of the okf plugin — 4 skills, 2 agents, 1 hook, 1 MCP server shipped together

Good fit It analyzes commit diffs or session outcomes during the mapping stage of an OKF backfill.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/scaccogatto/okf-skills/event-analyzer
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.

Clone the repo
git clone --depth 1 https://github.com/scaccogatto/okf-skills

Made for: Claude Code.

Or install okf, the plugin that ships this one along with the rest of its 4 skills, 2 agents, 1 hook, 1 MCP server.

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-analyzer

README.md
[![agentmods](https://agentmods.dev/badge/agents/scaccogatto/okf-skills/event-analyzer.svg)](https://agentmods.dev/agents/scaccogatto/okf-skills/event-analyzer)
Your own site
<a href="https://agentmods.dev/agents/scaccogatto/okf-skills/event-analyzer"><img src="https://agentmods.dev/badge/agents/scaccogatto/okf-skills/event-analyzer.svg" alt="Measured on agentmods" height="20"></a>
Per session 52 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,642 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.00052 $0.01642
Opus 5 $0.00026 $0.00821
Sonnet 5 $0.00010 $0.00328
Haiku 4.5 $0.00005 $0.00164

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

Security

Grade A, and why

event-analyzer 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 yesterday.

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.

agents/event-analyzer.md · 145 lines

How it starts

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

You are a semantic analyzer for repository history events. You examine one git commit or Claude session turn (or a small batch of them) and extract the domain concepts it touches, the rationale behind the change, and candidate names for OKF knowledge concepts. You are a bulk reader: you move evidence into structure. Judgment about the bundle (naming, merging, what to keep) belongs to the weaver, not to you.

Input you receive

  • One or more event ids, and events: the path of events.jsonl. Fetch each event yourself, one call per id (the orchestrator never reads event content):

    jq -c --arg id '<id>' 'select(.id==$id)' <events>
    

    Each event is a JSON object with:

    • id: unique event identifier (e.g., git:abc1234 or session:file.jsonl:42)
    • source: either git or session
    • git events: sha, subject, body, author, files (list of {path, add, del})
    • session events: user (question/prompt), outcome (assistant wrap-up), title
    • ts: ISO 8601 timestamp
  • repo: the repository root path.

  • out: the directory where you write analyses.

  • emitter: the path of the diff emitter script (okf_backfill_events.py), plus any --skip-globs the orchestrator wants applied.

How to read the evidence

  • Git commits: the subject is the claim, the diff is the evidence. Read the diff only through the emitter:

    uv run <emitter> <repo> --show <sha> [--skip-globs ...]
    

    The emitter prints the complete stat (every file, with line counts), then the patches capped per file and cut only at hunk or file boundaries, with a bracketed marker at every cut, and a fixed last line: [diff: shown=X total=Y files_shown=A files_total=B truncated=true|false].

    • Never run a raw git show <sha>: the harness would cut it blindly, mid-hunk.
    • If truncated=true and the stat points at one file whose patch you need for the rationale, you may make one follow-up call: uv run <emitter> <repo> --show <sha> --only <path>. That is the only permitted escalation; then write what you have.
  • Session turns: the user text and the outcome text are the whole semantic unit. The jq fetch is the only tool call they need; do not go looking for more.

Read the full file on GitHub · 145 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. yesterday Changed · +47 lines c88c8bfe0ccf
  2. 4d ago First seen · 98 lines · 52 tokens per session scan A 85f2bdf86a63

Subscribe to this mod's changes

event-analyzer is an agent published in the GitHub repository scaccogatto/okf-skills (373 stars, last pushed 2d ago), licensed MIT. It adds 52 tokens to every session and 1,642 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-09-03.

Related

Other agents, from other repositories

06-sycophancy-audit

Anti-sycophancy audit based on Chandra et al. (2026). Five checks for confirmation bias, decision rubber-stamping, belief spiraling, co-rumination, and contradiction tracking.

assafkip/kipi-system · 49 tokens

00-session-bootstrap

Recover state from previous session including action cards, missed debriefs, and loop escalation.

assafkip/kipi-system · 21 tokens

04-founder-brand-post

Draft a Wednesday founder brand post about building in public as an AI-native founder.

assafkip/kipi-system · 20 tokens

challenger

Frontier-grade adversarial evaluator for harness assets, papers, designs, and code. Goes beyond fixed-angle critique — adapts attack vectors to artifact type, enforces evidence citation on every attack, models its own information asymmetry (Sandboxed Adversary), and tracks convergence across rounds. Returns structured…

chrono-meta/forge-harness · 102 tokens

expert

Frontier-grade domain-authority evaluator. Checks an artifact's technical accuracy, completeness, and state-of-the-art currency against EXTERNAL authoritative sources — fetched from the open web, since a general model must ground domain claims rather than assert them. Top tier of the user-mastery spectrum (beginner →…

chrono-meta/forge-harness · 114 tokens

beginner

Frontier-grade first-contact standpoint evaluator. Simulates a zero-context user meeting an artifact for the first time — attempts the task cold rather than skimming, then reports exactly where comprehension or execution breaks. Lowest tier of the user-mastery spectrum (beginner → main-player → expert). Constructive…

chrono-meta/forge-harness · 117 tokens