Skip to content
This repository has been archived by the owner on Jan 7, 2025. It is now read-only.

Add Mentat Daemon #509

Merged
merged 2 commits into from
Feb 2, 2024
Merged

Add Mentat Daemon #509

merged 2 commits into from
Feb 2, 2024

Conversation

waydegilliam
Copy link
Contributor

The Mentat Daemon is an experiment not meant to necessarily replace Mentat, but is an alternate way to interface with Mentat that may provide a better, Copilot-like DX.

The idea is that there is a background process (the Mentat Daemon) that watches a directory for file changes. When a user changes a file, the daemon calls an LLM and inserts the code into the file where the comment was.

The daemon can be started in the command line like this:

>> mentat-daemon

Once started, a simple TUI showing file changes and LLM progress/edits is displayed. To invoke the Mentat Daemon, the user can write comments prefixed with @mentat to insert LLM-generated code. For a python file, the syntax would look like this:

# @mentat create a function for getting market quote data from yahoo finance by ticker

After the user saves the file, the Mentat Daemon will check if the current file contents contain @mentat and will generate a response that will be inserted into the line the comment is on.

@waydegilliam waydegilliam merged commit 02bfddb into main Feb 2, 2024
16 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants