Space Widgets

A widget management tool for the currently open space. It can create, edit, inspect, move, reload, rearrange, and remove widgets and their related files.

In plain words
What is it for?
Use it to build or update widgets, inspect their content and source, adjust their position and size, reload them, or repair the layout.
Why use it?
It avoids manual editing of space layout and widget files when you need to change what is displayed.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/binary16labs/prime-silo/space-widgets
Any agent
npx skills add binary16labs/prime-silo --skill space-widgets
Clone the repo
git clone --depth 1 https://github.com/binary16labs/prime-silo

Made for: Claude Code, Codex.

Per session 16 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,479 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin 100% copy Near-identical to another mod 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 $0.00016 $0.02479
Opus 5 $0.00008 $0.01239
Sonnet 5 $0.00003 $0.00496
Haiku 4.5 $0.00002 $0.00248

Measured 3d ago against content hash 5ad6ab9eafb2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

Space Widgets scanned grade A with 1 finding 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 3d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- For external HTTP reads, use `fetch(url)` or `space.fetchExternal(url)`. Do not hardcode third-party CORS proxy services; the runtime already retries blocked origins through `/api/proxy`
Origin

This is a copy

100% identical to Space Widgets — 51 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

app/L0/_all/mod/_core/spaces/ext/skills/space-widgets/SKILL.md · 211 lines

How it starts

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

Use this skill for widget work in the current open space

storage

  • ~/spaces//space.yaml = space meta + live layout
  • ~/spaces//widgets/.yaml = widget meta + renderer
  • ~/spaces//data/ and assets/ = widget-owned files
  • ~/spaces//scripts/ = current-space shared JS modules loaded through context.import("scripts/...")

transient

  • Current Space Widgets in _____transient lists id|name|col|row|cols|rows|state|render status
  • Current Widget appears after patchWidget(), renderWidget(), or reloadWidget()
  • Current Widget is one envelope with rendered↓ for stripped live HTML and source↓ for the numbered readback

main helpers

  • listWidgets()
  • readWidget(id)
  • seeWidget(id, full=false)
  • patchWidget(id, { name?, cols?, rows?, col?, row?, metadata?, edits? })
  • renderWidget({ id, name, cols, rows, metadata?, renderer })
  • reloadWidget(id)
  • reposition(), removeWidget(...), removeWidgets(...), removeAllWidgets()
  • rearrangeWidgets(...), toggleWidgets(...), repairLayout(), rearrange(), reload(options?)

catalog and readback

  • Prefer space.current.* for widget work in the current open space
  • Current Space Widgets is the live layout summary. Use it before rediscovering ids manually
  • Use listWidgets() when you need the compact widget catalog. It returns: widgets (id|name|description)↓ example|Example|expanded, 4x3 widget
  • That catalog is plain text, not JSON. Do not expect widgets, items, or other object fields from it
  • If the user already named the target widget clearly, for example snake, tetris, or minesweeper, do not ask which widget. Read that widget directly by id or display name
  • On the next turn, read the visible id row directly, for example snake-game|Snake|... means use readWidget("snake-game")
  • Use that id for readWidget(), seeWidget(), patchWidget(), and reloadWidget(). Name is fallback only
  • readWidget() returns the numbered source directly in _____framework result↓
  • when widget YAML carries metadata, readWidget() includes a compact metadata: ... line before renderer↓
  • seeWidget() returns the current rendered widget HTML directly in _____framework result↓
  • seeWidget(id) strips script/style tags, inline handlers, class lists, ids, and data attrs by default
  • Use seeWidget(id, true) only when you explicitly need the full live innerHTML
  • Current Widget format after a write or reload↓ rendered↓

source↓ id: example name: Example cols: 4 rows: 3 renderer↓ 0 async (parent, currentSpace, context) => { 1 console.log("hello"); 2 }

  • Patch numbers come only from numbered renderer lines after renderer↓ inside source↓
  • Do not copy displayed line numbers into patch content
  • In prepared input, optional example turns may appear before live history, _user = human, _framework = runtime output, and _transient = trailing current-space widget context

staged turns

  • listWidgets(), readWidget(), and seeWidget() are discovery calls. If the next step depends on them, end the execution there
  • If Current Space Widgets or _____framework already showed the widget id you need, skip another discovery call and move to the next step
  • After readWidget() or seeWidget(), patch on the next turn, not in the same JS block
  • After patchWidget(), renderWidget(), or reloadWidget(), use the refreshed Current Widget on the next turn if another edit is needed: rendered↓ for what mounted and source↓ for the next patch
  • Start every execution block with one short sentence saying the immediate step
  • Put that sentence on its own line. Then put _javascript alone on the next line
  • Do not execute silently
  • Do not send only a staging sentence such as Checking widget source or Loading widget source. If you announce a widget read, list, patch, reload, or render step, the same message must execute it
  • After a successful patch or render that satisfies the request, stop and answer normally. Do not keep making more visual tweaks unless the user asked for another iteration or the runtime reported failure
  • After a successful patch or render, the next assistant turn should usually be the final user-facing answer. Do not output another promise line such as Updating... or Applying... without execution
  • Never answer with raw JS or a code fence after a widget error. Either send a proper execution message or a normal user-facing answer

Read the full file on GitHub · 211 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. 3d ago First seen · 211 lines · 16 tokens per session scan A 5ad6ab9eafb2

Subscribe to this mod's changes

Space Widgets is a skill published in the GitHub repository binary16labs/prime-silo (5 stars, last pushed 10d ago), licensed MIT. It adds 16 tokens to every session and 2,479 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). It is 100% identical to Space Widgets, differing in 51 lines, and is treated as a copy.