Qwerty v3 — Tool Agent with Optional LLM Brain
Pure Python stdlib. Zero dependencies. Optional AI via Ollama.
pip install qwerty-agent → qwerty
How It Works
You → Qwerty TUI
│
├── LLM Brain (Ollama) ← if installed
│ └── understands you, calls tools, generates response
│
└── Direct tools ← fallback
├── /web, /wiki, /run, /read, /write
├── /search, /find, /list
└── text normalization + fuzzy matching
Without Ollama: Qwerty works as a direct tool agent (commands like /web, /run, /read).
With Ollama: Qwerty becomes an AI agent that understands natural language and decides when to use tools.
Quick Start
pip install qwerty-agent
qwerty "explain what a kernel is"
For AI mode:
# Install Ollama: https://ollama.com
ollama pull qwen2.5:7b
qwerty
Features
- 12 tools: read, write, edit, replace, append, list, search, find, run, web search, wikipedia, learn
- LLM Brain: optional Ollama integration — understands natural language, calls tools autonomously
- Text normalization: shorthand expansion, contraction handling, character dedup, fuzzy matching
- Constitution safety: blocks dangerous commands, secrets leaks, unauthorized file overwrites
- Persistent memory: learned facts survive across sessions
- Beautiful TUI: colors, dividers, timestamps, tab completion, command history
- No dependencies: pure Python stdlib — runs on any system with Python 3.10+
Commands
| Command | Description |
|---|---|
/web <query> |
Search the web |
/wiki <topic> |
Look up Wikipedia |
/run <cmd> |
Run shell command |
/read <path> |
Read a file |
/write <path> |
Write a file |
/search <text> |
Search files for text |
/find <pattern> |
Find files by name |
/brain |
Check LLM connection |
/status |
Agent status |
/help |
Show help |
Architecture
qwerty-agent/
├── qwerty_agent/
│ ├── agent.py # Tool implementations + process()
│ ├── brain.py # Ollama LLM connector
│ ├── interface.py # TUI (colors, history, tab completion)
│ ├── protocol.py # JSON-RPC / MCP server
│ └── constitution.json # Safety rules
├── test_all.py # 46 tests
├── pyproject.toml
└── README.md
Requirements
- Python 3.10+
- No pip packages needed
- Ollama (optional) for AI mode
Tests
python test_all.py
Metadata
Release files for qwerty-agent 3.0.2
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 |
|---|---|---|---|---|
| qwerty_agent-3.0.2.tar.gz | 17.8 kB | Without provenance | Details for qwerty_agent-3.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| qwerty_agent-3.0.2-py3-none-any.whl | Python 3 | none | any | Details for qwerty_agent-3.0.2-py3-none-any.whl |
Total release size: 36.7 kB
Release files / qwerty_agent-3.0.2.tar.gz
| Download URL | qwerty_agent-3.0.2.tar.gz |
|---|---|
| Size | 17.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f03044cd0af6ab4bcf87face83ab8a029390557b5a47a6e84d1bccd06e7b623f
|
|
BLAKE2b-256 checksum How to use checksums |
efb4330701e393c1314afb163dcf4cd9d2b9b2786779dc196fc01189e131125e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5
|
Release files / qwerty_agent-3.0.2-py3-none-any.whl
| Download URL | qwerty_agent-3.0.2-py3-none-any.whl |
|---|---|
| Size | 18.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
67227903a2ccec2b1373ec6f055783d9b9489860a5d1835f6d2f7e5b8683f0bb
|
|
BLAKE2b-256 checksum How to use checksums |
706c2f4c7bdf985d34c84e0580f7634a1bd3ba82e4d599bf14966047cbec4d99
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5
|
Security for qwerty-agent 3.0.2
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.