ralph-log-events

ralph-log-events is a skill for Claude Code from pentoai/ml-ralph. It costs 22 tokens per session (2,662 once invoked), scanned A, original, MIT.

Event schemas for the JSON Lines log file used by ml-ralph. JSON Lines stores one JSON object per line.

In plain words
What is it for?
Use them when adding events to ml-ralph’s log.jsonl file.
Why use it?
They define the expected structure for recorded events and help keep the log consistent.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use them when adding events to ml-ralph’s log.jsonl file.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pentoai/ml-ralph/ralph-log-events
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.

Any agent
npx skills add pentoai/ml-ralph --skill ralph-log-events
Clone the repo
git clone --depth 1 https://github.com/pentoai/ml-ralph

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 ralph-log-events

README.md
[![agentmods](https://agentmods.dev/badge/skills/pentoai/ml-ralph/ralph-log-events/github.svg)](https://agentmods.dev/skills/pentoai/ml-ralph/ralph-log-events)
Your own site
<a href="https://agentmods.dev/skills/pentoai/ml-ralph/ralph-log-events"><img src="https://agentmods.dev/badge/skills/pentoai/ml-ralph/ralph-log-events/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 ralph-log-events

Your own site · 80×15
<a href="https://agentmods.dev/skills/pentoai/ml-ralph/ralph-log-events"><img src="https://agentmods.dev/badge/skills/pentoai/ml-ralph/ralph-log-events.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,662 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.00022 $0.02662
Opus 5.5 $0.00009 $0.01065
Sonnet 5.5 $0.00004 $0.00532
Haiku 4.5 $0.00002 $0.00266

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

Security

Grade A, and why

ralph-log-events 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 10d 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/skills/ralph-log-events/SKILL.md · 162 lines

How it starts

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

Ralph Log Events

Log events with bunx @pentoai/ml-ralph@<version> log <type> '<json>' (use the exact version RALPH.md shows) from the project directory (JSON on stdin with - if it contains quotes). The command validates the event against the schema for its type, appends one line to .ml-ralph/log.jsonl and adds ts and type. Invalid events are rejected with the failing field and what was expected. Never write the file any other way; never edit, only append.

The examples below show stored lines; pass everything except ts as the JSON argument.

Event Types

Phase Transitions

{"ts":"...","type":"phase","phase":"UNDERSTAND","summary":"Exploring data and researching prior work"}
{"ts":"...","type":"phase","phase":"STRATEGIZE","summary":"Evaluating 4 potential approaches"}
{"ts":"...","type":"phase","phase":"EXECUTE","summary":"Running minimal test of H-003"}
{"ts":"...","type":"phase","phase":"REFLECT","summary":"Analyzing unexpected results"}

Thinking & Mental Models

{"ts":"...","type":"thinking","subject":"Why is precision low?","thoughts":"Looking at false positives, I notice...","conclusion":"Model confuses X with Y because..."}
{"ts":"...","type":"mental_model","domain":"feature importance","belief":"Temporal features dominate","confidence":"high","evidence":["EDA analysis","H-002 ablation"]}

Research

{"ts":"...","type":"research","source":"Kaggle 1st place solution","url":"https://...","key_insights":["Feature X crucial","Avoided Y because..."],"relevance":"directly applicable"}
{"ts":"...","type":"research","source":"arXiv paper","url":"https://...","key_insights":["This loss handles imbalance better"],"relevance":"inspirational"}

Path Analysis & Hypotheses

{"ts":"...","type":"path_analysis","paths":[{"id":"A","description":"Gradient boosting","expected":"AUC ~0.78","learning_value":"high"},{"id":"B","description":"Neural net","expected":"AUC ~0.80","learning_value":"medium"}],"chosen":"A","rationale":"Best learning-to-effort ratio"}
{"ts":"...","type":"hypothesis","id":"H-001","claim":"Time features improve AUC","expected_delta":0.05,"rubrics":["Split unchanged","No post-prediction-time features"],"kill_criterion":"AUC gain below 0.01 on every seed","rationale":"EDA showed temporal patterns"}

Read the full file on GitHub · 162 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. 10d ago Changed · -5 lines 6bab0df7b84f
  2. 21d ago Changed · +40 lines 9300a034778a
  3. 2mo ago First seen · 127 lines · 22 tokens per session scan A f4f0f20b654a

Subscribe to this mod's changes

ralph-log-events is a skill published in the GitHub repository pentoai/ml-ralph (40 stars, last pushed 4d ago), licensed MIT. It adds 22 tokens to every session and 2,662 once invoked, about $0.0001 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-30.

Related

ralph-log-events compared with skills from other repositories

ralph-log-events next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ralph-log-eventspentoai/ml-ralphSkill404d agoMITA22Claude Code
first-readerShubhamsaboo/awesome-llm-appsSkill144kyesterdayApache-2.0A174Claude Code, Codex
project-graveyardShubhamsaboo/awesome-llm-appsSkill144kyesterdayApache-2.0A127Claude Code, Codex
composioComposioHQ/composioSkill31kyesterdayMITA84Claude Code, Codex
playwrightopenai/openai-agents-pythonSkill31kyesterdayMITA19Claude Code, Codex
ai-agent-tool-routingsickn33/agentic-awesome-skillsSkill49kyesterdayMITA36Claude Code
python-package-managementmicrosoft/agent-frameworkSkill15kyesterdayMITA43Claude Code, Codex