So you’ve run OpenHands. Now what?
Write a bash script hello.sh that prints “hello world!”The agent will write the script, set the correct permissions, and run it to check the output. You can continue prompting the agent to refine your code. This is a great way to work with agents. Start simple, and iterate.
Modify hello.sh so that it accepts a name as the first argument, but defaults to “world”You can also use any language you need. The agent may need time to set up the environment.
Please convert hello.sh to a Ruby script, and run it
Build a frontend-only TODO app in React. All state should be stored in localStorage.Once the basic structure is in place, continue refining:
Allow adding an optional due date to each task.Just like normal development, commit and push your code often. This way you can always revert back to an old state if the agent goes off track. You can ask the agent to commit and push for you:
Commit the changes and push them to a new branch called “feature/due-dates”
./github/workflows/lint.yml
.
Add a GitHub action that lints the code in this repository.Some tasks need more context. While OpenHands can use commands like ls and grep to search, providing context upfront speeds things up and reduces token usage.
Modify ./backend/api/routes.js to add a new route that returns a list of all tasks.
Add a new React component to the ./frontend/components directory to display a list of Widgets. It should use the existing Widget component.
Rename all the single-letter variables in ./app.go.
Split thebuild_and_deploy_widgets
function into two functions,build_widgets
anddeploy_widgets
in widget.php.
Break ./api/routes.js into separate files for each route.
The email field in the /subscribe
endpoint is rejecting .io domains. Fix this.
The search_widgets
function in ./app.py is doing a case-sensitive search. Make it case-insensitive.
For bug fixing, test-driven development can be really useful. You can ask the agent to write a new test and iterate
until the bug is fixed:
The hello
function crashes on the empty string. Write a test that reproduces this bug, then fix the code so it passes.