beautiful_context

beautiful_context is a skill for Claude Code from razzant/ouroboros. It costs 19 tokens per session (597 once invoked), scanned A, original, MIT.

A local viewer for Beautiful Context JSON reports, which are files recording model requests and their results. It compares reports in a sandbox and shows matching bytes, the first difference, changed fields, and recorded token counts.

In plain words
What is it for?
Use it to compare locally exported model-request reports and investigate changes in their content or token counts.
Why use it?
It lets you inspect differences without sending the reports to a server or granting the viewer network access. The selected files remain inside the viewer and are cleared when the widget is stopped or left, subject to its launch setting.

Skill for Claude Code

Written for Claude Code: when-to-use in frontmatter.

Good fit Use it to compare locally exported model-request reports and investigate changes in their content or token counts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/razzant/ouroboros/beautiful_context
About the project

Ouroboros is a general-purpose AI agent that maintains its identity, memory, and task history across restarts while working on external projects and coordinating specialist agents. It runs as a desktop application or headless command-line tool, using configured remote APIs or a local model for inference. The catalogue skills support working with or modifying Ouroboros.

razzant/ouroboros · 1,759 stars · on GitHub · ouroboros-agent.ai

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 razzant/ouroboros --skill beautiful_context
Clone the repo
git clone --depth 1 https://github.com/razzant/ouroboros

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 beautiful_context

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/razzant/ouroboros/beautiful_context"><img src="https://agentmods.dev/badge/skills/razzant/ouroboros/beautiful_context.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 597 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.00019 $0.00597
Opus 5.5 $0.00008 $0.00239
Sonnet 5.5 $0.00004 $0.00119
Haiku 4.5 $0.00002 $0.00060

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

Security

Grade A, and why

beautiful_context 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 3d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (plugin.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/beautiful_context/SKILL.md · 71 lines

What it actually says

Beautiful Context

Optional widget for inspecting and comparing locally exported Beautiful Context model-request JSON reports. Off by default; disabling this skill removes its card from the Widgets board.

What it does

  • Opens one locally selected Beautiful Context JSON report at a time inside an opaque, bridge-free sandboxed frame (web/context-report.html).
  • Shows how many leading UTF-8 bytes match, the first differing item, changed fields, and the token counts recorded for each attempt. The selected files stay in the frame.
  • Reads no server archive, has no network permission, and registers no model tools.
  • The frame follows the host's colour scheme; an older embedded browser that does not pass it on shows the report in the device's colours.

Leaving Widgets clears the open report unless the card's launch policy is Keep running, which may retain it while you are on other pages. The card's Stop clears it at once; disabling the skill — from this window or another — removes the card when the change reaches this page, after the connection is restored if this window was offline.

Exporting a local report

Generate a report in a private terminal from a separate matching source checkout (never the running checkout), to a fresh private non-synced destination outside that checkout and outside Files. Substitute your directory and attempt ID below:

python -m ouroboros.context_attempt_reader --data-root DATA TASK_ID --attempt ATTEMPT_ID --report > "/path/to/private-directory/ATTEMPT_ID.json"

Use a shell that keeps stdout's bytes (a POSIX shell or cmd.exe) and give each attempt its own fresh file — a report belongs to one attempt. Discard failed exports. Then open the file in the Beautiful Context widget with Open local report.

Attribution

Originally authored by Egor Kosyrev (@josephsteuerjr; PR #3763, PR #4098).

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 71 lines · 19 tokens per session scan A c815dd42e1a3

Subscribe to this mod's changes

beautiful_context is a skill published in the GitHub repository razzant/ouroboros (1,759 stars, last pushed today), licensed MIT. It adds 19 tokens to every session and 597 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-12-03.

Related

beautiful_context compared with skills from other repositories

beautiful_context next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
beautiful_contextrazzant/ouroborosSkill1.8ktodayMITA19Claude Code
cuga-github-issuescuga-project/cuga-agentSkill1.2ktodayApache-2.0A101Claude Code, Codex
cuga-contributor-workflowscuga-project/cuga-agentSkill1.2ktodayApache-2.0A97Claude Code, Codex
data-analysisUpsonic/UpsonicSkill8.0k5mo agoMITA138Claude Code, Codex
web-designdrewnekota/cetusSkill15027d agoMITA80Claude Code, Codex
experiment_managementUpsonic/UpsonicSkill8.0k5mo agoMITA0Claude Code, Codex
summarizationUpsonic/UpsonicSkill8.0k5mo agoMITA144Claude Code, Codex