Skip to content

Add Interactive Correction Feature to CLI Mode #326

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

Closed
bhouston opened this issue Mar 18, 2025 · 2 comments · Fixed by #327
Closed

Add Interactive Correction Feature to CLI Mode #326

bhouston opened this issue Mar 18, 2025 · 2 comments · Fixed by #327
Labels

Comments

@bhouston
Copy link
Member

Add Interactive Correction Feature to CLI Mode

Description

Add a feature to the CLI mode that allows users to send corrections to the main agent while it's running, similar to how sub-agents can receive messages via the agentMessage tool. This would enable users to provide additional context, corrections, or guidance to the main agent without restarting the entire process.

Requirements

  • Implement a key command that pauses the output and triggers a user prompt
  • Allow the user to type a correction message
  • Send the correction to the main agent using a mechanism similar to agentMessage
  • Resume normal operation after the correction is sent
  • Ensure the correction is integrated into the agent's context

Implementation Considerations

  • Reuse the existing agentMessage functionality
  • Add a new tool for the main agent to receive messages from the user
  • Modify the CLI to capture key commands during execution
  • Handle the pausing and resuming of output during message entry
  • Ensure the correction is properly formatted and sent to the agent

Why this is valuable

This feature will make the tool more interactive and efficient, allowing users to steer the agent in the right direction without restarting when they notice the agent is going off track or needs additional information.

github-actions bot pushed a commit that referenced this issue Mar 20, 2025
# [mycoder-agent-v1.5.0](mycoder-agent-v1.4.2...mycoder-agent-v1.5.0) (2025-03-20)

### Bug Fixes

* improve resource trackers and fix tests ([c31546e](c31546e))
* properly format agentDone tool completion message ([8d19c41](8d19c41))
* resolve build and test issues ([549f0c7](549f0c7))
* resolve TypeError in interactive mode ([6e5e191](6e5e191))
* restore visibility of tool execution output ([0809694](0809694)), closes [#328](#328)
* shell message should reset output on each read ([670a10b](670a10b))
* update CLI cleanup to use ShellTracker instead of processStates ([3dca767](3dca767))

### Features

* add colored console output for agent logs ([5f38b2d](5f38b2d))
* Add interactive correction feature to CLI mode ([de2861f](de2861f)), closes [#326](#326)
* add parent-to-subagent communication in agentMessage tool ([3b11db1](3b11db1))
* add stdinContent parameter to shell commands ([5342a0f](5342a0f)), closes [#301](#301)
* implement ShellTracker to decouple from backgroundTools ([65378e3](65378e3))
* remove respawn capability, it wasn't being used anyhow. ([8e086b4](8e086b4))
Copy link

🎉 This issue has been resolved in version mycoder-agent-v1.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

github-actions bot pushed a commit that referenced this issue Mar 20, 2025
# [mycoder-v1.5.0](mycoder-v1.4.1...mycoder-v1.5.0) (2025-03-20)

### Bug Fixes

* list default model correctly in logging ([5b67b58](5b67b58))
* restore visibility of tool execution output ([0809694](0809694)), closes [#328](#328)
* update CLI cleanup to use ShellTracker instead of processStates ([3dca767](3dca767))

### Features

* Add interactive correction feature to CLI mode ([de2861f](de2861f)), closes [#326](#326)
* add stdinContent parameter to shell commands ([5342a0f](5342a0f)), closes [#301](#301)
Copy link

🎉 This issue has been resolved in version mycoder-v1.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

1 participant