Skip to content

docs(cli): customization (settings, themes, statusline, rules, skills, MCP) - #401

Open
hongyi-chen wants to merge 5 commits into
hyc/launch-clifrom
hyc/launch-cli-cli-configuration
Open

docs(cli): customization (settings, themes, statusline, rules, skills, MCP)#401
hongyi-chen wants to merge 5 commits into
hyc/launch-clifrom
hyc/launch-cli-cli-configuration

Conversation

@hongyi-chen

@hongyi-chen hongyi-chen commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator

Drafts the Warp Agent CLI customization page for the CLI launch docs. As part of the 13→9 page consolidation, this page now also absorbs the content of the agent context page from PR #400 (that PR will be closed; context.mdx itself is deleted at integration, and the slug rename to customization happens at integration).

Pages changed

  • src/content/docs/cli/configuration.mdx — retitled "Customizing the Warp Agent CLI"; covers CLI configuration plus agent context (rules, skills, MCP)

Features covered

  • TOML settings file: per-platform locations verified in code (macOS ~/.warp_cli/settings.toml; Linux ~/.config/warp-terminal/cli/settings.toml, XDG-aware; Windows %LOCALAPPDATA%\warp\Warp\config\cli\settings.toml), example TOML, hot reload while running, invalid-value fallback to defaults, and the local-only story (never cloud-synced; fully separate from the Warp app's settings file).
  • Edit settings with the agent: bundled skill + settings schema workflow, example prompts, in-page cross-link to bundled skills.
  • Themes: /theme auto|light|dark, immediate apply + persistence as appearance.theme, terminal background detection at startup (light → light; dark/undetectable → dark).
  • Statusline: full item catalog (14 items, labels matching the config panel), defaults (model, working directory, Git branch, Git diff status), conditional visibility and shell-mode label, and the /statusline config flow (Enter toggle, arrow-key reorder, Esc save, Ctrl+C cancel).
  • Project context pickup (from docs(cli): context (rules, skills, MCP) #400): working-directory context; cd re-scopes rules and skills; AGENTS.md/WARP.md project rules; global ~/.agents/AGENTS.md rules; cross-links agent-platform/capabilities/rules.
  • Skills (from docs(cli): context (rules, skills, MCP) #400): /skills menu (search, select, insert /skill-name for extra instructions), direct /skill-name invocation with arguments; cross-links agent-platform/capabilities/skills.
  • Bundled skills (from docs(cli): context (rules, skills, MCP) #400, deduped): /modify-settings (canonical treatment lives in "Edit settings with the agent") and /tui-migrate-setup (migrate compatible settings + global MCP definitions from the Warp app; no credentials copied).
  • MCP (from docs(cli): context (rules, skills, MCP) #400): /mcp management view (transport, status, tool counts; start/stop/retry; OAuth reopen + log out), CLI-specific global .mcp.json config (same mcpServers format, auto-reloaded, servers auto-start after login); cross-links agent-platform/capabilities/mcp.

Dropped/unconfirmed

  • Keybinding customization: dropped. The CLI registers named bindings, but loading user overrides from keybindings.yaml is not wired in the CLI process (the loader only runs in the app's launch path); code comments mark override loading as a follow-up.
  • Theme live refresh on external settings-file edits (CODE-1909): dropped as a claim. Settings values hot-reload from disk, but nothing re-applies the rendered theme on an external file edit; the theme applies immediately only via /theme (documented that way).
  • Project-scoped MCP servers (carried from docs(cli): context (rules, skills, MCP) #400): not shipped in the CLI — MCP discovery is limited to the CLI's global config (project + third-party provider discovery is deferred in code). The page carries a note that only the global config file is read.
  • MCP import/discovery from other tools (carried from docs(cli): context (rules, skills, MCP) #400): fast follow, not landed; excluded per plan.
  • Note for integration review: the settings-file section lists Linux and Windows paths from code on master. If launch is macOS-only, trim those two bullets in the integration branch.

Validation

  • npm run build passes (363 pages); built title renders as "Customizing the Warp Agent CLI | Warp".

Suggested reviewer(s): Kevin, moira

Co-Authored-By: Oz oz-agent@warp.dev

Cover the local TOML settings file (per-platform locations, hot reload,
error fallback, local-only/no cloud sync), editing settings by asking the
agent, /theme with terminal background detection, and the statusline with
/statusline customization. Drop the keybindings section: custom keybinding
overrides are not loaded by the CLI yet.

Co-Authored-By: Oz <oz-agent@warp.dev>
@cla-bot cla-bot Bot added the cla-signed label Jul 28, 2026
@vercel

vercel Bot commented Jul 28, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment Jul 28, 2026 10:09pm

Request Review

@oz-for-oss

oz-for-oss Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

@hongyi-chen

I'm starting a first review of this pull request.

You can view the conversation on Warp.

I completed the review and no human review was requested for this pull request.

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

@oz-for-oss oz-for-oss Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overview

This PR expands src/content/docs/cli/configuration.mdx from a placeholder into a full CLI configuration page covering the TOML settings file, agent-assisted edits, themes, statusline customization, and related pages.

Concerns

  • The page over-promises settings-file hot reload for theme changes made by editing the file or by asking the agent to edit the file; the current TUI applies rendered themes through /theme and startup, not generic settings-file reload.
  • The Windows settings path currently renders with doubled backslash separators.

Verdict

Found: 0 critical, 2 important, 1 suggestions

Request changes

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

theme = "dark"
```

The CLI watches the settings file while it's running, so edits take effect immediately without a restart. If a value is invalid, the CLI logs the problem and uses the default for that setting instead. If the file can't be parsed at all, the CLI starts with default settings.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [IMPORTANT] This says every settings-file edit takes effect immediately, but theme edits from disk only reload the setting value; the rendered theme is applied by /theme or at startup, so qualify the hot-reload behavior.

Comment thread src/content/docs/cli/configuration.mdx Outdated
* "Add the time to my statusline."
* "What CLI settings can I change?"

Because the CLI hot-reloads the settings file, changes the agent makes apply immediately. To learn about the other built-in skills, see [bundled skills in the {VARS.WARP_CLI}](/cli/context/).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [IMPORTANT] This repeats the over-broad hot reload promise: agent edits to appearance.theme are still settings-file edits and won't re-render the theme until /theme runs or the CLI restarts.


* **macOS** - `~/.warp_cli/settings.toml`
* **Linux** - `~/.config/warp-terminal/cli/settings.toml` (respects `$XDG_CONFIG_HOME`)
* **Windows** - `%LOCALAPPDATA%\warp\Warp\config\cli\settings.toml`

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 [SUGGESTION] Inline code renders backslashes literally, so this currently displays doubled separators. Use single Windows separators in the path.

Suggested change
* **Windows** - `%LOCALAPPDATA%\warp\Warp\config\cli\settings.toml`
* **Windows** - `%LOCALAPPDATA%\warp\Warp\config\cli\settings.toml`

{{WARP_CLI}} tokens are not substituted in MDX frontmatter by the build
pipeline, so the built title/description showed the raw token. Body prose
keeps {VARS.WARP_CLI}.

Co-Authored-By: Oz <oz-agent@warp.dev>
Consolidate the CLI docs: fold the context page's rules, skills, bundled
skills, and MCP sections into configuration.mdx, retitled "Customizing the
Warp CLI". Dedupe the modify-settings bundled skill treatment and switch
cross-links to in-page anchors. The context.mdx file itself is removed at
integration.

Co-Authored-By: Oz <oz-agent@warp.dev>
@hongyi-chen hongyi-chen changed the title docs(cli): configuration docs(cli): customization (settings, themes, statusline, rules, skills, MCP) Jul 28, 2026
…tter

Follows the site-wide WARP_CLI var update on the base branch; body prose
picks up the new name via the var automatically.

Co-Authored-By: Oz <oz-agent@warp.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant