Add "Examples" workflow to demonstrate plugin behavior#110
Draft
Add "Examples" workflow to demonstrate plugin behavior#110
Conversation
A simple plugin that instructs the agent to add valid Python type annotations to files or directories. Features: - SKILL.md with instructions for adding type annotations - Example before/after Python files - GitHub Action workflow to regenerate examples using OpenHands CLI - Saves trajectory.json output from headless runs Co-authored-by: openhands <openhands@all-hands.dev>
- Moved update-example.yml to .github/workflows/update-type-annotations-example.yml - Added workflow_dispatch input to specify branch (defaults to current branch) - Updated README to reference new workflow location Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>
- Use 'openhands --headless --json -f' instead of 'openhands run' - Copy skills to .agents/skills/ in working directory - Use LLM_API_KEY env var (not ANTHROPIC_API_KEY directly) - Clean up .agents directory after run Co-authored-by: openhands <openhands@all-hands.dev>
- Added --override-with-envs flag to allow headless mode without pre-existing settings - Made LLM_MODEL and LLM_BASE_URL configurable as workflow inputs - Changed from ANTHROPIC_API_KEY to LLM_API_KEY secret (standard env var name) - LLM_BASE_URL is optional and can be set via secret or workflow input Co-authored-by: openhands <openhands@all-hands.dev>
Instead of capturing noisy JSONL stdout: - Run headless mode and capture conversation ID from output - Export trajectory by combining event-*.json files from conversation dir - Produces clean JSON with conversation_id and events array Co-authored-by: openhands <openhands@all-hands.dev>
rbren
commented
Mar 15, 2026
Co-authored-by: Robert Brennan <accounts@rbren.io>
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.
Summary
A simple plugin that instructs the agent to add valid Python type annotations to files or directories.
Features
update-example.yml) to regenerate examples using OpenHands CLIPlugin Structure
Usage
openhands run \ --plugin github:OpenHands/extensions/plugins/python-type-annotations \ --prompt "Add type annotations to all Python files in src/"Example Transformation
Before:
After: