browse

browse is a command for Claude Code from Guohao1020/docs-cockpit. It costs 31 tokens per session (828 once invoked), scanned A, original, MIT.

A single-file HTML document browser with a folder tree on the side and rendered Markdown in the main area. HTML is the webpage format opened by a web browser.

In plain words
What is it for?
Browsing Markdown files from the project, Claude plans, and Claude memory; searching file paths; and opening documents from a nested sidebar.
Why use it?
It makes scattered project notes readable in one place, even when the documents do not use the metadata required by the docs-cockpit dashboard.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths; mentions CLAUDE.md.

Part of the docs-cockpit plugin — 3 skills, 5 commands, 1 hook shipped together

Good fit Browsing Markdown files from the project, Claude plans, and Claude memory; searching file paths; and opening documents from a nested sidebar.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/guohao1020/docs-cockpit/browse
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/Guohao1020/docs-cockpit

Made for: Claude Code.

Or install docs-cockpit, the plugin that ships this one along with the rest of its 3 skills, 5 commands, 1 hook.

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 browse

README.md
[![agentmods](https://agentmods.dev/badge/commands/guohao1020/docs-cockpit/browse/github.svg)](https://agentmods.dev/commands/guohao1020/docs-cockpit/browse)
Your own site
<a href="https://agentmods.dev/commands/guohao1020/docs-cockpit/browse"><img src="https://agentmods.dev/badge/commands/guohao1020/docs-cockpit/browse/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 browse

Your own site · 80×15
<a href="https://agentmods.dev/commands/guohao1020/docs-cockpit/browse"><img src="https://agentmods.dev/badge/commands/guohao1020/docs-cockpit/browse.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 828 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.00031 $0.00828
Opus 5 $0.00015 $0.00414
Sonnet 5 $0.00006 $0.00166
Haiku 4.5 $0.00003 $0.00083

Measured 8d ago against content hash d0deebd9bbb3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

browse 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 8d 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.

commands/browse.md · 64 lines

How it starts

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

Explicit invocation of docs-cockpit browse — for when the user just wants to read the project's scattered MDs in a tree-organized browser, not see a dashboard.

When to use

  • User says: "我想浏览这个项目的所有文档 / give me an MD reader for this project / 把所有 md 汇总到一个 html 里"
  • User wants a sidebar-tree view of docs/adrs/, docs/plans/, etc.
  • The project's docs don't have frontmatter (so docs-cockpit render dashboard is empty) but user still wants something readable
  • User also wants their ~/.claude/plans/<project>/ notes accessible from the same HTML

What it does

  1. Scans MDs in:
    • Project root top-level *.md (README, CLAUDE.md, CHANGELOG, etc.)
    • <project>/docs/ recursively
    • ~/.claude/plans/<project-name>/ (if exists; skip with --no-claude)
    • ~/.claude/projects/<sanitized-cwd>/memory/ (if exists)
  2. Groups files into "roots" by source (project / claude-plans / claude-memory)
  3. Embeds content as JSON in a single HTML file with:
    • Sidebar: nested file tree per root, foldable, with file counts
    • Main: marked.js + highlight.js renders the clicked MD
    • Search: filters file paths (Ctrl+K / / to focus)
    • localStorage: remembers last-viewed file + which folders are expanded

Usage

# Default · scan project + ~/.claude
docs-cockpit browse

# Specific directory only
docs-cockpit browse --dir docs/adrs --output docs/adrs.html

# Skip ~/.claude scanning
docs-cockpit browse --no-claude

# Override project name (shows in topbar)
docs-cockpit browse --project "Bastion"

Steps

  1. Confirm the use case. Browse mode is for READING. If user wants the project-progress dashboard (Kanban / KPI), redirect to /docs-cockpit:render instead.
  2. Run dry first (no --dir) to see what gets scanned by default:
    docs-cockpit browse --output /tmp/preview.html
    
  3. If too much noise, narrow with --dir:
    docs-cockpit browse --dir docs/adrs --dir docs/plans --output docs/browse.html
    
  4. Open the HTML in the user's browser (file://). Show them the path.
  5. Update flow: tell the user that re-running docs-cockpit browse regenerates the HTML — there's no live watch. After editing MDs, re-run the command + Ctrl+R in browser.

Read the full file on GitHub · 64 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. 8d ago First seen · 64 lines · 31 tokens per session scan A d0deebd9bbb3

Subscribe to this mod's changes

browse is a command published in the GitHub repository Guohao1020/docs-cockpit (2 stars, last pushed 2mo ago), licensed MIT. It adds 31 tokens to every session and 828 once invoked, about $0.0002 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.