Skip to content

Commit

Permalink
Vscode diff visualize (#539)
Browse files Browse the repository at this point in the history
  • Loading branch information
PCSwingle authored Mar 29, 2024
1 parent 3976617 commit 3dc152b
Show file tree
Hide file tree
Showing 46 changed files with 1,275 additions and 463 deletions.
21 changes: 11 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# 🧙‍♂️ Mentat ⚡

> _It is by will alone I set my mind in motion_
>
>
> The Mentat Mantra
The Mentats of Dune combine human creativity with computer-like processing - and now you can too.
Expand All @@ -25,9 +25,10 @@ Want help understanding a new codebase? Need to add a new feature? Refactor exis
https://github.com/AbanteAI/mentat/assets/128252497/35b027a9-d639-452c-a53c-ef019a645719

See more videos on [Twitter](https://twitter.com/bio_bootloader/status/1683906735248125955) or YouTube:
- [Intro (2 min - same video as above)](https://www.youtube.com/watch?v=lODjaWclwpY)
- [Explaining and editing Llama2.c (3 min)](https://www.youtube.com/watch?v=qSyTWMFOjPs)
- [More Mentat features (4 min)](https://www.youtube.com/watch?v=YJLDIqq8k2A)

- [Intro (2 min - same video as above)](https://www.youtube.com/watch?v=lODjaWclwpY)
- [Explaining and editing Llama2.c (3 min)](https://www.youtube.com/watch?v=qSyTWMFOjPs)
- [More Mentat features (4 min)](https://www.youtube.com/watch?v=YJLDIqq8k2A)

# ⚙️ Setup

Expand All @@ -46,8 +47,9 @@ source .venv/bin/activate
Note that you'll have to have activated the virtual environment to run mentat if you install it there.

There are then 3 install methods. The first two will just let you run it:
- PyPI: `python -m pip install mentat`
- Github: `python -m pip install git+https://github.com/AbanteAI/mentat.git`

- PyPI: `python -m pip install mentat`
- Github: `python -m pip install git+https://github.com/AbanteAI/mentat.git`

The third option is useful if you'd also like to modify Mentat's code, as well as run it:

Expand Down Expand Up @@ -88,10 +90,9 @@ Mentat uses [Textual](https://textual.textualize.io/). On MacOS, Textual may not
We welcome contributions! To coordinate, make sure to join the Discord server: [![Discord Follow](https://dcbadge.vercel.app/api/server/XbPdxAMJte?style=flat)](https://discord.gg/zbvd9qx9Pb)

The goal for Mentat is to become the best way to write code. Some big improvements coming up are:
- improved user interface and options (VSCode and other editor integrations, etc)
- use with LLMs other than GPT-4
- seamlessly work with codebases much larger than LLM context limits, without requiring users to filter files manually
- improved edit quality

- seamlessly work with codebases much larger than LLM context limits, without requiring users to filter files manually
- improved edit quality

If this is something you'd like to work on, jump right in! And if you want to join the team to work on this full time, message [@bio_bootloader](https://twitter.com/bio_bootloader) on twitter.

Expand Down
4 changes: 2 additions & 2 deletions mentat-vscode/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ npm install
npm run build
```

3. If you want to test changes to Mentat on a branch, you need to egg install (`pip install -3 path/to/repo`)
your branch of mentat into a venv at `~/mentat/.venv`; otherwise, the extension will automatically pip install mentat for you.
3. If you want to test changes to Mentat on a branch, you need to egg install (`pip install -e path/to/repo`)
your branch of mentat into a venv at `~/.mentat/.venv`; otherwise, the extension will automatically pip install mentat for you.

**Without the VSCode Debugger**

Expand Down
Binary file added mentat-vscode/assets/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
147 changes: 132 additions & 15 deletions mentat-vscode/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3dc152b

Please sign in to comment.