-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Update documentation for command-style microagents with user input support #8990
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
xingyaoww
wants to merge
63
commits into
main
Choose a base branch
from
update-microagent-docs
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+333
−256
Draft
Changes from 54 commits
Commits
Show all changes
63 commits
Select commit
Hold shift + click to select a range
ad6311d
Add back microagent files and add special handling for user input var…
openhands-agent a1e6ed4
Add special handling for microagents that require user input
openhands-agent e90b841
Update microagent files to match original ones with added triggers an…
openhands-agent 6c144e6
Add back microagent files with special handling for user inputs
openhands-agent bcc9bd0
Move task microagent tests to test_microagent_task.py
openhands-agent cb09940
🤖 Auto-fix Python linting issues
openhands-agent b55bfed
Update microagents/address_pr_comments.md
xingyaoww f4024cc
Update microagents/update_pr_description.md
xingyaoww 7c35ce1
Merge branch 'main' into add-back-microagents
xingyaoww bf2c3de
cleanup tests
xingyaoww f26d770
remove hardcoded last line
xingyaoww 405f006
revert some changes
xingyaoww 58c574a
revert changes
xingyaoww e088d2d
simplify microagent
xingyaoww 98e454e
fix lint and missing imports
xingyaoww fdc5913
add remain
xingyaoww 4519a7f
fix test
xingyaoww cd464c0
rename files
xingyaoww 0236e09
fix test
xingyaoww 3c07193
Add microagent suggestions feature to chat input
openhands-agent 3790ec7
Add tests for microagent suggestions component
openhands-agent f2e3bc3
Fix microagent suggestions feature
openhands-agent a07cf97
Merge commit '6032d2620d6ec252d3c80695a6de1fc88da9c87a' into add-back…
xingyaoww 5dfa1bb
Fix microagent suggestions UI and TypeScript errors
openhands-agent 4c361ab
Add mock handler for microagents endpoint
openhands-agent 642cc52
Fix linting issues in handlers.ts
openhands-agent da935f9
Merge branch 'main' into add-back-microagents
xingyaoww fc07622
Implement microagent suggestions using TipTap
openhands-agent 6ce9f49
Fix linting issues in TipTap editor component
openhands-agent f3934be
Fix microagent suggestions using tippy.js for better popup handling
openhands-agent 18c88f9
Merge from main to resolve conflicts
openhands-agent 802b765
Add microagent button and dropdown to trajectory actions
openhands-agent 54cd9f7
Fix unlocalized strings in microagent-dropdown.tsx
openhands-agent 3e4ab4f
Fix docstring formatting in KnowledgeMicroagent class
openhands-agent 34b0971
Fix linting issues in frontend and Python code
openhands-agent 7b956b6
revert docs to look like main
xingyaoww 6f1a74e
merge main
xingyaoww dd988d0
revert fe
xingyaoww c444dbf
remove fe changes
xingyaoww 85c6539
revert changes
xingyaoww 32e610a
revert unnecessary change
xingyaoww 6763f21
Merge branch 'main' into add-back-microagents
xingyaoww 4837c4d
Update microagents/get_test_to_pass.md
xingyaoww 469d184
address engel comment
xingyaoww 58845b0
rename more files
xingyaoww 401262f
Update documentation for task microagents with user input support
openhands-agent 53c80d1
Merge branch 'main' into update-microagent-docs
xingyaoww 6fe9680
Consolidate task microagent documentation into keyword-triggered micr…
openhands-agent 9d9f931
Remove unused fields from microagent documentation and example
openhands-agent 17212bb
Remove unused fields from microagent code and update all microagent f…
openhands-agent 6c49686
Add MCP tools documentation and update microagent field requirements
openhands-agent 0fe5b80
Update microagent code to use filename as name when not specified
openhands-agent bd3ff43
Remove name field from microagent files
openhands-agent fc16da8
Update microagent documentation to clarify that type field is optional
openhands-agent 0691e5c
Remove type: field from all microagent markdown files
openhands-agent 283f503
Exclude name field in MicroagentMetadata as it's deprecated
openhands-agent 0ca3188
Merge branch 'main' into update-microagent-docs
xingyaoww 8c2d4db
Merge branch 'main' into update-microagent-docs
xingyaoww eee12bf
fix test
xingyaoww 1a95f86
fix all remaining issue'
xingyaoww 1d3ff66
Fix failing tests: add missing newlines and pytest-asyncio dependency
openhands-agent e70595f
Fix microagent tests and remove debug prints
openhands-agent 93287ef
Fix microagent test filenames to match expected names
openhands-agent File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,15 @@ | ||
--- | ||
name: address_pr_comments | ||
version: 1.0.0 | ||
author: openhands | ||
agent: CodeActAgent | ||
inputs: | ||
- description: URL of the pull request | ||
name: PR_URL | ||
- description: Branch name corresponds to the pull request | ||
name: BRANCH_NAME | ||
triggers: | ||
- /address_pr_comments | ||
inputs: | ||
- name: PR_URL | ||
description: "URL of the pull request" | ||
- name: BRANCH_NAME | ||
description: "Branch name corresponds to the pull request" | ||
--- | ||
|
||
First, check the branch {{ BRANCH_NAME }} and read the diff against the main branch to understand the purpose. | ||
|
||
This branch corresponds to this PR {{ PR_URL }} | ||
|
||
Next, you should use the GitHub API to read the reviews and comments on this PR and address them. | ||
Next, you should use the GitHub API to read the reviews and comments on this PR and address them. |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,9 @@ | ||
--- | ||
# This is a repo microagent that is always activated | ||
# to include necessary default tools implemented with MCP | ||
name: default-tools | ||
type: repo | ||
version: 1.0.0 | ||
agent: CodeActAgent | ||
mcp_tools: | ||
stdio_servers: | ||
- name: "fetch" | ||
command: "uvx" | ||
args: ["mcp-server-fetch"] | ||
# We leave the body empty because MCP tools will automatically add the | ||
# tool description for LLMs in tool calls, so there's no need to add extra descriptions. | ||
--- | ||
- args: | ||
- mcp-server-fetch | ||
command: uvx | ||
name: fetch | ||
type: repo | ||
--- |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,20 @@ | ||
--- | ||
name: fix_test | ||
version: 1.0.0 | ||
author: openhands | ||
agent: CodeActAgent | ||
inputs: | ||
- description: Branch for the agent to work on | ||
name: BRANCH_NAME | ||
- description: The test command you want the agent to work on. For example, `pytest | ||
tests/unit/test_bash_parsing.py` | ||
name: TEST_COMMAND_TO_RUN | ||
- description: The name of function to fix | ||
name: FUNCTION_TO_FIX | ||
- description: The path of the file that contains the function | ||
name: FILE_FOR_FUNCTION | ||
triggers: | ||
- /fix_test | ||
inputs: | ||
- name: BRANCH_NAME | ||
description: "Branch for the agent to work on" | ||
- name: TEST_COMMAND_TO_RUN | ||
description: "The test command you want the agent to work on. For example, `pytest tests/unit/test_bash_parsing.py`" | ||
- name: FUNCTION_TO_FIX | ||
description: "The name of function to fix" | ||
- name: FILE_FOR_FUNCTION | ||
description: "The path of the file that contains the function" | ||
--- | ||
|
||
Can you check out branch "{{ BRANCH_NAME }}", and run {{ TEST_COMMAND_TO_RUN }}. | ||
|
||
Help me fix these tests to pass by fixing the {{ FUNCTION_TO_FIX }} function in file {{ FILE_FOR_FUNCTION }}. | ||
|
||
PLEASE DO NOT modify the tests by yourself -- Let me know if you think some of the tests are incorrect. | ||
PLEASE DO NOT modify the tests by yourself -- Let me know if you think some of the tests are incorrect. |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.