Flightdeck 為 Claude Code 加入即時上下文、費用及權限檢視面板
See context, cost and permission checks live in Claude Code with Flightdeck
Claude Code 外掛 Flightdeck 會在終端機加入即時儀錶板,顯示上下文用量、費用、權限檢查及子 Agent 狀態。安裝需要 Claude Code 2.1.287 或更新版本;它使用的 API 屬早期存取,部分數值為推算,而本文沒有端到端實測。
Long Claude Code sessions have a visibility problem. You launch five subagents, the context gauge creeps up, a permission prompt scrolls past, and an hour later you cannot say what the session cost or what it was allowed to touch. The status line helps, but it is one row.
scasella/claude-flightdeck is a Claude Code mod that adds a live dashboard pane to your terminal. Per its README, every number comes from a real session event, and nothing leaves your machine. This post covers what the pane shows, how to install it, and how to use it.
What it shows
The pane is a set of panels, each fed by a documented event:
- main: model, effort, permission mode, a context gauge with compaction markers, cost, and the rate-limit windows your plan reports, with time to reset.
- gate: one cell per permission check. Green means allowed without asking, blue means decided by the auto-mode classifier or you, amber is pending, red is denied. You can drill into files, shell and other tools, with credentials masked.
- agents: your subagents as cards side by side, then as swimlanes on one time axis when there are too many. Each card shows the task, live context and output tokens, steps and a running clock.
- architect: advisor consults on a timeline.
- receipt and log: the last turn's duration, edits, errors and cost, plus a running log.
Install
You need Claude Code 2.1.287 or later, since mods are an early-access feature. Inside Claude Code:
/plugin marketplace add scasella/claude-flightdeck
/plugin install flightdeck@claude-flightdeck
/reload-plugins
/flightdeck
From a terminal instead:
claude plugin marketplace add scasella/claude-flightdeck
claude plugin install flightdeck@claude-flightdeck
Or load a clone for one session:
git clone https://github.com/scasella/claude-flightdeck
claude --plugin-dir ./claude-flightdeck
The installer may say config options are not set. The defaults are fine, and /config changes them.
Commands and keys
/flightdeck open the pane
/flightdeck close close it
/flightdeck reset clear agents, checks, consults, log
/flightdeck layout auto|compact|wide|mini override the layout
Focus the pane with ctrl+x tab, then press 1, 2 and so on to expand an agent card, or f, s, o to open the file, shell or other drill-down of the permission gate.
Where it runs
In a fullscreen terminal the pane docks beside the transcript. On the main screen it is an inline summary of at most 8 rows. The desktop app, VS Code and mobile get the same panels, though VS Code and mobile cannot animate. The pane opens by itself in terminals at least 144 columns wide, and /flightdeck opens it at any width.
Four ways people use it
The Flightdeck page on Deduped collects the workflows:
- Watch context and cost live so you see a compaction coming instead of discovering it.
- Audit every permission check a session makes, useful before you trust auto mode on a real repo.
- Follow subagents as cards or swimlanes when fanning out audits.
- Review architect and advisor consults.
Configuration worth knowing
Options live in /config or under pluginConfigs["flightdeck@claude-flightdeck"].options in your user settings.json. A few: layout (mini, compact, wide, auto), maxCards (1 to 6), motion set to off if animation bothers you, palette set to pastel for dark terminals, and panels to choose which panels show.
Caveats
- It is a mod on an early-access API, and the README warns the API can change between Claude Code releases.
- Some numbers are inferred, not measured, and labelled that way. Architect moments are inferred, and compactions are estimated under Team or Enterprise logins, where Claude Code's built-in guard blocks some hooks.
- It only watches: the README says it never denies, rewrites or delays a tool call, and makes no network requests.
- This walkthrough follows the README and we have not run it end to end.
If you also want a status-line view, the README suggests running it alongside claude-hud. Source: scasella/claude-flightdeck, MIT license.
Want the setup commands for 50 AI repos people actually ship with? Get the free AI Repos That Actually Ship pack: https://dedupedai.com/ship-pack/?utm_source=devto&utm_medium=article&utm_campaign=shippack
來源:DEV Community · dev.to