crab icon indicating copy to clipboard operation
crab copied to clipboard

Add real terminal environment

Open James4Ever0 opened this issue 1 year ago • 3 comments

Operate systems initially only provide text-only terminal interfaces, before GUI appears. Terminal is less resource intensive, more lightweight therefore can scale more easily than GUI. Besides, most LLMs are text-only.

I have developed a general purpose terminal interaction environment for AI agents such as OpenDevin and OpenInterpreter. Here are few things it can do.

You can see the position of the cursor, the range of the selected text.

tmux_show_1

You can also capture a screenshot of the terminal with cursor denoted in red.

vim_edit_tmux_screenshot

Grayscale augmented terminal gives high contrast to the red cursor, making the agent easier to locate it.

grayscale_dark_tmux

Would you like to add it to CRAB? This further enhances the agent capability, empower it to interact more with the OS.

You can learn more here.

James4Ever0 avatar Aug 13 '24 03:08 James4Ever0

@James4Ever0 this environment is very interesting to me! We will carefully read and try to add it. Thank you for your suggestion!

dandansamax avatar Aug 14 '24 14:08 dandansamax

Now it is available as an installable Python package.

pip install termadaptor

James4Ever0 avatar Aug 27 '24 04:08 James4Ever0

Now you can use either Terminus 2 agent in Terminal Bench or use Termexec (my project).

https://tbench.ai/

https://pypi.org/project/termexec

James4Ever0 avatar Sep 21 '25 02:09 James4Ever0