Skip to content

palRUN : A blazingly fast terminal command palette that enhances your workflow. Discover, search, and run commands from any project with fuzzy search, shell integration, and smart suggestions.

License

Notifications You must be signed in to change notification settings

GLINCKER/palrun

PALRUN

Stop memorizing commands. Start shipping.

A blazing-fast command palette for your terminal with multi-provider AI intelligence.

Crates.io Downloads CI License


brew install GLINCKER/palrun/palrun

Works on Mac, Windows, and Linux.


┌────────────────────────────────────────────────────────────────────┐
│  PALRUN                                          [rust] main ✓    │
├────────────────────────────────────────────────────────────────────┤
│  > build                                                          │
├────────────────────────────────────────────────────────────────────┤
│  → cargo build              Build the project                     │
│    cargo build --release    Build optimized binary                │
│    npm run build            Bundle frontend                       │
│    make build               Run makefile target                   │
├────────────────────────────────────────────────────────────────────┤
│  ↑↓ navigate  ⏎ execute  tab preview  esc quit                    │
└────────────────────────────────────────────────────────────────────┘

"Finally stopped grepping through package.json to find scripts."

"The AI diagnostics saved me 2 hours debugging a cryptic npm error."

"Just type 3 letters and hit enter. That's it."


Why Palrun · Install · How It Works · AI Features · Commands


Why Palrun

Every project has commands scattered everywhere. npm scripts in package.json. Cargo commands in Cargo.toml. Make targets. Docker compose. Task runners. You end up:

  • Scrolling through 50 npm scripts to find the right one
  • Forgetting that obscure cargo command you used last week
  • Grepping through config files looking for targets
  • Context-switching to docs constantly

Palrun fixes this. It scans your project, finds every command, and gives you a fuzzy-searchable interface. Type 2-3 characters, hit enter, done.

The AI features are optional but powerful — generate commands from natural language, explain what complex commands do, diagnose errors without leaving your terminal.


Install

# Homebrew (macOS/Linux) - Recommended
brew install GLINCKER/palrun/palrun

# Cargo
cargo install palrun

# NPM
npm install -g @glincker/palrun

# Download binary
# https://github.com/GLINCKER/palrun/releases

Then just run:

palrun

How It Works

1. Auto-Discovery

Palrun scans your project and finds commands from:

Source Files What It Finds
Node.js package.json npm/yarn/pnpm/bun scripts
Rust Cargo.toml cargo build, test, run, clippy
Go go.mod go build, test, run
Python pyproject.toml pytest, poetry, pdm commands
Make Makefile All make targets
Docker docker-compose.yml compose up/down/logs
Task Taskfile.yml task commands
Monorepos nx.json, turbo.json nx/turbo commands

2. Fuzzy Search

Type a few characters, palrun finds the match:

  • buicargo build
  • tdnpm run test:debug
  • dcudocker compose up

Powered by nucleo — the same engine behind Helix editor.

3. Context-Aware

Commands are ranked by proximity to your current directory. Working in src/api/? API-related commands appear first.


AI Features

Palrun supports multiple AI providers with automatic fallback:

Provider API Key Env Var Best For
Claude ANTHROPIC_API_KEY Complex reasoning
OpenAI OPENAI_API_KEY Fast, general purpose
Azure OpenAI AZURE_OPENAI_API_KEY Enterprise deployments
Grok XAI_API_KEY Alternative option
Ollama None (local) Offline, privacy

Generate Commands

palrun ai "run tests with coverage"
# → cargo test --all-features -- --nocapture

Explain Commands

palrun ai explain "git rebase -i HEAD~5"
# Explains what interactive rebase does

Diagnose Errors

palrun ai diagnose "npm ERR! peer dep missing: react@18"
# Suggests: npm install react@18 --save-peer

Configuration

Set keys via environment variables or config file:

# Environment (recommended)
export ANTHROPIC_API_KEY="sk-ant-..."

# Or in ~/.config/palrun/palrun.toml
[ai.claude]
api_key = "sk-ant-..."

Commands

Interactive Mode

palrun              # Launch TUI
palrun list         # List all commands
palrun list --json  # JSON output for scripting

Direct Execution

palrun exec build        # Run by name
palrun exec "npm test"   # Run specific command
palrun exec build -y     # Skip confirmation

Project Setup

palrun setup              # Initialize for your project
palrun setup --dry-run    # Preview changes

IDE Integration

Generate slash commands for AI coding tools:

palrun slash generate claude   # For Claude Code
palrun slash generate cursor   # For Cursor
palrun slash generate aider    # For Aider

Shell Integration

Add keyboard shortcuts to your shell:

# Bash
eval "$(palrun init bash)"

# Zsh
eval "$(palrun init zsh)"

# Fish
palrun init fish | source

# PowerShell
palrun init powershell | Invoke-Expression

Configuration

Create ~/.config/palrun/palrun.toml:

[general]
confirm_dangerous = true

[ui]
theme = "default"
show_preview = true
show_icons = true

[ai]
provider = "claude"
fallback_enabled = true

[ai.claude]
model = "claude-sonnet-4-20250514"

For API keys, use environment variables or the system config file — never commit secrets to your repo.


Why Not Just Use...

Alternative Palrun Advantage
cat package.json | jq One command, fuzzy search, instant
fzf + custom scripts Zero setup, auto-discovers everything
IDE command palette Works in terminal, any project type
Memorizing commands You have better things to remember

For AI tools: Pre-computed command index saves ~1500 tokens per query. AI doesn't need to scan your project.


Development

# Build
cargo build --release

# Test (527 tests)
cargo test --all-features

# Run locally
cargo run -- list

Git Hooks

Local quality gates (auto-installed):

./.githooks/install.sh
# pre-commit: format, clippy, build
# pre-push: tests, security audit
# commit-msg: conventional commits

Roadmap

  • Multi-provider AI (Claude, OpenAI, Azure, Grok, Ollama)
  • Agentic workflow system
  • IDE slash command generation
  • Hierarchical config with secrets management
  • MCP server mode for AI agents
  • Chat history and session persistence
  • Streaming AI responses
  • VS Code extension

Contributing

Contributions welcome! See CONTRIBUTING.md.

git clone https://github.com/GLINCKER/palrun.git
cd palrun
cargo test
cargo run

License

MIT License — free for personal and commercial use.


Your terminal has hundreds of commands. Palrun finds the right one instantly.

GitHub · Issues · Discussions

Built by GLINCKER

About

palRUN : A blazingly fast terminal command palette that enhances your workflow. Discover, search, and run commands from any project with fuzzy search, shell integration, and smart suggestions.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages