Skip to content

Add debug, architect, and deep-research modes#844

Open
phravins wants to merge 5 commits into
MoonshotAI:mainfrom
phravins:main
Open

Add debug, architect, and deep-research modes#844
phravins wants to merge 5 commits into
MoonshotAI:mainfrom
phravins:main

Conversation

@phravins

Copy link
Copy Markdown

Related Issue

Problem

The agent needs specialized modes to focus on specific tasks:

  • Debug Mode: Sometimes users need focused debugging without the agent implementing new features or making unrelated refactoring
  • Architect Mode: Users need the agent to design and explain architecture without immediately implementing code
  • Deep Research Mode: Users need the agent to conduct thorough research and output findings as documentation

These modes guide the agent's behavior and help it stay focused on the intended objective.

What changed

Added three new built-in skills to enhance agent specialization:

  1. Debug Mode (debug.md, debug.ts)

    • Guides the agent to analyze code, logs, and errors
    • Focuses on identifying root causes and proposing targeted fixes
    • Prevents feature creep and unrelated refactoring
  2. Architect Mode (architect.md, architect.ts)

    • Enables system architecture design and review
    • Uses diagrams and structural explanations
    • Avoids implementation-level code unless requested
  3. Deep Research Mode (deep-research.md, deep-research.ts)

    • Focuses on comprehensive topic research
    • Outputs findings as markdown documentation
    • Prevents scope creep into unrelated code changes
  4. Registration (index.ts)

    • Registered all three skills in the built-in skill registry
    • Exported skill definitions for public use

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 17, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: dbac805

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a 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: dbac8057bb

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +23 to +25
registry.registerBuiltinSkill(DEEP_RESEARCH_SKILL);
registry.registerBuiltinSkill(DEBUG_SKILL);
registry.registerBuiltinSkill(ARCHITECT_SKILL);

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 Add a changeset for the new built-in modes

These registrations expose /deep-research, /debug, and /architect as built-in skill slash commands through the existing skill command plumbing, so this is a user-visible CLI behavior change. The repo guide in /workspace/kimi-code/AGENTS.md requires a changeset for such changes, and without a .changeset/*.md entry the release PR will not bump or announce the affected publishable package.

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