This release is a pre-release and may not be stable for production use.
🌌 What is Assistant?
Assistant is a natural language shell that merges a full-featured Xonsh command line interface with a multi-agent generative language model system. More than just a command interface, it functions as a true collaborative Meta-Shell: an integrated co-process that shares the same execution environment and namespace as the user.
By breaking through the plain-text barrier typical of traditional shells (such as Bash), Assistant enables humans and information to engage in dialogue, as well as to directly inspect and manipulate rich, typed Python objects in real time to implement natural language as a Turing-complete programming medium to manipulate logic.
⚙️ The Architectural Pillars
| Feature | Description |
|---|---|
| 🤖 Multi-Agent Architecture | A central orchestrator analyzes your intent and dynamically delegates tasks to specialized agents (a system agent for local operations, a web agent for research). |
| 🧠 Shared Runtime (Live Python Heap) | The agent has direct access to variables and data structures in memory (DataFrames, models, Python objects), eliminating unnecessary serialization steps and reducing token consumption. |
| 🔌 Multi-Provider Support | Compatible with Ollama, vLLM, OpenAI, or any other OpenAI-compatible API; fully configurable via a single configuration file (~/.assistant/config.toml). |
| 🛠 Native and Intelligent Commands | Includes advanced commands such as interpret — a typed, color-coded expression evaluator that serves as a superior alternative to the traditional echo for linking system streams with Python objects. |
| 🔍 Integrated Web Search | Augmented search via SearXNG, powered by a dedicated research agent capable of extracting information and synthesizing reports with citations. |
| 📁 Autonomous File Operations | The agent can read, write, and edit code or configuration files directly within your working environment. |
| 🖥 TUI Passthrough | Seamless execution of interactive full-screen applications (vim, htop, less, etc.) without hijacking the session's TTY stream. |
| 🗣 Voice Interface (Optional) | Text-to-speech (TTS) via say and speech-to-text (STT) via listen. |
🚀 Philosophy: From Shell to Meta-Shell
While a traditional terminal limits interaction to the interpretation of text strings, the xonsh and Assistant ecosystem transforms the terminal into a shared space for reasoning:
-
Zero Friction: Switch instantly from a standard shell command to a natural-language query, or execute Python code and list comprehensions on the fly.
-
Reduced Cognitive Load: The agent handles syntactic complexity and information retrieval, allowing you to focus on architecture and high-level decision-making.
-
Security and Control: Managed autonomy, where every change to a file or system state is validated within the same interactive workspace.
Assistant redefines the text-based interface for the era of contextual intelligence. Welcome to the future of your terminal.
Quick Start
1. Install
pip install assistant
Other installation methods
From source (latest development):
pip install -U git+https://gitlab.com/waser-technologies/technologies/assistant.git@v2
From a local clone:
git clone https://gitlab.com/waser-technologies/technologies/assistant.git
cd assistant
pip install -U .
Arch Linux (AUR):
pacman -S python-assistant
Read Use Assistant as Your Default Shell for more information.
2. Run the Configuration Wizard
On the first launch the wizard starts automatically. You can also re-run it at any time:
assistant config
The wizard asks you to choose:
- Provider — Ollama (local), vLLM (local), LM Studio, OpenRouter, Google, NVIDIA, or OpenAI (API).
- Endpoint — API base URL (e.g.
http://localhost:11434/v1). - API Key — leave the default for local providers, or enter your API key.
- Store in keyring — optionally store the API key securely in your system keyring.
- Model — model identifier (e.g.
qwen3.6:latest,gpt-4o). - Context length — how many tokens the model supports.
- Reasoning — enable/disable thinking traces.
- Web search — enable SearXNG and configure its URL.
The configuration is saved to ~/.assistant/config.toml.
3. Start Assistant
assistant
That's it: you're in. Type commands, ask questions, or mix both.
Requirements
- Python 3.9+
- An LLM backend — one of:
- (optional) SearXNG instance for web search
- (optional)
sayfor text-to-speech - (optional)
listenfor speech-to-text
Usage
CLI options
assistant --help
assistant --version
assistant config # (re)run the configuration wizard
assistant -c "what time is it" # single query, then exit
assistant -n # skip the interactive intro message (warmup)
assistant Hello Assistant # one-shot query
assistant # interactive mode
Interactive Mode
waser@host ~
? Hi Assistant.
Hello! How can I assist you today?
waser@host ~
? What is the current working directory?
ℹ Executing: echo $PWD
/home/waser
You are currently in your home directory.
waser@host ~
? How many moons does Saturn have?
ℹ Searching the Web for: How many moons does Saturn have?
Saturn has 146 confirmed moons as of 2024.
Mix Shell and Natural Language
You can run any valid shell command or Python expression, and when Assistant does not recognise a command it treats your input as a question:
? ls -la
? echo $USER
? Can you count the files in this directory?
ℹ Executing: ls -1 | wc -l
20
There are 20 entries in the current directory.
Natural language with syntax errors (e.g. single quotes like c'est quoi?) is
automatically routed to the NLP agent instead of raising a Python SyntaxError.
Multi-Agent Hand-offs
The Orchestrator can hand off tasks to specialised agents:
- System agent — runs shell commands, manages files, executes Python code in the shared xonsh session.
- Web researcher — searches the web via SearXNG, reads web pages, and produces reports with citations.
- Memory agent — stores and retrieves persistent information from the memory database.
- Completer agent — provides text completion suggestions for the CLI.
Hand-offs happen automatically based on the query context.
Exit the Session
Type any exit-like command and Assistant will understand:
? exit
? Q
? :q
? quit
? stop()
? terminate
? This conversation is over.
Configuration
The configuration lives in ~/.assistant/config.toml. Here is an example:
[provider.ollama]
endpoint = "http://localhost:11434/v1"
credential = "keyring:ollama"
[model.qwen]
id = "qwen3.6:latest"
name = "Qwen 3.6 (9B)"
provider = "ollama"
context_length = 256000
think = false
temperature = 0.1
[agent.orchestrator]
name = "Orchestrator"
model = "qwen"
description = "Main orchestrator; handles general conversations and delegates tasks."
instructions = "You are Assistant, a sentient artificial intelligence..."
tools = ["xonsh", "web_search"]
handoffs = ["system", "web", "memory"]
[agent.system]
name = "System"
model = "qwen"
description = "System shell agent for OS interaction."
tools = ["xonsh"]
handoffs = []
[agent.web]
name = "Web Researcher"
model = "qwen"
description = "Web research agent with search and page reading."
tools = ["web_search"]
handoffs = []
[agent.memory]
name = "Memory"
model = "qwen"
description = "Memory management agent for persistent storage."
tools = ["memory_search", "memory_add"]
handoffs = []
[web_search]
enabled = true
searxng_url = "http://localhost:8888"
[completion]
enabled = true
wait_timeout = 1
request_timeout = [10.0, 300.0]
[execution]
max_turns = 50
temperature = 0.1
max_command_output_length = 10000
command_timeout = 180
[memory]
enabled = false
max_entries = 100
[context]
compaction_threshold = 0.8
sliding_window_first = 2
sliding_window_last = 8
use_summarization = true
Adding a New Provider
Just add a new section under [provider]:
[provider.openai]
endpoint = "https://api.openai.com/v1"
credential = "keyring:openai"
[model.gpt4o]
id = "gpt-4o"
name = "GPT-4o"
provider = "openai"
context_length = 128000
Then reference model = "gpt4o" in any agent.
Credential Storage
Credentials are resolved in this order:
- Environment variable —
ASSISTANT_{PROVIDER}_API_KEY(e.g.,ASSISTANT_OPENAI_API_KEY) - System keyring — if credential starts with
keyring:, the value afterkeyring:is used as the keyring service name - OpenAI fallback — for OpenAI provider, also checks
OPENAI_API_KEYstandard env var - Plain text — last resort (not recommended)
To store credentials securely in your system keyring, use assistant config and select "Store in keyring" when prompted, or manually:
import keyring
keyring.set_password("assistant", "openai", "sk-...")
Available Tools
| Tool | Description |
|---|---|
xonsh |
Execute shell commands or Python code in the shared xonsh session |
web_search |
Search the web via SearXNG |
read_webpage |
Fetch and extract readable text from a URL |
read_file |
Read file contents with optional line range |
write_file |
Create or overwrite files |
edit_file |
Find-and-replace text in existing files |
memory_search |
Search persistent memory (when memory is enabled) |
memory_add |
Add entries to persistent memory (when memory is enabled) |
Using Voice
Text-To-Speech
Install say and make sure the service is running:
assistant say Hello World and welcome to everyone.
Assistant supports streaming TTS — sentences are spoken as they arrive during the LLM response, with a karaoke-style display showing which sentence is being pronounced. Press Ctrl+C to stop TTS playback at any time.
Speech-To-Text
Install listen and enable the listen services.
Keyboard Shortcuts
| Shortcut | Action |
|---|---|
[Ctrl]+[O] |
Toggle TTS on/off (enable or disable text-to-speech) |
[Ctrl]+[Q] |
Toggle STT on/off (enable or disable speech-to-text) |
[Ctrl]+[Space] |
Trigger one-shot speech recognition (listen for a sentence) |
[Ctrl]+[C] |
Stop TTS playback immediately |
Note: These shortcuts require a terminal that supports the Kitty keyboard protocol or xterm
modifyOtherKeysmode (enabled automatically by Assistant).
Voice Configuration
Voice settings are stored in the voice section of ~/.assistant/config.toml:
[voice]
tts_enabled = true
stt_enabled = true
tts_key = "Ctrl+O"
stt_key = "Ctrl+Q"
listen_key = "Ctrl+Space"
You can configure voice settings in three ways:
- Configuration wizard —
config→ "Voice Settings" - Direct CLI —
config voice <key> <value>(e.g.,config voice tts_enabled false) - Manual edit — edit
~/.assistant/config.tomldirectly
Toggle shortcuts ([Ctrl]+[O], [Ctrl]+[Q]) update the config automatically when pressed, so the runtime state persists across sessions.
Use Assistant as Your Default Shell
Assistant is a full Xonsh shell, so it reads the same RC files which means your existing config carries over as-is.
Read more about Xonsh Installation Guide and its Run Control Files.
Install Assistant in a Stable, Isolated Environment
so a system Python upgrade can't break your shell
Example with uv
env_root=~/.venvs
env_path=${env_root}/assistant
python_path=${env_path}/bin/python
mkdir -p $env_root
uv venv $env_path --python 3.13
uv pip install --python ${python_path} assistant
From there to update Assistant, simply run:
uv pip install --python ${python_path} -U assistant
Create a Dedicated Terminal Profile
Since Assistant is a natural language shell and Xonsh is not ready to be fully POSIX compliant, it is highly recommended that you create a dedicated profile for Assistant beside Xonsh and your other shells, directly inside your terminal application, where you can set Assistant as your default shell, instead of registering it for the system.
The path to Assistant is defined as shown in this example.
assistant_bin=${env_path}/bin/assistant
You can also create a symbolic link to Assistant in ~/.local/bin (or any other location in $PATH) so that Assistant is easily accessible.
ln -s $assistant_bin ~/.local/bin
Or you could add ${env_path}/bin to your $PATH.
Register Assistant as a Shell for the System
sudo sh -c "echo ${assistant_bin} >> /etc/shells"
chsh -s $assistant_bin
Log out and back in, Assistant is now your default shell.
Security Notice & Disclaimer
Assistant is an interactive natural language shell — by definition, it executes commands and interacts with your local environment, files, and processes. Please do not open security issues claiming that "Assistant can run shell commands" or "an LLM with tools can modify files"; that is literally what a shell does.
This open-source project is provided "AS IS" without warranty of any kind, for research, experimentation, and personal productivity. Connecting uncensored, abliterated, or locally hosted untrustworthy models can remove upstream refusals and increases operational risk on sensitive systems. You are solely responsible for the models you connect, the permissions granted to the shell and its agents, treating external inputs as untrusted, and complying with all applicable laws, regulations and authorization rules. The author(s) and maintainer(s) assume no liability or responsibility in any way, shape, or form for any misuse, damage, data loss, or policy violation resulting from the use or inability to use this software.
Performance Optimizations
Assistant includes several performance optimizations:
- Lazy NLP initialization of the natural language interface
- Deferred imports of heavy ASR/TTS dependencies (numpy, scipy, pyaudio)
- Fast-path for built-in commands
Contributions
Want to improve the project? Check out CONTRIBUTING.md.
Credits
Thanks to all the projects that make this possible:
Metadata
Release files for assistant 2.2.3b1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| assistant-2.2.3b1.tar.gz | 324.8 kB | Without provenance | Details for assistant-2.2.3b1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| assistant-2.2.3b1-py3-none-any.whl | Python 3 | none | any | Details for assistant-2.2.3b1-py3-none-any.whl |
Total release size: 552.1 kB
Release files / assistant-2.2.3b1.tar.gz
| Download URL | assistant-2.2.3b1.tar.gz |
|---|---|
| Size | 324.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
893ec8f20211348f5e37be86f060e5cb66010904157d121e66d1e7733ab01b13
|
|
BLAKE2b-256 checksum How to use checksums |
30c310fea74759873308578cbac4bdb1017a58201184b29ddeabe21f8e09c9d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.11
|
Release files / assistant-2.2.3b1-py3-none-any.whl
| Download URL | assistant-2.2.3b1-py3-none-any.whl |
|---|---|
| Size | 227.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3d6e51290cd5aba241b47b1bccfcff97dbb181d4bd0ddc08ecdc777d6d38c01c
|
|
BLAKE2b-256 checksum How to use checksums |
abbb83670f2b9c799328aca42a6533c8861f9847592eed6421a83050f6adcbcb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.11
|
Security for assistant 2.2.3b1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.