/flightdeck:flightdeckfrom flightdeck
Explains what Flightdeck records about the current Claude Code session, how environment variables control capture, and how MCP policy decisions appear. Use when asked what Flightdeck sees, why a tool call was refused, or how to disable capture.
Ships in flightdeck. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Flightdeck is a self-hosted control plane for AI agents. With this plugin loaded, the current Claude Code session streams lifecycle, tool and LLM events to the Flightdeck server configured for this machine, and the session appears in the Fleet view next to production agents.
Every hook Claude Code exposes runs the same script, so the session is reported from start to end:
tool_use_id, a structured error on failure
(its text only while both capture flags are on; <redacted>
otherwise), and a sanitised whitelist of arguments (file_path,
command, query, pattern, prompt) while
FLIGHTDECK_CAPTURE_TOOL_INPUTS is on. MCP tool calls carry their full
arguments because the whitelist would empty them, plus the server
identity Claude Code reports (mcp_server) when it sends one.FLIGHTDECK_CAPTURE_PROMPTS
is on. Each turn also carries the session's billing mode: a Claude
subscription login is subscription (not counted as spend), an API
key or a Bedrock / Vertex AI / Foundry session is metered.llm_error with the error type and Claude
Code's error code; the error text only while FLIGHTDECK_CAPTURE_PROMPTS
is on.FLIGHTDECK_CAPTURE_PROMPTS is on), model switches, Claude Code
notifications (waiting on a permission prompt or on you), permission
prompts and auto-mode denials, slash commands and MCP prompts (their
arguments while FLIGHTDECK_CAPTURE_PROMPTS is on), tasks created and
completed, idle agent-team teammates, working-directory and settings
changes, and MCP servers' requests for input with your response (the
text and what you entered only while FLIGHTDECK_CAPTURE_PROMPTS is
on), as session_signal events; the MCP servers declared in
.mcp.json.policy_mcp_warn or policy_mcp_block event.Prompt capture is on by default for this plugin because you are observing your own session on your own machine. The Python sensor used for production agents defaults the other way.
Open the dashboard at the configured server (default
http://localhost:4000). The session is stamped with:
claude-codecodingclaude_codestartup, resume, clear and compact), the
entrypoint (known values include cli and sdk-cli), whether a human
is attending it, and cloud / CI markers when presentFilter the Fleet view by flavor claude-code to see only Claude Code
sessions. The session drawer shows tool calls, LLM turns, token totals and
the Prompts tab (empty with a clear notice when capture is off).
Before each mcp__<server>__<tool> call the plugin evaluates the MCP
policy fetched at session start for flavor claude-code:
allow entries let the call through silently.deny entries with block enforcement refuse the call. The tool result
reads MCP policy blocked tool call to <server> (<scope>, <path>).Operators change the policy in the dashboard under MCP policies. The plugin re-reads it at the next session start.
Only with the plugin option enforcement on (or
FLIGHTDECK_ENFORCEMENT=1). Then an operator's Stop, or a token policy's
block threshold, denies the session's next tool call with
Stopped by Flightdeck: ... and blocks later prompts; the session ends
with close reason directive_shutdown. At a policy's warn or degrade
threshold the user sees a message; a degrade only advises switching
with /model, since a hook cannot change the model. With enforcement off
the plugin never stops a session. If the server is unreachable, calls go
through.
The server, token and enforcement are plugin options: in /plugin,
select flightdeck on the Installed tab and choose Configure
options. The token is kept in Claude Code's credential store.
FLIGHTDECK_SERVER, FLIGHTDECK_TOKEN and FLIGHTDECK_ENFORCEMENT
override the saved options for one shell or run.
| Variable | Default | Effect |
|---|---|---|
FLIGHTDECK_SERVER | the server option, else http://localhost:4000 | Control plane address: its base URL, or the ingestion URL the flightdeck start-up block prints (the base plus /ingest); events go to /ingest, policies come from /api. |
FLIGHTDECK_ENFORCEMENT | the enforcement option, else off | 1 lets an operator stop the session and token policies hold it to a budget. |
FLIGHTDECK_TOKEN | the token option, else tok_dev | Access token. The default is the development seed token and prints a warning; set a real token outside local development. |
FLIGHTDECK_CAPTURE_PROMPTS | true | false strips prompt, response and tool-result bodies while keeping metadata and token counts. |
FLIGHTDECK_CAPTURE_TOOL_INPUTS | true | false strips the sanitised tool arguments. |
FLIGHTDECK_BILLING_MODE | detected | metered, subscription or local; overrides the billing mode the plugin detects from claude auth status and the cloud-provider variables (set metered when a subscription runs on extra usage). |
FLIGHTDECK_QUIET | unset | 1 silences the default-token warning. |
CLAUDE_SESSION_ID | unset | Forces the session id reported to Flightdeck. |
CLAUDE_CODE_SESSION_ID | set by Claude Code | Claude Code's own session id; reported as context.claude_code_session_id and used to key the per-session marker when a hook payload has no session_id. |
The plugin never blocks Claude Code. If the server is unreachable it
prints one line to stderr per failed request and exits successfully, and
the next hook tries again. The session_end is posted by a detached
worker after the hook returns (Claude Code allows SessionEnd hooks 1.5
seconds); its failed-request lines go to
session-end-worker.log in the plugin's state directory
(~/.claude/plugins/data/<plugin id>/state/, or
$TMPDIR/flightdeck-plugin/ on a Claude Code without a plugin data
directory), an owner-only file
truncated past 256 KiB. Policy evaluation fails open: with no cached
policy, tool calls proceed as Claude Code would normally decide, and MCP
servers bundled with other plugins are reported but not gated.
Everything the plugin captures goes only to the Flightdeck server you configured, never to a third party. Turn either capture flag off to keep content bodies on your machine; the session, tool names and token counts still ship so the dashboard stays useful.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub flightdeckhq/flightdeck --plugin flightdeckOther plugins' skills for the same job