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.
npx agentmods add commands/rmolines/fractal-loop/viewgit clone --depth 1 https://github.com/rmolines/fractal-loopWhat 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.
| Model | Per session | Once 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 |
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.
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.
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.
- yesterday First seen · 18 lines · 14 tokens per session scan A 7ef6455874c7
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.
Other commands, from other repositories
browse
Opens a URL from the project in the system browser.
pm-arch
Scan project structure and generate Mermaid architecture diagrams + flowcharts under .pm/architecture/.
pm-done
Close a todo (TODO-xxx), sync completed.md, refresh overview.
pm-status
Show governance health, wizard next step, all open blocking/high todos, and pending review count. Primary daily entry.
pm-charter
Create, import, discover, approve, or skip project charter. No-arg form is an interactive wizard.
_closing
会改 .pm/ 的 /pm- 回复必须有一句中文摘要。链接只列已经存在的文件,不要指向还没生成的路径。.