aprender-shell

Crates.ioaprender-shell
lib.rsaprender-shell
version0.3.0
created_at2025-11-27 08:23:47.551425+00
updated_at2026-01-12 22:34:34.823635+00
descriptionAI-powered shell completion trained on your history
homepage
repositoryhttps://github.com/paiml/aprender
max_upload_size
id1953306
size502,087
Noah Gift (noahgift)

documentation

README

aprender-shell

AI-powered shell completion trained on your command history.

Installation

cargo install aprender-shell

Pre-trained Base Model

A base model trained on synthetic developer commands is available on Hugging Face Hub:

# Download base model
huggingface-cli download paiml/aprender-shell-base model.apr --local-dir ~/.aprender

# Use with aprender-shell
aprender-shell suggest "git " -m ~/.aprender/model.apr

Model: paiml/aprender-shell-base

The base model includes 401 common developer commands (git, cargo, docker, kubectl, npm, python, aws, terraform) and contains no personal data.

Usage

# Train on your zsh history (creates personalized model)
aprender-shell train

# Get completions for a prefix
aprender-shell suggest "git ch"

# Install zsh widget for tab completion
aprender-shell zsh-widget >> ~/.zshrc
source ~/.zshrc

Features

  • Sub-10ms suggestion latency
  • Context-aware N-gram completions
  • Privacy-safe: sensitive commands filtered automatically
  • Supports zsh and fish shell history formats
  • Incremental training on new commands

Fine-tuning

Start with the base model and fine-tune on your history:

# Download base model
huggingface-cli download paiml/aprender-shell-base model.apr -o base.apr

# Train incrementally on your history
aprender-shell train --base base.apr

License

MIT

Commit count: 952

cargo fmt