8000 GitHub - IgorAlexey/ash: AI shell for every purpose · GitHub
[go: up one dir, main page]

Skip to content
IgorAlexeyPublic

About

AI shell for every purpose

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

31 Commits

Folders and files

Repository files navigation

    ash, a terminal AI agent

An AI agent takes a request in plain language, hands it to a model, and
the model works your tree with tools: shell, read, write, edit, grep.
And you see results colorized in a scrolling transcript. ash is such an
agent, written in C. the incumbents run on npm, and npm is garbage. The
naming clash with the 1989 Almquist shell may or may not be relevant,
but we're too young to remember that anyway.

Two ideas:

* The agent loop drives model and tools and emits a typed event
stream. The TUI is one consumer, --rpc is another.

* The framebuffer is the single writer to your tty. Widgets render into
cells, frames get diffed, and only the changed cells go out. The mouse
wheel scrolls the transcript, the prompt gives multiline editing,
clipboard, undo, and a selection across a soft-wrapped line copies the
logical text, character for character.

At startup ash runs a lua script, $ASH_EXT or init.lua in your config
dir. A script can add tools for the model to call, and nothing else
yet.

About

AI shell for every purpose

Resources

Stars

1 star

Watchers

0 watching

Forks

Contributors

Languages

0