SEER - Shell Enhanced Execution & Reasoning
Project description
SEER - Shell Enhanced Execution & Reasoning
LLM-powered assistant for your terminal. Get contextual help from your local or cloud LLM based on what just happened in your shell — errors, failed commands, unexpected output.
Inspired by PEEL for PowerShell.
Supported platforms: macOS, Linux
Supported shells: zsh, bash
$ git pull-request
git: 'pull-request' is not a git command. See 'git --help'.
$ seer help
The command `git pull-request` is not valid. Use `git pull` to fetch and
merge, or install the `gh` CLI and run `gh pr create` to open a pull request.
How it works
Shell hooks (PROMPT_COMMAND / precmd) save your terminal's scrollback after every command. When you run seer help, the saved context is sent to your LLM of choice. No copy-pasting, no switching windows.
With tmux, the full screen output (including stderr) is captured. Without tmux, the last command and exit code are saved as fallback.
Installation
Method 1: Installer (Recommended)
Run directly from GitHub — installs seer, sets up shell integration and implicit mode:
curl -fsSL https://raw.githubusercontent.com/zeddius1983/seer/main/install.sh | bash
uv is installed automatically if not already present. To install a specific version or branch:
# By version tag
curl -fsSL https://raw.githubusercontent.com/zeddius1983/seer/main/install.sh | bash -s -- --version v1.1.0
# By branch
curl -fsSL https://raw.githubusercontent.com/zeddius1983/seer/main/install.sh | bash -s -- --version feature/v1.1.0
--version accepts any git ref (tag, branch, or SHA). It can be combined with other flags:
curl -fsSL https://raw.githubusercontent.com/zeddius1983/seer/main/install.sh | bash -s -- --version v1.1.0 --all
Note: Whenever
~/.zshrcis modified, a backup is created first as~/.zshrc.YYYYMMDD_HHMMSS.bak.
Method 2: Build from source
git clone https://github.com/zeddius1983/seer
cd seer
uv tool install .
Uninstallation
If you installed via the installer (Method 1):
curl -fsSL https://raw.githubusercontent.com/zeddius1983/seer/main/install.sh | bash -s -- --uninstall
Usage
Implicit Mode (Ctrl+Space)
Implicit mode is installed automatically with seer. Type any question directly into your terminal and press Ctrl+Space:
find the largest file in this folder[Press Ctrl+Space]
# Instantly expands and runs: seer find the largest file in this folder
Standard Commands
# Explain what just went wrong
seer help
# Ask anything shell-related
seer how to list all datasets in a ZFS pool
seer what does SIGKILL mean
seer how do I find which process is using port 8080
# Let seer do it — generates a command, shows it, asks before running
seer do find the largest file in ~/Downloads
seer do show disk usage by folder in /var
seer do list all listening ports
# Tip: quote the task if it contains apostrophes or special characters
seer do "show all files modified in the last week"
seer do "find the largest file and show it's size in MB"
# Pipe output directly (no shell hook needed)
kubectl get pods 2>&1 | seer
journalctl -xe | seer why is nginx failing
# Skip context, ask a clean question
seer --no-context explain the difference between hard and soft links
# Raw output — no glow or rich rendering
seer --raw how do I list open ports
seer -r help
# Use a specific provider or model for one query
seer -p anthropic help
seer -p openai -m gpt-4o how do I list listening ports
Subcommands
| Command | Description |
|---|---|
seer help |
Analyse your last terminal output and explain errors |
seer do <task> |
Generate a shell command, preview it, confirm before running |
seer config |
Show the active config file, or create a default one |
seer --context |
Show the full system prompt and captured terminal context |
seer --stats |
Show provider, model, context size, and system info |
Flags
| Flag | Short | Description |
|---|---|---|
--no-context |
Skip attaching terminal context | |
--raw |
-r |
Disable glow and rich rendering, stream plain text |
--provider <name> |
-p |
Override the active provider for this query |
--model <name> |
-m |
Override the model for this query |
Configuration
Generate the default config file:
seer config
This creates ~/.config/seer/config.yaml:
provider: lmstudio # active provider
providers:
lmstudio: # LM Studio (or any OpenAI-compatible local server)
type: openai
base_url: http://localhost:1234/v1
api_key: lmstudio
model: google/gemma-3-4b
ollama:
type: openai
base_url: http://localhost:11434/v1
api_key: ollama
model: llama3.2
openai:
type: openai
model: gpt-4o
api_key: sk-... # or set OPENAI_API_KEY env var
anthropic:
type: anthropic
model: claude-sonnet-4-6
api_key: sk-ant-... # or set ANTHROPIC_API_KEY env var
# Any OpenAI-compatible endpoint (vLLM, llama.cpp, etc.)
custom:
type: openai
base_url: http://myserver:8080/v1
api_key: none
model: my-model
Supported providers
| Provider | type |
Notes |
|---|---|---|
| LM Studio | openai |
Default. Set base_url: http://localhost:1234/v1 |
| Ollama | openai |
Set base_url: http://localhost:11434/v1 |
| vLLM | openai |
Set base_url: http://localhost:8000/v1 |
| llama.cpp | openai |
Set base_url: http://localhost:8080/v1 |
| OpenAI | openai |
Set OPENAI_API_KEY |
| Anthropic | anthropic |
Set ANTHROPIC_API_KEY |
| Any OpenAI-compatible endpoint | openai |
Set base_url to your server |
Development
git clone https://github.com/zeddius1983/seer
cd seer
# Install dev environment
uv sync
# Run directly without installing
.venv/bin/seer --help
# Build a wheel
uv build
# → dist/seer-1.0.0-py3-none-any.whl
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file seer_ai-1.0.0.tar.gz.
File metadata
- Download URL: seer_ai-1.0.0.tar.gz
- Upload date:
- Size: 39.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04b26281c0459c067eecec6e15eff461efbda375eb3ad9231aec7c8fe82302ce
|
|
| MD5 |
49709d140b681f03ef6e4d9e281ad073
|
|
| BLAKE2b-256 |
8ca6e53437c9cdb784f168e65dc3c93cb3d4d8e5b960ff8ea85b9fab3b4e9301
|
Provenance
The following attestation bundles were made for seer_ai-1.0.0.tar.gz:
Publisher:
publish.yml on zeddius1983/seer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
seer_ai-1.0.0.tar.gz -
Subject digest:
04b26281c0459c067eecec6e15eff461efbda375eb3ad9231aec7c8fe82302ce - Sigstore transparency entry: 1820098744
- Sigstore integration time:
-
Permalink:
zeddius1983/seer@65c3394e6712197eb1887d59673153e6c74d7b92 -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/zeddius1983
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@65c3394e6712197eb1887d59673153e6c74d7b92 -
Trigger Event:
release
-
Statement type:
File details
Details for the file seer_ai-1.0.0-py3-none-any.whl.
File metadata
- Download URL: seer_ai-1.0.0-py3-none-any.whl
- Upload date:
- Size: 20.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d89e535c2f1ba8b8bd1bd330d76b350c462299598dfba63dc7e21cc9f26c1b3a
|
|
| MD5 |
8ed075ab1175dce1741b351c3b115d64
|
|
| BLAKE2b-256 |
efcb713c092d036d15bb858fb6002d20834b24531df9d74bcd69353dd90c4571
|
Provenance
The following attestation bundles were made for seer_ai-1.0.0-py3-none-any.whl:
Publisher:
publish.yml on zeddius1983/seer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
seer_ai-1.0.0-py3-none-any.whl -
Subject digest:
d89e535c2f1ba8b8bd1bd330d76b350c462299598dfba63dc7e21cc9f26c1b3a - Sigstore transparency entry: 1820098752
- Sigstore integration time:
-
Permalink:
zeddius1983/seer@65c3394e6712197eb1887d59673153e6c74d7b92 -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/zeddius1983
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@65c3394e6712197eb1887d59673153e6c74d7b92 -
Trigger Event:
release
-
Statement type: