events

events is a skill for Claude Code, Codex from deeleeramone/PyWry. It costs 34 tokens per session (1,388 once invoked), scanned A, original, Apache-2.0.

Reference documentation for the PyWry event system, the message mechanism connecting widgets, components, Python code, and the agent. Events use names such as `namespace:event-name`, and widget IDs identify top-level interface areas.

In plain words
What is it for?
Use it when sending events, requesting component state, handling user messages, exchanging chart data, or interpreting results from PyWry tools.
Why use it?
It explains how requests and responses move through the interface and helps prevent invalid event names or confusion between widget and component identifiers.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when sending events, requesting component state, handling user messages, exchanging chart data, or interpreting results from PyWry tools.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/deeleeramone/pywry/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 deeleeramone/PyWry --skill events
Clone the repo
git clone --depth 1 https://github.com/deeleeramone/PyWry

Made for: Claude Code, Codex.

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 events

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/deeleeramone/pywry/events"><img src="https://agentmods.dev/badge/skills/deeleeramone/pywry/events.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,388 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00034 $0.01388
Opus 5.5 $0.00014 $0.00555
Sonnet 5.5 $0.00007 $0.00278
Haiku 4.5 $0.00003 $0.00139

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

Security

Grade A, and why

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 3mo 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.

pywry/pywry/mcp/skills/events/SKILL.md · 152 lines

How it starts

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

PyWry Event System — Agent Reference

The event bus is the plumbing underneath every MCP tool. You rarely need to think about it — the typed tools wrap emit + wait + state-poll for you — but when you reach for send_event or interpret tool results, this is how it works.

Event names are namespaced

Every event has the form namespace:event-name, e.g.:

  • tvchart:symbol-search — ask the chart to open symbol search
  • tvchart:state-response — chart's reply with its current state
  • tvchart:data-request — chart asks Python for bars
  • tvchart:data-response — Python delivers bars
  • toolbar:request-state — ask a toolbar component for its value
  • toolbar:state-response — component's reply
  • chat:user-message — user typed something
  • chat:ai-response — model produced a token
  • pywry:update-theme — dark/light mode change

Never emit an event with a name that doesn't match namespace:event-name — the framework rejects it.

Widget IDs vs component IDs

widget_id — identifies the top-level PyWry widget (a chart, a grid, a chat panel, a dashboard). Every MCP tool takes widget_id as an argument because all events route to the widget first.

componentId — identifies a child inside a widget (a specific toolbar button, a marquee ticker slot, a chart pane). Component IDs are scoped to their containing widget.

When you call send_event(widget_id, event_type, data), the widget_id picks the target widget; anything identifying a specific component goes in the data payload (typically as data.componentId or data.chartId).

Request / response pattern

Some events are fire-and-forget (e.g. tvchart:symbol-search — "please do this"). Others are request/response round-trips where the caller wants a reply (e.g. tvchart:request-state → tvchart:state-response).

The framework correlates request/response with a context token:

  1. Emitter generates a random context token.
  2. Emitter injects it into the request payload.
  3. Listener sees the request, attaches the same context to its response, and emits the response event.
  4. Emitter sees the matching context on the response and wakes up.

Read the full file on GitHub · 152 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. 3mo ago First seen · 152 lines · 34 tokens per session scan A cc5045c47ab9

Subscribe to this mod's changes

events is a skill published in the GitHub repository deeleeramone/PyWry (100 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 34 tokens to every session and 1,388 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

events compared with skills from other repositories

events next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
eventsdeeleeramone/PyWrySkill1001mo agoApache-2.0A34Claude Code, Codex
social-media-matrixnexu-io/html-anythingSkill17k3d agoApache-2.0A31Claude Code, Codex
dashboard-designmckinsey/vizroSkill3.8k5d agoApache-2.0A71Claude Code
research-stockskoala73/worldmonitorSkill91kyesterdayAGPL-3.0A41Claude Code, Codex
conflict-pulsekoala73/worldmonitorSkill91kyesterdayAGPL-3.0A63Claude Code, Codex
market-snapshotkoala73/worldmonitorSkill91kyesterdayAGPL-3.0A59Claude Code, Codex
world-briefkoala73/worldmonitorSkill91kyesterdayAGPL-3.0A50Claude Code, Codex