Ask a local language model for a shell command without leaving the terminal.
Run numbered example commands suggested by the model with a single keystroke.
Record and resume terminal sessions with the model's help included.
Connect external MCP tool servers to extend what the assistant can do.
| alaa-alawi/q | abrown/aom | adroxz1122/injected-host-enumeration | |
|---|---|---|---|
| Stars | 1 | 1 | 1 |
| Language | C | C | C |
| Last pushed | — | 2020-03-11 | — |
| Maintenance | — | Dormant | — |
| Setup difficulty | moderate | hard | moderate |
| Complexity | 3/5 | 5/5 | 3/5 |
| Audience | ops devops | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
Requires a local or remote OpenAI-compatible LLM server plus libcurl development headers to build.
q is a small command line tool, written in C, that blends normal shell commands with questions to an AI language model in the same terminal prompt. The idea is that instead of switching to a browser whenever you get stuck on a command, you can ask your question right there and get an answer, similar to having an experienced colleague sitting next to you. Running q in its interactive REPL mode gives you a numbered prompt where you can type ordinary shell requests in plain English, such as showing the last 100 nginx log lines, restarting a service, or finding large files modified recently. The tool sends that text to a local, OpenAI-compatible language model server and streams the response back to the terminal as it arrives. If the model's answer includes example shell commands in code blocks, those get numbered automatically so you can run one just by typing its number and a period, without retyping it. By default q talks to a language model server running on your own machine at 127.0.0.1, though the server address and port can be changed with environment variables, and an API key can be set if the server requires one. It also supports connecting to external MCP servers over HTTP, which extend the set of tools the model can call beyond the built in ones for reading time, reading files, and writing files. Other features include saving and resuming past sessions, keeping conversation context across multiple questions if you choose to, logging API requests and responses to a file, and a set of REPL slash commands for adjusting settings like timeouts and turn limits while the tool is running. The author describes q as a rough proof of concept built with around seven thousand lines of AI generated code, used daily as a personal tool, and released so others can experiment with it rather than waiting for a polished version. It requires libcurl development headers to build and installs with a standard make and make install workflow.
A terminal tool written in C that lets you ask an AI language model questions alongside normal shell commands.
Mainly C. The stack also includes C, libcurl, MCP.
The README does not state a license.
Setup difficulty is rated moderate, with roughly 30min to a first successful run.
Mainly ops devops.
This repo across BitVibe Labs
Verify against the repo before relying on details.