fix(cli): improve guidelines for kilo agent create - #9410
Closed
shssoichiro wants to merge 1 commit into
Closed
Conversation
kilo agent createkilo agent create
Contributor
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (1 files)
Reviewed by gpt-5.5-2026-04-23 · 433,274 tokens |
| <commentary> | ||
| Since the user is greeting, use the greeting-responder agent to respond with a friendly joke. | ||
| </commentary> | ||
| </example> |
Collaborator
There was a problem hiding this comment.
Will this not break the formatting?
Contributor
Author
There was a problem hiding this comment.
No, the overall JSON formatting is still correct--this is defined in the section below ("Your output must be a valid JSON object...") The bulky examples XML is what we want to eliminate, because the agent is being guided to place these directly into the description field.
An example of the generated agent file before and after would make this clearer.
Before:
---
description: >-
Use this agent when automated tests need to be executed and their results
analyzed. This includes running unit tests, integration tests, end-to-end
tests, or any test suite, then interpreting pass/fail outcomes, diagnosing
failures, and providing actionable insights.
<example>
Context: The user has just finished implementing a new feature and wants to
verify nothing is broken.
user: "I just added the new authentication middleware. Can you make sure
everything still works?"
assistant: "I'll use the Task tool to launch the test-executor agent to run
the test suite and analyze the results."
<commentary>
Since the user wants to verify their changes haven't broken anything, use the
test-executor agent to run tests and analyze outcomes.
</commentary>
</example>
<example>
Context: The user is debugging a failing CI pipeline.
user: "The CI is red but I can't tell which tests are actually failing."
assistant: "Let me use the test-executor agent to run the tests locally and
break down exactly what's failing and why."
<commentary>
The user needs test execution with detailed failure analysis, which is the
test-executor agent's specialty.
</commentary>
</example>
<example>
Context: Proactive use after code changes.
user: "I refactored the payment processing module to use the new API."
assistant: "I've noted the refactoring. Now I'll use the test-executor agent
to run the relevant tests and confirm the refactor didn't introduce
regressions."
<commentary>
After significant code changes, proactively use the test-executor agent to
validate correctness.
</commentary>
</example>
mode: subagent
---
You are an elite Test Execution and Analysis Specialist with deep expertise in...After:
---
description: >-
Use this agent when automated tests need to be executed and their results
analyzed. This includes running unit tests, integration tests, end-to-end
tests, or full test suites, as well as re-running failed tests and providing
concise summaries of outcomes. The agent should be invoked after code changes
that warrant verification, when explicitly asked to run tests, or proactively
after implementing new features or fixes.
mode: subagent
---
You are an elite Test Execution Specialist with deep expertise in...Currently the `kilo agent create` command generates extremely long agent descriptions. This is because the system prompt for the `generate` agent tells it to include multiple verbose examples of when the agent should be used. This is unnecessary and increases system context bloat without improving the parent agent's ability to choose a subagent. This change updates the system prompt to exclude the guidance about examples, and instead includes official guidance from Anthropic's documentation on best practices for agent descriptions.
shssoichiro
force-pushed
the
agent-descriptions
branch
from
May 4, 2026 16:10
9168206 to
a87c702
Compare
Contributor
|
To stay organized pull requests are automatically closed after 30 days of inactivity. If the pull request is still relevant please reopen it or create a fresh new one. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
Currently the
kilo agent createcommand generates extremely long agent descriptions. This is because the system prompt for thegenerateagent tells it to include multiple verbose examples of when the agent should be used. This is unnecessary and increases system context bloat without improving the parent agent's ability to choose a subagent.Implementation
This change updates the system prompt to exclude the guidance about examples, and instead includes official guidance from Anthropic's documentation on best practices for agent descriptions.
Get in Touch
ExpedientFalcon on Discord