Skip to content
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

'TASK' microagents #7290

Open
enyst opened this issue Mar 16, 2025 · 5 comments · May be fixed by #7363
Open

'TASK' microagents #7290

enyst opened this issue Mar 16, 2025 · 5 comments · May be fixed by #7363
Labels

Comments

@enyst
Copy link
Collaborator

enyst commented Mar 16, 2025

What problem or use case are you trying to solve?

Microagents of type 'TASK' are started in the codebase, but not actually usable / implemented yet.

Describe the UX of the solution you'd like

Re: #6713 (comment)

One way for the LLM to keep track of the task may be:

  • prompt it to plan its task or restate the user's task as a plan
  • make itself a .md file when it records it
  • with checkboxes to check when each item is done
  • (maybe) with an review step at the end.

Do you have thoughts on the technical implementation?

  • express it in a microagent with type 'TASK' to include in the prompt

Describe alternatives you've considered

  • we've all done it in some form; people report success at least for some types of long-running tasks where the steps are clear beforehand (please see linked comment above, for example)

Additional context
It just seems to me one of the natural next steps after this issue, so just recording it here

@enyst enyst added the enhancement New feature or request label Mar 16, 2025
@jasonburt
Copy link
Contributor

I was helping a friend migrate a project and used a migration file with steps to run OpenHands through. Something thats easy to check steps and come back to seemed helpful.

@openhands-agent
Copy link
Contributor

OpenHands started fixing the issue! You can monitor the progress here.

@openhands-agent openhands-agent linked a pull request Mar 19, 2025 that will close this issue
@openhands-agent
Copy link
Contributor

A potential fix has been generated and a draft PR #7363 has been created. Please review the changes.

@ryanhoangt
Copy link
Contributor

ryanhoangt commented Mar 26, 2025

One way for the LLM to keep track of the task may be:

  • prompt it to plan its task or restate the user's task as a plan
  • make itself a .md file when it records it
  • with checkboxes to check when each item is done
  • (maybe) with an review step at the end.

I think another way might be to define a custom tool for the agent, e.g. workflow_tracker, with multiple commands like rephrase_plan to convert the workflow into a structured form, and then tick to mark a subtask as done and perhaps list_status to print the status of all tasks in the whole workflow 🤔 Given that the LLM is trained to call tool, this might be more reliable than nudging to use a md file to keep track of task states.

@enyst
Copy link
Collaborator Author

enyst commented Mar 27, 2025

This is definitely a possibility!

We could also try both and see what works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants