Skip to content

docs: Add Roo Code custom mode integration guide#70

Merged
visahak merged 6 commits into
AgentToolkit:mainfrom
visahak:feat/add-roo-mode
Feb 25, 2026
Merged

docs: Add Roo Code custom mode integration guide#70
visahak merged 6 commits into
AgentToolkit:mainfrom
visahak:feat/add-roo-mode

Conversation

@visahak

@visahak visahak commented Feb 23, 2026

Copy link
Copy Markdown
Collaborator

Adds Kaizen-export.yaml and SETUP_ROO_MODE.md to provide instructions for using the Kaizen custom mode in Roo Code.

Summary by CodeRabbit

  • New Features

    • Introduced Kaizen learning mode for Roo Code: a structured three-step workflow with mandatory start/end checks, learning-driven improvements, and explicit tooling to guide task execution.
  • Documentation

    • Added a setup and verification guide for installing and testing Kaizen mode in the Roo Code extension, including expected workflow behavior and rejection messaging when required steps are skipped.

@coderabbitai

coderabbitai Bot commented Feb 23, 2026

Copy link
Copy Markdown
📝 Walkthrough

Walkthrough

New Kaizen learning mode configuration for the Roo Code extension, defining a mandatory three-step agent workflow (get_guidelines → work → save_trajectory → attempt_completion) plus tooling and setup documentation for installation and testing.

Changes

Cohort / File(s) Summary
Kaizen Roo Code Mode Configuration and Setup
docs/integrations/roo-code/Kaizen-export.yaml, docs/integrations/roo-code/SETUP_ROO_MODE.md
Adds a new Kaizen custom mode: identity, capabilities, strict START→WORK→END workflow, required tools (get_guidelines, save_trajectory, create_entity, delete_entity), mandatory pre/post checks, trajectory formatting rules, and setup/testing instructions for Roo Code extension.

Sequence Diagram(s)

sequenceDiagram
  participant User
  participant Agent
  participant MCP as Kaizen-MCP
  participant Repo as FileSystem/Repo

  User->>Agent: Request task
  Agent->>MCP: call get_guidelines(task)
  MCP-->>Agent: guidelines
  Agent->>Repo: read/write files, run commands, refactor
  Agent->>MCP: optional create_entity/delete_entity
  Agent->>MCP: call save_trajectory({trajectory, metadata})
  MCP-->>Agent: confirm saved
  Agent->>MCP: call attempt_completion()
  MCP-->>Agent: accept completion
  Agent-->>User: deliver completion result
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related issues

Poem

🐰 I hopped in with Kaizen bright,
Guidelines first to start the flight,
Tucked my work into a saved trail,
Then rang completion without fail,
Learning steps, a rabbit's delight. 🌿

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: adding documentation and configuration files for Roo Code custom mode integration.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai 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.

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@docs/integrations/roo-code/Kaizen-export.yaml`:
- Around line 62-66: Update the workflow text and example payloads so they
include the required task_id parameter whenever save_trajectory is shown: amend
the prose that currently says "Format: [{\"role\": \"user/assistant\",
\"content\": \"...\"}]" to include task_id (e.g., {"task_id":"<id>",
"trajectory":[{"role":"user","content":"..."}]}) and update every other
save_trajectory example occurrence (including the other instances noted) so they
match the tool signature save_trajectory(task_id, trajectory) exactly and will
produce valid tool calls.
- Around line 171-185: The custom instructions currently require the “full
conversation” for save_trajectory(), which contradicts the note that the agent
"cannot access conversation history"; update the doc so get_guidelines(),
attempt_completion(), and save_trajectory() expectations are consistent by
specifying how the transcript is provided (e.g., require the caller/user to
supply the final transcript or persist conversation via an external store) and
change wording to instruct the agent to prompt the user to submit the
conversation or to use the external history API; specifically update the
description and customInstructions around get_guidelines(),
attempt_completion(), and save_trajectory() to state that the agent does not
fetch history itself and must rely on an explicit user-supplied or
externally-stored transcript.

In `@docs/integrations/roo-code/SETUP_ROO_MODE.md`:
- Around line 10-16: Clarify the install path distinction: update the
instructions around "Kaizen-export.yaml" and "Custom Modes" to make the flow
conditional—if the user's Roo Code version supports YAML import, instruct them
to import Kaizen-export.yaml directly via the Roo Code settings import option
(referencing Kaizen-export.yaml and the Roo Code extension panel), otherwise
instruct them to open Kaizen-export.yaml, convert or copy the relevant fields
(slug, name, roleDefinition, customInstructions, groups) into the Custom Modes
JSON text area and then paste and save; ensure steps 2 and 6 are rewritten so
one branch describes "Import YAML" and the other describes "Copy fields and
paste JSON" to avoid implying both actions are required.

ℹ️ Review info

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 4d47586 and 47d4043.

📒 Files selected for processing (2)
  • docs/integrations/roo-code/Kaizen-export.yaml
  • docs/integrations/roo-code/SETUP_ROO_MODE.md

Comment thread docs/integrations/roo-code/Kaizen-export.yaml
Comment thread docs/integrations/roo-code/Kaizen-export.yaml
Comment thread docs/integrations/roo-code/SETUP_ROO_MODE.md
@vinodmut

Copy link
Copy Markdown
Contributor

Please address the coderabbit feedback. If it's not relevant, say why.

@coderabbitai coderabbitai 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.

♻️ Duplicate comments (1)
docs/integrations/roo-code/SETUP_ROO_MODE.md (1)

10-16: Clarify YAML import vs manual/JSON path to avoid conflicting steps.

Steps 2 and 6 still read like both actions are required, which can confuse users. Make the instructions conditional (YAML import or manual/JSON paste), and adjust step 6 accordingly.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/integrations/roo-code/SETUP_ROO_MODE.md` around lines 10 - 16, The steps
currently imply both importing Kaizen-export.yaml and manually copying fields;
change Step 2 to clearly present a choice: either import the Kaizen-export.yaml
file into Roo Code OR manually copy the fields (slug, name, roleDefinition,
customInstructions, groups) / paste JSON into a new Custom Mode, and update Step
6 to only instruct pasting into the Custom Modes text area when the user chose
the manual/JSON path (omit that step for the YAML import path); edit the wording
for "import vs manual/JSON" to use explicit "OR" language and reference the
Kaizen-export.yaml and Custom Modes UI so users know which single path to
follow.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Duplicate comments:
In `@docs/integrations/roo-code/SETUP_ROO_MODE.md`:
- Around line 10-16: The steps currently imply both importing Kaizen-export.yaml
and manually copying fields; change Step 2 to clearly present a choice: either
import the Kaizen-export.yaml file into Roo Code OR manually copy the fields
(slug, name, roleDefinition, customInstructions, groups) / paste JSON into a new
Custom Mode, and update Step 6 to only instruct pasting into the Custom Modes
text area when the user chose the manual/JSON path (omit that step for the YAML
import path); edit the wording for "import vs manual/JSON" to use explicit "OR"
language and reference the Kaizen-export.yaml and Custom Modes UI so users know
which single path to follow.

ℹ️ Review info

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 47d4043 and 7c37aec.

📒 Files selected for processing (1)
  • docs/integrations/roo-code/SETUP_ROO_MODE.md

@visahak

visahak commented Feb 24, 2026

Copy link
Copy Markdown
Collaborator Author

Please address the coderabbit feedback. If it's not relevant, say why.

comments addressed.

@visahak

visahak commented Feb 25, 2026

Copy link
Copy Markdown
Collaborator Author

ready to be reviewed.

@visahak visahak merged commit aa34fc4 into AgentToolkit:main Feb 25, 2026
15 checks passed
@visahak visahak deleted the feat/add-roo-mode branch February 25, 2026 17:38
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.

2 participants