ui-spa

ui-spa is a cursor rule for Cursor from coddy-project/coddy-agent. It costs 0 tokens per session (410 once invoked), scanned A, original, MIT.

A set of rules for an embedded single-page chat interface, where the page updates without full browser reloads. It covers the thinking indicator, workspace and Git context controls, and rebuilding the embedded UI after changes.

In plain words
What is it for?
Use it when editing the chat UI’s thinking row, context chips, folder and branch controls, worktree selection, workspace state logic, or embedded-asset build process.
Why use it?
It keeps related interface elements positioned and connected consistently, while ensuring changed frontend assets are included in the Go application.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when editing the chat UI’s thinking row, context chips, folder and branch controls, worktree selection, workspace state logic, or embedded-asset build process.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/coddy-project/coddy-agent/ui-spa
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/coddy-project/coddy-agent

Made for: Cursor.

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 ui-spa

README.md
[![agentmods](https://agentmods.dev/badge/rules/coddy-project/coddy-agent/ui-spa/github.svg)](https://agentmods.dev/rules/coddy-project/coddy-agent/ui-spa)
Your own site
<a href="https://agentmods.dev/rules/coddy-project/coddy-agent/ui-spa"><img src="https://agentmods.dev/badge/rules/coddy-project/coddy-agent/ui-spa/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 ui-spa

Your own site · 80×15
<a href="https://agentmods.dev/rules/coddy-project/coddy-agent/ui-spa"><img src="https://agentmods.dev/badge/rules/coddy-project/coddy-agent/ui-spa.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 410 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.00000 $0.00410
Opus 5.5 $0.00000 $0.00164
Sonnet 5.5 $0.00000 $0.00082
Haiku 4.5 $0.00000 $0.00041

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

Security

Grade A, and why

ui-spa 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 2d 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.

.cursor/rules/ui-spa.mdc · 16 lines

What it actually says

Embedded UI (external/ui)

  • Start with DESIGN.md. Read only the relevant contract: foundations, layout, composer, transcript, settings, workspace, or components. Consult implementation notes for file ownership, state and regression tests. Update the owning spec when behavior changes.
  • Keep the SCSS cascade in src/styles.scss, shared tokens in _tokens.scss, palettes in themes/, and component styles in their surface partial. Keep simplified mode last. Use theme tokens instead of hardcoded accents.
  • Treat accessibility as behavior. Prefer native semantics, expose accurate names and state, support keyboard operation and visible focus, and verify reading order and the spoken result with a screen reader when available. Do not make non-interactive content a control just to add a discoverable action.
  • Support people with low vision: keep text legible with sufficient contrast in every theme, never communicate state by color alone, and preserve content and operation at 200% zoom and narrow reflow without clipping or forcing horizontal scrolling. Respect reduced-motion preferences.
  • Update all registered locale dictionaries together when user-facing copy changes. Keep browser geometry checks in a real browser as specified by the paired UI verification rule.
  • Format touched SPA files with Prettier (make ui-format-check verifies the tree). After changing shipped UI sources, run make build TAGS="http ui" to rebuild embedded assets.
  • Keep optimistic draft clearing reversible until the server accepts the turn. A failed send restores text and attachments and preserves the underlying error where safe.
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. 2d ago Changed · +2 lines 1c405dceb311
  2. 11d ago Changed · -62 lines 29b13ffc72d6
  3. 1mo ago Changed · +6 lines e7ad1f076b2b
  4. 1mo ago Changed 0bbbbbb732fd
  5. 1mo ago Changed · +1 lines 24b94cb89d25
  6. 1mo ago Changed · +2 lines 19faa2c16307
  7. 1mo ago Changed · +1 lines 507d7e2d2d8c
  8. 1mo ago Changed · +1 lines fc90650b6368
  9. 1mo ago Changed · +1 lines a7e4349a5d6b
  10. 1mo ago First seen · 64 lines · 0 tokens per session scan A 23468963e81f

Subscribe to this mod's changes

ui-spa is a cursor rule published in the GitHub repository coddy-project/coddy-agent (215 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 410 tokens. 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

ui-spa compared with cursor rules from other repositories

ui-spa next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ui-spacoddy-project/coddy-agentCursor rule215todayMITA0Cursor
sciclaw-papercutssciclaw/sciclawCursor rule114mo agononeA607Cursor
ponytailDietrichGebert/ponytailCursor rule202k9d agoMITA604Cursor
angular-20angular/angularCursor rule102ktodayMITA0Cursor
dev-standardapache/supersetCursor rule76ktodayApache-2.0A1,147Cursor
prefer-assertions-over-defensive-checksprisma/ormCursor rule48ktodayApache-2.0A0Codex, Cursor
prefer-direct-imports-over-module-mocksprisma/ormCursor rule48ktodayApache-2.0A0Codex, Cursor