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

Implement a Generic REPL for Flexible Context Management #40

Open
skyl opened this issue Nov 12, 2024 · 0 comments
Open

Implement a Generic REPL for Flexible Context Management #40

skyl opened this issue Nov 12, 2024 · 0 comments

Comments

@skyl
Copy link
Owner

skyl commented Nov 12, 2024

Problem

Currently, the system supports specific REPL sessions such as plan issue and workon file, which limit users to isolated tasks. This structure restricts fluid transitions between different tasks and accumulates context only for a single task at a time. A user cannot seamlessly chat, create issues, and revise files in a unified session without restarting the context for each task.

Goals

  • Implement a generic REPL interface that allows users to switch between different tasks without losing accumulated chat context.
  • Introduce chat as a default state, with seamless transitions to specific tasks (like issue planning or file revisions) via commands.
  • Enable users to accumulate and maintain context across tasks, including chatting and working on multiple files concurrently.

Options for Implementation

  1. Unified REPL Session:

    • Develop a main REPL loop where users can start by chatting. Commands such as /plan issue and /workon <filepath> would change the mode to issue planning or file editing, maintaining context across all interactions.
    • Implement a mechanism to switch between multiple files and tasks without clearing the accumulated conversation history.
  2. History and Context Management:

    • Maintain a historical context log that users can access to track prior interactions and decisions.
    • Allow context persistence across different REPL states so interactions in one state can inform actions in another.

This enhancement will empower users to interact with the corpora more dynamically, enabling iterative development and revision without the overhead of restarting context or opening multiple sessions.

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

No branches or pull requests

1 participant