slash-agent
Type /agent in your shell and an LLM reads the terminal error and proposes commands you approve and run in place.
- Source repo
- akatzmann/slash-agent
- Stars
- ★ 11
- Last updated
- 7d ago v0.2.1
- FARS reviewed
- Nov 08, 2026
- License
- Apache-2.0
- Primary language
- Python
- FA score
- 50/100 · Major gaps
At a glance
- Works with
- Universal · cross-platformChatGPT · Claude Code · OpenAI API
- You'll need
- Typical use
- A developer whose build or test suite just failed types /agent Fix this and lets the agent read the traceback in the tmux scrollback and install the missing dependency.
- Main limitation
- Native Windows CMD/PowerShell is not supported; Windows users must run it inside WSL2.
- Maintenance
- Commits in the last 30 dayslast commit 2026-11-26latest release v0.2.1 (2026-10-11)
- Source review
- 50/100 · Major gaps
What does this agent do, and when should you use it?
slash-agent is a command-line LLM copilot that lives inside your active Bash, Zsh, Ksh or Fish session: a shell wrapper (bin/slash-agent.sh) registers an /agent command that hands off to a Python orchestrator (slash_agent/main.py). It scrapes the current tmux pane scrollback or shell history as context, then calls a local Ollama instance, OpenAI, Azure OpenAI, or any OpenAI-compatible endpoint such as llama.cpp or vLLM. Proposed commands run through a real pseudo-terminal behind a y/n/e/c confirmation loop, so you can see colored output, progress bars and answer sudo prompts interactively. On exit a temporary sourcing script pushes cd and export changes back into the parent shell. The tool is entirely on-demand with no daemon or idle memory use; native Windows is unsupported and WSL2 is required there.
Running /agent or agent triggers the shell wrapper, which captures context (up to AGENT_TMUX_LINES, default 50 lines of tmux scrollback, falling back to AGENT_HISTORY_COMMANDS, default 20 history entries) and invokes slash_agent/main.py. The orchestrator connects to an LLM using AGENT_BACKEND (ollama, openai, azure_openai, dummy) plus AGENT_ENDPOINT and AGENT_MODEL, with optional AGENT_THINKING_LEVEL, AGENT_TEMPERATURE and AGENT_TOP_P. Each returned command is shown as Confirm action: [y]es / [n]o / [e]dit / [c]omment before being executed in the PTY bridge; -n/--dry-run previews the plan, -y/--yes skips routine confirmations, and --unsafe-yes also auto-confirms critical commands such as rm -rf or sudo. After execution the exit code, PWD and environment updates are written to a sync file that the parent shell sources. It also discovers SKILL.md files from .agent/skills/, .claude/skills/, .github/skills/ and global skill directories.
- A developer whose build or test suite just failed types /agent Fix this and lets the agent read the traceback in the tmux scrollback and install the missing dependency.
- Someone setting up a local database, docker compose file or systemd service asks /agent for the commands and approves each one instead of looking up flags.
- An engineer in an offline or regulated environment points AGENT_BACKEND at local Ollama so terminal logs and source code never leave the machine.
- A user who wants directory and environment changes to persist in the main shell relies on the cd/export parent-shell sync instead of an isolated subshell.
- A cautious user previews the agent's plan with /agent -n before letting anything touch the system.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Install / run
pipx install slash-agent && slash-agent init --installpip install slash-agent && slash-agent init --installcurl -fsSL https://raw.githubusercontent.com/akatzmann/slash-agent/master/bin/installer.sh | bashpip install -r requirements.txt
- Environment variables
AGENT_MODELAGENT_ENDPOINTOPENAI_API_KEY- Config files
~/.slash-agent/bin/slash-agent.sh~/.slash-agent/bin/slash-agent.fish~/.config/slash-agent/env- Install notes cover
- Windows · macOS · WSL · Docker
How do you install or deploy this agent?
Install with pipx and register shell integration:
pipx install slash-agent && slash-agent init --installOr with pip:
pip install slash-agent && slash-agent init --installThen restart the shell or reload it manually:
source ~/.bashrcIf you prefer not to use pipx, a self-contained curl installer is available:
curl -fsSL https://raw.githubusercontent.com/akatzmann/slash-agent/master/bin/installer.sh | bashFor development from source, clone the repo, install requirements and source the shell script:
pip install -r requirements.txt
source ~/.slash-agent/bin/slash-agent.shFish users source ~/.slash-agent/bin/slash-agent.fish; on macOS use ~/.bash_profile or ~/.zshrc. Windows users must install inside WSL2.
How do you use this agent?
Configure the backend, by default in ~/.config/slash-agent/env (override with SLASH_AGENT_CONFIG_FILE):
export AGENT_BACKEND="ollama"
export AGENT_MODEL="gemma4:latest"
export AGENT_ENDPOINT="http://127.0.0.1:11434"
export OPENAI_API_KEY=""
export AGENT_TMUX_LINES=50
export AGENT_HISTORY_COMMANDS=20
export AGENT_THINKING_LEVEL="off"Or run the interactive setup wizard, pre-filled with current values:
/agent --configureThen invoke it anywhere in the terminal:
/agent Fix this crash
/agent -n setup a docker compose file for PostgreSQL and Redis
/agent -y update package lists and install treeUpdate to a new release with:
/agent --updateSafety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
What are this agent's strengths and limitations?
- Truly on-demand: no daemon, no keystroke listeners, 0MB idle memory, a sharp contrast with resident project agents.
- Reads the active tmux scrollback or shell history directly, removing the copy-paste step when diagnosing a crash.
- Executes in a real PTY so colored output, progress bars and interactive sudo password prompts work, while keeping a y/n/e/c steering loop and a dry-run mode.
- Syncs cd and export back to the parent shell via a temporary sourcing script, solving the subshell-can't-change-parent problem.
- Model agnostic with full local Ollama and OpenAI-compatible support, so terminal data can stay on-device; discovers SKILL.md files in Claude, Copilot and Gemini skill formats.
- Native Windows CMD/PowerShell is not supported; Windows users must run it inside WSL2.
- Commands execute against your live environment rather than a sandbox, and -y/--unsafe-yes bypasses confirmations, shifting blast-radius and cost risk to the user.
- Cloud backends require your own OpenAI/Azure keys and quota management; local use requires you to run Ollama or a compatible server.
- The README itself scopes it out of large repository architecture work and big refactors, limited by terminal-scrollback context.
- The README's MIT license badge conflicts with the repository's Apache-2.0 metadata, so license terms need verification before adoption.
- Default model names such as gemma4:latest must already be pulled locally, and troubleshooting across every backend is not fully documented.
How does this agent compare with similar options?
The README names three alternative classes directly: standard web UIs such as ChatGPT and Claude (manual copy-paste context, read-only, cloud only), shell copilots such as Copilot CLI or gh cli (print text for you to run, no parent-shell sync, cloud only), and project agents such as Aider or Claude Code (read the whole git repo, heavy idle runtimes, built for large autonomous feature work). It positions itself as an emergency lever after a crash rather than a replacement for deep coding sessions.
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| slash-agent This agent | 50 · Major gaps | — | ★ 11 | 7d ago | Python | ChatGPT · Claude Code · OpenAI API |
| Codehamr | 59 · Major gaps | CLIFree + model costs | ★ 224 | 2mo ago | Go | — |
| Nanocoder | 73 · Some gaps | CLIFree + model costs | ★ 2.6k | 1d ago | TypeScript | OpenAI API · Claude API |
| little-coder: Lightweight Local Coding Agent | 72 · Some gaps | CLIFree + model costs | ★ 2.8k | 2mo ago | TypeScript | — |
How does FollowAgents rate this agent?
Why each dimension lost points
The source and security guide describe execution as the current user, escalation for sensitive paths, risk levels, and interactive confirmation. README also offers --yes and --unsafe-yes, and the stated boundary relies on static inspection, so least privilege and consent merit moderate scores. The docs explain cloud APIs, BYOK, local endpoints, and temporary-log permissions, showing the main data paths, but the packet does not expose complete network or key-handling implementation. The dependency list is short, yet includes a Git-sourced dependency with no lock or audit evidence. The agent runs host commands, writes files, and syncs shell state; recovery support is only thinly described. Contributor and maintainer attribution is limited, and publisher identity is unknown.
The README, install notes, security guide, and test samples partly corroborate core commands, shell integration, and log handling, but the zero-idle-overhead claim is not established across the full implementation in this packet. Multiple model endpoints and POSIX shells are described, while dependency availability and compatibility are not adequately established by the supplied material. The security guide describes risk classes and log collapsing, but the supplied source excerpt does not show end-to-end error handling, leaving failure-message evidence limited.
The docs identify developers as the audience and list troubleshooting, dependency repair, and scripting scenarios; they also state that large architecture refactors and native Windows are outside scope. Shell, model, and local/cloud options show some environmental fit. However, skill discovery is described broadly, with little evidence specifying trigger conditions or firm applicability boundaries.
The README is organized around quick start, security, configuration, usage, and technical details; it gives installation paths, shell setup, examples, and limitations. The project metadata and license text identify Apache-2.0, but the README badge and sample skill metadata say MIT, so licensing is inconsistent and does not earn full marks. Both slash-agent and agent names appear, and version/change history evidence is limited. A security policy gives reporting channels and supported versions, but maintenance responsibility and long-term update commitments remain thin.
Interactive confirmation, edit/refuse/comment choices, dry-run, and terminal context can make outputs directly reviewable and usable. Immediate shell-failure diagnosis and state synchronization offer clear incremental value. Cost control is mainly delegated to users and model providers, and host commands can make real changes, so users must weigh the benefit against the operational risk.
The security model, README, SECURITY.md, and package metadata provide traceable descriptions for some configuration and safeguard claims, and test files show some intended behavior. However, key security claims are not fully visible in the supplied main.py excerpt, and promotional numerical and privacy claims are not individually substantiated by implementation evidence. Sources corroborate some features, but the license conflict weakens consistency. Documentation distinguishes some defaults from recommendations, yet some absolute claims remain unverified by the supplied source.
- The agent runs commands, edits files, and syncs environment variables in the live host environment. Review each proposed command; --yes and --unsafe-yes broaden unattended execution.
- License evidence conflicts: the README badge and sample skill say MIT, while project metadata and the LICENSE text say Apache-2.0.
Recent releases
Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.
-
v0.2.1 v0.2.1: Multi-Shell Init, PyPI Packaging & Safety Guidelines
Release notes excerpt
What's Changed in v0.2.1 🚀 Features & Enhancements - Multi-Shell Dynamic Initialization (slash-agent init): - Emits native shell integration scripts for Bash, Zsh, Fish, and Ksh to stdout. - Added --install flag for idempotent registration into shell RC profiles (~/.zshrc, ~/.bashrc, ~/.config/fish/config.fish, ~/.kshrc, ~/.bash_profile). - Added --cmd <name> support to customize shell function aliases. - In-Place Self-Updating: …View on GitHub ↗ -
v0.2.0 v0.2.0: Local LLM Probing & WSL2 Integration
Release notes excerpt
Release Notes (v0.2.0) 🚀 Major Feature: Local OpenAI-Compatible APIs & Intelligent Probing * Unified Local LLM Integration: Connect seamlessly to any modern local LLM runner (llama.cpp, vLLM, SGLang, Xinference) via the standard OpenAI backend interface. * Dynamic Local Model Probing: During setup, the installer automatically queries the local endpoint's /v1/models API and lists the active/loaded models in a numbered list for easy selection. * Intelligent URL Suffix Sanitization: Automatically appends the /v1 suffix if missing when configuring local endpoints. …View on GitHub ↗ -
Release notes excerpt
🚀 Features & Improvements - Tool Support & Visualization: Added centralized event interception for tool execution badges (📖 [Reading], 📝 [Writing], ✏️ [Editing], ⚡ [Running]) and colored unified diff rendering on file edits. - Path Resolution & Boundaries: Supported automatic resolution of relative paths against active working directory with workspace boundary safety enforcement. - Tool Execution Engine: Configured sequential tool execution and refined system prompts to prioritize native file tools over shell builtins. 🐛 Bug Fixes …View on GitHub ↗
FAQ
Does it monitor my terminal in the background?
Do I have to pay for it?
Will suggested commands run automatically?
Does it work on macOS or Windows?
Can it change my current directory or environment variables?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.