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

Subagent tool & smarter ways to handle context #61

Open
ErikBjare opened this issue Jan 20, 2024 · 1 comment
Open

Subagent tool & smarter ways to handle context #61

ErikBjare opened this issue Jan 20, 2024 · 1 comment
Labels

Comments

@ErikBjare
Copy link
Owner

ErikBjare commented Jan 20, 2024

When working on gpt-engineer I notice one benefit which is that the context per request is a lot smaller, because we don't keep sending past conversation history. This also saves massively on OpenAI spend.

This could be achieved by giving gptme a "subagent" tool, which can run a complex tasks that require back-and-forth, and for which the required context is clearly scoped, and a clear-defined result.

Examples of such tasks include:

This might require some change to the data model, to support the notion of subconversations, or perhaps an arbitrary metadata field that isn't send to the LLM, and can thus be used to store subconversations.

Or maybe we just store all subconversations as their own files (possibly in their own directory), and reference them in the raw conversation log.

The user should be able to interact with the subconversation (if needed, to debug or such).

@ErikBjare
Copy link
Owner Author

A fair bit of progress was made on this today in #79

Basic MVP working, including tests. Just a tiny bit more work and it'll work great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: In progress
Development

No branches or pull requests

1 participant