Skip to content

docs(cli): document the /team slash command - #684

Merged
hongyi-chen merged 6 commits into
mainfrom
missing-docs/cli-team-slash-command
Sep 9, 2026
Merged

docs(cli): document the /team slash command#684
hongyi-chen merged 6 commits into
mainfrom
missing-docs/cli-team-slash-command

Conversation

@hongyi-chen

@hongyi-chen hongyi-chen commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator

What this feature does

/team switches the active team from inside the Warp Agent CLI. It opens a searchable list of the teams you belong to, marks the active one, and re-scopes the current session in place. The Warp app has no in-place equivalent: its title-bar pill opens a new window for the chosen team. The command is GA and ungated — TuiOnly, Availability::ALWAYS, no feature flag.

Why this was missing

The "Slash commands" table in agents/cli/reference.mdx presents itself as the complete list of CLI slash commands, and /team was the only GA, unflagged TUI-capable command absent from it.

The missing_docs audit could not see the gap, for two compounding reasons:

  1. /team is mapped -> internal in the surface map. That entry is correct for the GUI slash-commands page — the command does not exist in the desktop app — but the CLI reference maintains its own table, which internal also suppresses.
  2. The slash-command audit is repo-wide rather than surface-scoped (documented as a known limitation in SKILL.md): a command counts as covered when any page mentions it. This is the same blind spot that previously let /usage and /set-tab-color ship undocumented.

Caught by re-running the surface-scoped check that prior runs used to work around that limitation.

Worthiness verdict

Gate 1 — update an existing page. The knob is the nameable command /team itself, matching the /continue-locally worked example in .agents/references/docs-worthiness-criteria.md ("a nameable command, which is a knob, so Gate 1 carries it"). Gate 4 does not apply: the product surfaces the command in the slash menu and in the statusline team label, which opens the same list on click.

No content design plan: this adds a missing entry to an existing reference table, which .agents/references/content-design-plan.md lists under "When a plan can be skipped."

Changes

  • Added the /team row to the slash commands table, in alphabetical position between /statusline and /theme.
  • Added one paragraph alongside the existing /status and /usage explanations, covering the filter-and-Enter flow, the in-place re-scoping that differs from the desktop app, and the statusline affordance.

Validation

  • npm run build — passes (383 pages, 381 markdown docs generated).
  • style_lint --changed — one TONE-META-OPENER hit at line 252 ("This section covers common issues..."), pre-existing in the Troubleshooting section and untouched by this diff. Left for a style_lint sweep rather than widening scope.

Deferred findings from this run

The rest of the audit was already in sync. Full triage lives in the companion bookkeeping PR #657; deferrals worth naming here:

  • /team's surface-map entry moves from internal to this page in docs: document completion, custom endpoint, and /team surfaces (+ missing_docs bookkeeping for v0.2026.08.26–v0.2026.09.02) #657. Eleven sibling TUI-only commands (/exit, /status, /api-keys, /vim-mode, /theme, /voice, /clear, /logout, /statusline, /reset-statusline, /natural-language-detection) are still mapped -> internal even though they are documented in this same table. Suppression behavior is identical either way, so this is a map-accuracy nit rather than a docs gap; deferred to avoid churning a PR already under review.
  • Slash audit scoping. The repo-wide check that hid this gap remains unfixed in audit_docs.py. Until it is surface-scoped, doc_covered cannot be read as "documented in the right place."
  • Two preview flags (ShellWidgetHandoff, HistorySearchRankingV2) and agents.warp_agent.other.usage_display_unit (dogfood, gated by PricingTransparency) fail Gate 0 and re-surface on promotion.
  • Twelve new /factory* and screenshot-download API routes are x-internal: true in warp-server's canonical spec, so the publish filter strips them from the released OpenAPI. Not hand-documentable; re-check when the Factory REST API is published.
  • Twenty-three potentially_stale_docs findings are terminology-only false positives, itemized and rejected in the ledger. The unresolved ai credits rule conflict is still flagged there for a human docs owner.

Unverified claims

None. Every claim in the added table row and paragraph was verified against warpdotdev/warp@6db7fb734885, in the files listed under "Documentation risk" below. The TEAM StaticCommand in commands.rs carries the name, description, SlashCommandSurfaces::TuiOnly, and Availability::ALWAYS with no feature_flag, and its doc comment states the in-place re-scope versus the Warp app's new-window switch. TuiTeamMenuModel in team_menu.rs implements the searchable list, the (active) suffix on the current team, and the substring filter. The ToggleTeamMenu dispatch in statusline.rs makes the statusline team label open that same menu.

Documentation risk

Risk: engineering-review-required
Rationale: Documents a CLI slash command and its runtime behavior, a technical-claim category outside the low-risk allowlist.
Source files consulted: warp:app/src/search/slash_command_menu/static_commands/commands.rs@6db7fb734885, warp:crates/warp_tui/src/team_menu.rs@6db7fb734885, warp:crates/warp_tui/src/terminal_session_view/statusline.rs@6db7fb734885
Requested engineering reviewers: moirahuang
Engineering review status: approved
Docs override: none

/cc @moirahuang

/team is a GA, unflagged Warp Agent CLI slash command (StaticCommand TEAM,
SlashCommandSurfaces::TuiOnly, Availability::ALWAYS in
app/src/search/slash_command_menu/static_commands/commands.rs) that was
missing from the CLI reference's slash command table, which presents itself
as the complete list.

Adds the table row plus one sentence describing the behavior that differs
from the desktop app: the CLI re-scopes the current session in place, while
the desktop app opens a new window for the chosen team.

Co-Authored-By: Warp <agent@warp.dev>
@cla-bot cla-bot Bot added the cla-signed label Sep 4, 2026
@vercel

vercel Bot commented Sep 4, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
docs Ready Ready Preview Sep 9, 2026 4:55am UTC

Request Review

Copy link
Copy Markdown
Collaborator Author

This PR was generated with Warp.

Comment @warp-agent on this PR to send it follow-up work.

hongyi-chen added a commit that referenced this pull request Sep 4, 2026
…erence

Exhaustive drift-watch re-run for v0.2026.09.02.08.27.stable_01. Every
standing finding and every surface/changelog change in this release range
was already triaged on this PR; re-running the audit against this branch
leaves only the 23 known terminology false positives.

The one new gap: /team, a GA and ungated TUI-only slash command, was absent
from the slash command table on agents/cli/reference.mdx. Two compounding
reasons hid it from the audit -- the `-> internal` map entry (correct for
the GUI slash-commands page, wrong for the CLI table) and the repo-wide
slash check documented as a known limitation in SKILL.md.

Remaps /team to the CLI reference and records four verdicts: the /team pass,
the both-surface scoped slash re-verification, the 11 sibling TUI-only
entries whose `internal` sentinel overstates "no public docs" (deferred,
no audit-outcome change), and the weak-coverage re-run.

Snapshot regeneration is a no-op on this branch; it was already current.
Docs change ships separately in #684.

Co-Authored-By: Warp <agent@warp.dev>
warp-factories Bot added a commit that referenced this pull request Sep 5, 2026
…sing_docs bookkeeping for v0.2026.08.26–v0.2026.09.02) (#657)

* docs: document completion and custom endpoint settings keys

Add warp_completions_enabled, native_shell_completions_enabled, and
agents.custom_endpoints to the all-settings reference for the
v0.2026.08.26.17.59.stable_01 missing_docs drift-watch triage. Fold in
surface-map internal factory routes, changelog verdicts, release marker,
and snapshot regen.

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

* chore(missing_docs): record exhaustive-pass verdicts and fix KittyImages map target

Second, exhaustive pass over the same release. Adds ledger rows for the
surface-scoped slash command finding (shipped as its own feature PR), the
81 --weak-coverage findings, and an itemized re-verification of the 23
potentially_stale_docs findings that supersedes the earlier bulk row.

Retargets the KittyImages map entry: it pointed at full-screen-apps.mdx,
which documents the Kitty keyboard protocol, but the Kitty image protocol
is documented on files-and-links.mdx.

Co-Authored-By: Warp <agent@warp.dev>

* chore(missing_docs): record LrcActivitySignal deferral and refresh snapshot

Drift-watch re-run after v0.2026.08.26.17.59.stable_01 bookkeeping:
defer the new dogfood flag and regenerate the surface snapshot so the
next --diff run is clean of medium findings.

* chore(missing_docs): gate completion settings and map factory cost routes

Address docs#657 review: state that warp/native completion toggles only
take effect under the Native shell completions Preview. Map the four
factory /costs/* API routes as internal, prune dead /metrics/* map
entries, record the dogfood→preview NativeShellCompletions deferral, and
refresh the surface snapshot.

* chore(missing_docs): map factory-inbox and learning routes

Extend docs#657 bookkeeping for the v0.2026.08.26 release re-run:
map GET/POST /factory-inbox* and POST /factory/{uid}/learning as
internal (Gate 0 — unreleased Factory REST), record ledger verdicts,
refresh last_release marker timestamp and surface snapshot.

* chore(missing_docs): defer HistorySearchRankingV2 preview flag

Record Gate 0 deferral for the new preview history-search ranking flag,
add it to the surface-map ignore list, and refresh the surface snapshot.

* chore(missing_docs): defer ShellWidgetHandoff and map factory Linear handoff route

Exhaustive drift-watch re-run for v0.2026.08.26.17.59.stable_01.

- Ignore the new ShellWidgetHandoff preview flag (Gate 0: not GA).
- Map POST /factory/{uid}/integrations/linear/handoff -> internal (Gate 0:
  unreleased /factory namespace).
- Record this run's verdicts, including the corrected staleness verdict for
  the three live "Warp AI credits" usages.
- Refresh surface_snapshot.json.

Co-Authored-By: Warp <agent@warp.dev>

* chore(missing_docs): bookkeeping for v0.2026.09.02.08.27.stable_01

Drift-watch triage for the 2026.09.02 stable release. No new feature docs —
all 09.02 changelog and oz_updates items failed the worthiness gates or were
already covered. Map internal screenshot download and factory source/validate
routes, prune dead compose-from-run entry, allowlist ssh-legacy, append
ledger verdicts, advance the release marker, and regenerate the surface snapshot.

* chore(missing_docs): record /team verdict and remap it to the CLI reference

Exhaustive drift-watch re-run for v0.2026.09.02.08.27.stable_01. Every
standing finding and every surface/changelog change in this release range
was already triaged on this PR; re-running the audit against this branch
leaves only the 23 known terminology false positives.

The one new gap: /team, a GA and ungated TUI-only slash command, was absent
from the slash command table on agents/cli/reference.mdx. Two compounding
reasons hid it from the audit -- the `-> internal` map entry (correct for
the GUI slash-commands page, wrong for the CLI table) and the repo-wide
slash check documented as a known limitation in SKILL.md.

Remaps /team to the CLI reference and records four verdicts: the /team pass,
the both-surface scoped slash re-verification, the 11 sibling TUI-only
entries whose `internal` sentinel overstates "no public docs" (deferred,
no audit-outcome change), and the weak-coverage re-run.

Snapshot regeneration is a no-op on this branch; it was already current.
Docs change ships separately in #684.

Co-Authored-By: Warp <agent@warp.dev>

---------

Co-authored-by: warp-factories[bot] <243557089+warp-factories[bot]@users.noreply.github.com>
Co-authored-by: Oz <oz-agent@warp.dev>
Co-authored-by: Warp <agent@warp.dev>
Co-authored-by: hongyi-chen <hongyigma@gmail.com>
Co-authored-by: Rachael Rose Renk <91027132+rachaelrenk@users.noreply.github.com>
@hongyi-chen
hongyi-chen marked this pull request as ready for review September 8, 2026 05:18
@warp-for-oss

warp-for-oss Bot commented Sep 8, 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 /warp-agent-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

@warp-for-oss warp-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 documents the /team slash command in src/content/docs/agents/cli/reference.mdx. The command description itself matches the available TUI source behavior: /team opens a searchable team switcher, switches the active team in the current session, and the statusline team label opens the same menu. No security issues were found, and no approved spec context was available.

Concerns

  • 🚨 [CRITICAL] The PR appears to be agent-authored (missing-docs/cli-team-slash-command and a body that cites the missing_docs audit), but the attached PR body is missing the required ## Documentation risk section. Agent-authored docs PRs must carry the v1 quality contract metadata before review can pass. Because the risk section is absent, the structural checker returns immediately; add both the required ## Documentation risk metadata and the ## Unverified claims section before requesting review again.

Verdict

Found: 1 critical, 0 important, 1 suggestions

Request changes

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

Powered by Oz

Comment thread src/content/docs/agents/cli/reference.mdx Outdated
hongyi-chen and others added 2 commits September 7, 2026 22:28
Co-authored-by: warp-for-oss[bot] <277970191+warp-for-oss[bot]@users.noreply.github.com>

@github-actions github-actions 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.

Review summary

The independent agent completed its review for this commit.

Findings

  • missing-documentation-risk-section (1)

Verdict

Request changes

@github-actions
github-actions Bot dismissed their stale review September 9, 2026 04:57

Superseded by the current Agent docs review check.

@github-actions github-actions 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.

Review summary

The independent agent completed its review for this commit.

Findings

  • compression-contract (1)

Verdict

Approve

@hongyi-chen
hongyi-chen merged commit ef874d6 into main Sep 9, 2026
12 checks passed
@hongyi-chen
hongyi-chen deleted the missing-docs/cli-team-slash-command branch September 9, 2026 04:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed warpy-factory Opened by the Warp factory agents

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants