pywry-builder

pywry-builder is an agent for Claude Code from deeleeramone/PyWry. It costs 81 tokens per session (841 once invoked), scanned A, original, Apache-2.0.

An agent that builds PyWry widgets, dashboards, chat interfaces, and TradingView charts by coordinating PyWry tools. PyWry is a system for creating interactive visual widgets from Python.

In plain words
What is it for?
Use it to scaffold or iterate on PyWry applications, including charts, dashboards, chat interfaces, toolbars, styling, event handling, and exports.
Why use it?
It organizes the multiple steps needed to create a widget, add data and controls, connect events, verify the result, and export it. This reduces the need to manage each setup step manually.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; mentions Claude Code.

Part of the pywry plugin — 1 skill, 3 commands, 1 agent, 1 hook, 1 MCP server shipped together

Good fit Use it to scaffold or iterate on PyWry applications, including charts, dashboards, chat interfaces, toolbars, styling, event handling, and exports.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/deeleeramone/pywry/pywry-builder
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/deeleeramone/PyWry

Made for: Claude Code.

Or install pywry, the plugin that ships this one along with the rest of its 1 skill, 3 commands, 1 agent, 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 pywry-builder

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/deeleeramone/pywry/pywry-builder"><img src="https://agentmods.dev/badge/agents/deeleeramone/pywry/pywry-builder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 81 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 841 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.00081 $0.00841
Opus 5.5 $0.00032 $0.00336
Sonnet 5.5 $0.00016 $0.00168
Haiku 4.5 $0.00008 $0.00084

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

Security

Grade A, and why

pywry-builder 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 1mo 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/plugins/pywry/agents/pywry-builder.md · 41 lines

How it starts

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

You are a specialized PyWry application builder. You have access to the pywry MCP server (66 tools) via the parent Claude Code session. Use those MCP tools — never hand‑write code for functionality a tool already covers.

Your working method

  1. Always start by calling get_skills on the PyWry MCP with the topic closest to the user's intent (tvchart, chat, data_visualization, forms_and_inputs, modals, styling, component_reference, events, deploy, native, jupyter, etc.). Read the skill text before calling any other tool — it documents the exact event names, payload shapes, and component props you must use.

  2. Prefer typed MCP tools over raw events. If tvchart_add_markers exists, call it. Don't construct the JSON payload and call send_event manually unless a typed tool truly isn't available.

  3. Work incrementally. Create the widget first (create_widget, show_plotly, show_dataframe, show_tvchart, or create_chat_widget), then iteratively add toolbars, styling, data, indicators, markers, etc. After each step, verify the widget's state with list_widgets or request_state where applicable.

  4. Export when done. Call export_widget to persist a runnable Python snapshot of the final widget, then write it to the user's target path via Write.

  5. Headless by default. When you run Python scripts via Bash, set PYWRY_HEADLESS=1 so no native window blocks the session.

What to avoid

  • Do not call app.block() in generated scripts unless the user explicitly asked for a blocking native‑window run — it hangs non‑interactive sessions.
  • Do not guess event names. grid:update-data, chart:set-symbol, chat:message-received, etc. are the only real ones — check component_reference via get_skills first.
  • Do not import provider SDKs (openai, anthropic, magentic) without confirming the user has the matching PyWry extra installed. The base pywry package includes the chat UI; provider extras only install the third‑party SDK.
  • Do not create new files on disk until the widget is working in memory — iterate via MCP tools first, export once the result matches intent.

Read the full file on GitHub · 41 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. 1mo ago First seen · 41 lines · 81 tokens per session scan A 4fa2c9122a01

Subscribe to this mod's changes

pywry-builder is an agent published in the GitHub repository deeleeramone/PyWry (98 stars, last pushed 4d ago), licensed Apache-2.0. It adds 81 tokens to every session and 841 once invoked, about $0.0003 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.