view

A command that opens a local browser dashboard showing a project’s fractal tree, a visual map of its structure, with updates while the tree changes.

In plain words
What is it for?
Use it to open the fractal viewer for the current project. It starts a live local viewer when available and otherwise opens a static version.
Why use it?
It gives you a visual way to inspect the project’s generated tree instead of relying only on files or terminal output.

Command

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 commands/rmolines/fractal-loop/view
Clone the repo
git clone --depth 1 https://github.com/rmolines/fractal-loop
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 429 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00014 $0.00429
Opus 5 $0.00007 $0.00215
Sonnet 5 $0.00003 $0.00086
Haiku 4.5 $0.00001 $0.00043

Measured yesterday against content hash 7ef6455874c7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

view 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 yesterday.

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.

commands/view.md · 18 lines

What it actually says

Open the fractal viewer for the current project. Prefers the real-time bun server (with WebSocket live-reload) when available, falls back to the static HTML viewer.

First check if .fractal/ exists. If not, tell the user: "Nenhuma árvore fractal neste projeto. Use /fractal:run para começar."

Then launch the viewer:

REPO_ROOT=$(git rev-parse --show-toplevel 2>/dev/null || pwd) && SERVER_TS=$(ls -d ~/.claude/plugins/cache/fractal/fractal/*/server/server.ts 2>/dev/null | tail -1) && if [ -n "$SERVER_TS" ] && command -v bun &>/dev/null; then if lsof -i :3333 &>/dev/null 2>&1; then echo "Server already running on port 3333"; else FRACTAL_REPO="$REPO_ROOT" nohup bun run "$SERVER_TS" >/dev/null 2>&1 & sleep 1 && echo "Server started on port 3333"; fi; open "http://localhost:3333" 2>/dev/null || xdg-open "http://localhost:3333" 2>/dev/null || echo "Open http://localhost:3333 in your browser"; else FRACTAL_PLUGIN=$(ls -d ~/.claude/plugins/cache/fractal/fractal/*/view.sh 2>/dev/null | tail -1); [ -n "$FRACTAL_PLUGIN" ] && bash "$FRACTAL_PLUGIN" "$REPO_ROOT" || echo "No viewer available. Install bun for the real-time viewer."; fi

If the real-time server started, tell the user: "Viewer real-time rodando em localhost:3333. Mudanças em .fractal/ atualizam o browser automaticamente via WebSocket."

If it fell back to the static viewer, tell the user it opened the static HTML and suggest installing bun for the real-time experience.

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. yesterday First seen · 18 lines · 14 tokens per session scan A 7ef6455874c7

Subscribe to this mod's changes

view is a command published in the GitHub repository rmolines/fractal-loop (13 stars, last pushed 5mo ago), licensed MIT. It adds 14 tokens to every session and 429 once invoked, about $0.0001 per session on Opus 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-31.