aiman
Tiny on-device models that turn plain-English intent into Linux commands, one command at a time.
$ aiman find "delete .log files older than 30 days in /var/log"
find /var/log -type f -name '*.log' -mtime +30 -delete
destructive -- would affect 3 item(s):
/var/log/app.log
...
type 'yes' to run:
No LLM and no GPU: each tool is a slot-filling model (a token tagger plus a few sentence
classifiers, about 5 MB) and a deterministic rule engine that writes the command.
Destructive commands are previewed and need an explicit yes.
Benchmark: aiman find vs Qwen2.5-Coder-0.5B (Q4_K_M, llama.cpp)
Same intents, same machine (x86_64, 8 CPUs). Latency is per intent.
| Metric | aiman | Qwen 0.5B Q4 |
|---|---|---|
| Size on disk | 5.3 MB | 491.4 MB |
| Cold start + answer, median | 1722 ms | 1208 ms |
| Warm answer, median | 22.1 ms | 528.0 ms |
| Warm answer, p95 | 24.7 ms | 907.3 ms |
| Accuracy, val (templated), in-schema | 97.1% (202/208) | 17.3% (36/208) |
| Accuracy, val (templated), all items | 86.7% (202/233) | 15.5% (36/233) |
Caveat: the validation set comes from the same template generator aiman is trained on,
so these accuracy numbers favour aiman and overstate how it does on real phrasing. Qwen gets
a 2-shot prompt with greedy decoding and no fine-tuning. Reproduce with pytest -m bench -s
(see tests/test_llm_baseline.py); full output in results/baseline.md.
Per-tool accuracy
| Tool | Status | In-schema accuracy (val) | Model size |
|---|---|---|---|
| find | v0.1 | 97.1% | 5.2 MB |
| ls | v0.2 | 99.2% | 3.6 MB |
Quick start
pip install -e . # needs scikit-learn, joblib
aiman all find # build dataset -> train -> evaluate (~35 s on a laptop CPU)
aiman find -n "count jpg files in my home folder"
Layout
aiman/
cli.py aiman <tool> "intent" | build | train | eval | all | list
core/ shared by every tool
tool.py plugin contract (Tool base class)
tagger.py span tagger (BIO)
classifiers.py sentence classifiers
pipeline.py dataset -> labels -> train -> evaluate -> Predictor
safety.py show / preview / confirm / run
registry.py discovers aiman/tools/*
tools/
find/ one folder per command
schema.json slots the tool understands
templates.py intent -> command data generator
slots.py parse / build / tag / targets
rules.py lexicons, normalisers, assemble()
fixture.py sandbox for validation and equivalence
tests/
data/, models/ generated, git-ignored
Adding a command
- Copy
aiman/tools/find/toaiman/tools/<cmd>/. - Write
schema.json: the slots the command needs. - Write
templates.py: intent/command pairs covering its options. - Implement the
Toolmethods (seeaiman/core/tool.py). - Add
tests/test_<cmd>.py, runaiman all <cmd>andpytest.
See ROADMAP.md for the order commands are added.
Metadata
Release files for aimancli 0.2.0
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 |
|---|---|---|---|---|
| aimancli-0.2.0.tar.gz | 59.0 kB | Without provenance | Details for aimancli-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aimancli-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for aimancli-0.2.0-py3-none-any.whl |
Total release size: 113.8 kB
Release files / aimancli-0.2.0.tar.gz
| Download URL | aimancli-0.2.0.tar.gz |
|---|---|
| Size | 59.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7c5fe3dbbd8c5d61765c392f22236cb82aab6486b1291bfba7d66b068b17a1a2
|
|
BLAKE2b-256 checksum How to use checksums |
19e6077364a9690946a365629944a2152f2b0c8f1be12297b6067ca36726486b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Release files / aimancli-0.2.0-py3-none-any.whl
| Download URL | aimancli-0.2.0-py3-none-any.whl |
|---|---|
| Size | 54.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ec08e083203df3121633f8cf373e84ed6c46725f07e6535d8067654b5d65eeb1
|
|
BLAKE2b-256 checksum How to use checksums |
4b1152504d1a2766dc6670a17e3431fed2fced7382e03b8499054d87724771da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Security for aimancli 0.2.0
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.