Skip to content

feat(tui): add agents status command#1139

Open
grandmaster451 wants to merge 1 commit into
MoonshotAI:mainfrom
grandmaster451:feat/agents-status
Open

feat(tui): add agents status command#1139
grandmaster451 wants to merge 1 commit into
MoonshotAI:mainfrom
grandmaster451:feat/agents-status

Conversation

@grandmaster451

Copy link
Copy Markdown

Related Issue

No linked issue. This addresses a visibility gap for background subagents: users can start subagent work, but the TUI has no direct slash command that summarizes subagent status and resume hints.

Problem

Kimi Code already has background task and subagent infrastructure, but subagent status is not exposed as a focused TUI command. Users need a quick way to inspect completed, running, and failed background subagents without browsing the generic task list.

What changed

Added a /agents slash command, with /agent alias and optional status argument, that lists background subagents from SDK background tasks and shows status, subagent type, agent id, description, stop reason, and resume hints for failed agents. The command is wired into TUI dispatch, registry, command exports, web slash metadata, English/Chinese command descriptions, slash-command docs, tests, and a changeset.

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked a related issue, or explained the problem above.
  • I have added tests that prove my feature works.
  • Ran gen-changesets skill, or this PR needs no changeset.
  • Ran gen-docs skill, or this PR needs no doc update.

@changeset-bot

changeset-bot Bot commented Jun 26, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: d14e8bc

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@moonshot-ai/kimi-code Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d14e8bce65

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

{ name: '/permission', desc: 'commands.permission.desc' },
{ name: '/plan', desc: 'commands.plan.desc' },
{ name: '/swarm', desc: 'commands.swarm.desc', acceptsInput: true },
{ name: '/agents', desc: 'commands.agents.desc' },

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Do not advertise /agents before handling it

In the web UI, commands listed here are treated as known by Composer.vue and emitted to App.vue's handleCommand, but that switch has no /agents case; the default branch treats it as a skill and calls client.activateSkill('agents'). So selecting or typing /agents in the web slash menu will surface a skill-not-found warning instead of showing agent status. Add a web handler for /agents or keep it out of the web command list until supported.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant