Kra Tmux
No description available
Ask AI about Kra Tmux
Powered by Claude Β· Grounded in docs
I know everything about Kra Tmux. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Reviews
Documentation
π Kra Workflow
Enterprise-grade development productivity suite β A powerful collection of integrations designed to supercharge your development workflow with seamless terminal integrations, intelligent automation, and AI-powered assistance.
β Flagship Features
πΎ Enterprise Autosave System
Unix domain socket-based workspace persistence with zero-overhead event coordination
- β‘ Instant event processing via kernel-level IPC communication
- π‘οΈ Production-ready reliability with multi-layer lock coordination
- π Complete state synchronization across Tmux/Neovim/Shell environments
- π― Smart debouncing groups events during activity and flushes them once inactive
π€ AI Chat System with Neovim as Interface
Revolutionary AI conversation interface with advanced file context management
- π Neovim-native chat interface with real-time streaming responses
- π Intelligent file context system - Add entire files or visual selections
- πΎ Smart conversation persistence with AI-generated summaries
- π Multi-provider support (OpenAI, Anthropic, Gemini, etc.)
π§ Agent Mode (Copilot + BYOK)
Full agentic workflow with two interchangeable backends and a review-before-apply repository workspace
- π Two providers behind one command β GitHub Copilot SDK or any OpenAI-compatible API (OpenAI, DeepSeek, Gemini, OpenRouter, DeepInfra, Mistral) via BYOK
- π Live model catalog β models fetched from each provider on demand, annotated with context window + per-token pricing, cached for 24h
- π Repo-as-workspace β the agent edits files directly as uncommitted git diffs; you review before applying
- βοΈ Inline diff editor β edit the agent's proposed change in a 3-pane diff before approving; choose whether the AI gets notified of your edits
- π Per-file revert β session diff history with one
ORIGentry per file lets you roll back any single file to its pre-session baseline - π‘οΈ Tool approval β approve each tool call, allow by family, or go YOLO
- π MCP server support β extend either provider with custom tools via
settings.toml; BYOK auto-loadskra-bash+kra-web - π§ Persistent project memory + multi-codebase semantic search (
kra-memoryMCP) β local LanceDB + on-device fastembed,remember/recall/update_memorycarry design decisions, gotchas, and follow-ups across sessions and compaction.semantic_searchcan search code by concept when the repo is indexed and search all long-term memories withmemoryKind: 'findings'; memory reads are intercepted through a Telescope picker so you choose which entries the agent actually receives. Code indexing stays opt-in per launch and is tracked in a central registry (~/.kra-memory/registry.json) keyed by git origin so identity survives renames and re-clones. Catch-up reindex on launch (git diff+statusunion) covers edits made between sessions;kra memoryis a blessed UI to manage memories, docs sources, search, and every indexed repo from one place - π Copilot quota monitoring β live monthly usage + cached weekly/session limits with terminal warnings at 50%/25%/10%
π― Core Philosophy
Zero-overhead productivity - No background processes unless you're making meaningful changes to your tmux session or actively using the tool.
With on-demand activation and intelligent event-driven architecture, Kra provides seamless terminal integrations including Tmux server management, Git operations, intelligent workspace persistence, and an AI chatbot interface β all with enterprise-grade reliability and zero idle resource consumption.
π Design Principles
- π Zero background overhead - Processes spawn only when needed, terminate when idle
- π― Event-driven activation - Responds instantly to meaningful workspace changes
- π Grep-searchable interfaces - Lightning-fast access to any functionality
- β¨οΈ Full tab autocompletion - Efficient, intuitive terminal interactions
- π¨ Modern terminal UI - Rich formatting with zero persistent processes
- π Zero-configuration - Intelligent defaults with automatic cleanup
The Result: Effortlessly switch between projects, manage Git workflows, chat with AI, and maintain perfect workspace state β all from your terminal with maximum performance and minimal system impact. This comprehensive suite helps you work smarter, faster, and with complete confidence in your system's efficiency.

π Complete Feature Set
π₯οΈ Tmux Integration
Complete server lifecycle management with persistent state
πΏ Git Integration
Advanced source control with conflict resolution and branch management
π€ AI Chatbot Integration
Intelligent conversation system with file context awareness
β‘ Autosave System
Enterprise-grade automated workspace persistence
π οΈ System Utilities
Developer productivity tools and utilities
π₯οΈ Tmux Integration
Enterprise-grade tmux server management engineered to give you complete control over your development sessions with persistent workspace state.

π¦ Access via:
kra tmux
π οΈ Available Commands
| Command | Description |
|---|---|
| save-server πΎ | Save entire servers β including all sessions, windows, panes, and Neovim states. Perfect for multitasking across different projects or tickets. |
| load-server β»οΈ | Reload your saved server exactly how you left it β including repos (auto-clones if missing), directories, layouts, and editor states. |
| delete-server π§Ή | Clean up specific saved servers. Preview the structure (sessions, windows, names) before confirming deletion. |
| list-sessions π | View a summary of the current server's sessions and windows with rich formatting. |
| kill β | Terminate the currently running server instantly with graceful cleanup. |
Demo Previews - Click to expand
πΎ kra tmux save-server - Complete workspace persistence
Saves the current tmux server, including all sessions, windows (with their names), panes (with sizes and positions), and active Neovim sessions with intelligent state tracking.

β»οΈ kra tmux load-server - Instant workspace restoration
Select a saved tmux server from a searchable list to load. Automatically runs configured build/watch commands and restores complete development environment state.

π§Ή kra tmux delete-server - Safe server cleanup
Intelligently displays server structure with sessions, windows, and panes count, then confirms deletion with detailed preview.

π€ AI Chatbot Integration
Revolutionary AI conversation system with Neovim-native interface, advanced file context management, and intelligent conversation persistence.

π¦ Access via:
kra ai
π οΈ Available Commands
| Command | Description |
|---|---|
| chat π¨οΈ | Launch new AI chat session in Neovim with real-time streaming, file context management, built-in web tools (web_search + web_fetch with Jina / DuckDuckGo / Wayback fallbacks), and socket-based communication. Press Enter in normal mode to send prompts; press <leader>h to inspect the tool-call history. Provider models are sourced from the same live catalog the agent uses (cached 24h, network-free fallback). |
| agent π§ | Launch an agent session in Neovim with a provider picker (Copilot SDK or BYOK / OpenAI-compatible), project-local MCP servers, an inline diff editor, and per-file revert from session diff history. |
| load π | Browse saved conversations with AI-generated summaries. Preview summaries before loading full chat sessions. |
| delete π§½ | Manage saved chats with searchable deletion interface and confirmation prompts. |
Key Technical Features
- β‘ Real-time streaming responses with user-controlled abort capability
- π Advanced file context system - Add entire files or visual selections as context
- π Built-in web tools in chat - Models can call
web_searchandweb_fetchmid-conversation. Search uses Jina β DuckDuckGo Lite; fetch uses Jina Reader β direct (handles JS-rendered and paywalled pages). SetJINA_APIto enable the Jina backends. - π§ Multi-provider AI support - OpenAI, Anthropic, Gemini, and custom providers
- π€ Agent mode (Copilot + BYOK) β Agentic tool use, MCP support, an inline diff editor, and interactive ask-user requests inside Neovim
- πΎ Intelligent conversation persistence with automatic summary generation
- π― Visual selection integration - Select code portions directly in Neovim
- π Session restoration with complete context reconstruction
Demo Previews - Click to expand
π¨οΈ kra ai chat - Complete chat workflow
Multi-step chat initialization:
- Role Selection - Choose from preconfigured roles or define custom ones
- Provider Selection - Pick from available AI providers with model options
- Temperature Control - Fine-tune response creativity (0-10 scale, 0-20 for Gemini)
- Interactive Session - Real-time conversation with streaming responses
Advanced Features:
- Socket-based Neovim integration for instant response delivery
- File context management with visual selection support
- Edit messages and responses before sending or saving
- Complete conversation control with context manipulation

π§ kra ai agent - Agent workflow (Copilot + BYOK)
Agent-first coding workflow:
- Provider selection β pick
copilot(GitHub Copilot SDK) orbyok(any OpenAI-compatible API) - Model selection β live catalog with context window + pricing annotations; Copilot also picks a reasoning effort.
- Repo workspace β the agent writes changes directly to your repo as uncommitted git diffs; nothing is staged automatically
- Diff review in Neovim β review the generated
git diff, optionally edit the agent's proposed change in the 3-pane diff editor, then explicitly apply or reject - Per-file revert β
<leader>sopens session diff history with anORIGentry per file so you can undo a single file at any time
MCP configuration:
- Define MCP servers under
ai.agent.mcpServers.*insettings.toml - Active servers are injected into both providers automatically
- BYOK additionally auto-loads
kra-bash(shell) andkra-web(web_fetch/web_search) since BYOK has no built-in tools - Copilot also accepts remote (
http/sse) MCP servers; BYOK only spawns local stdio servers
πΎ Intelligent chat saving - AI-powered summarization
Automatic conversation persistence:
- Prompt to save on chat exit with Y/N confirmation
- Gemini-powered summarization utilizing large context window
- Editable summaries - Review and modify before final save

π kra ai load - Smart conversation browsing
Intelligent chat loading workflow:
- Searchable list of saved conversations with timestamps
- Summary preview in Neovim before loading full chat
- Context reconstruction - Rebuilds file contexts automatically
- Seamless continuation - Resume exactly where you left off

π§½ kra ai delete - Safe chat management
Searchable deletion interface with confirmation prompts and permanent removal warnings.

β‘ Autosave System
Enterprise-grade automated workspace persistence with Unix domain socket IPC and intelligent event coordination across your entire development environment.
π Core Architecture
- β‘ Unix Domain Socket IPC - Kernel-level inter-process communication with zero polling overhead
- π‘οΈ Multi-layer lock coordination - Production-ready safety with automatic stale lock cleanup
- π― Smart event debouncing - Configurable 20s timeout prevents excessive saves
- π Multi-environment sync - Seamless TmuxβNeovimβShell state coordination
ποΈ Technical Highlights
- Event-driven architecture with instant processing via Unix sockets
- Intelligent session tracking with automatic cleanup for closed Neovim instances
- Production-grade error handling with graceful degradation and silent failures
- Smart buffer filtering - Excludes 38+ utility buffer types for clean state saves
π Supported Event Sources
| Environment | Integration Method | Events Tracked |
|---|---|---|
| Tmux | Native hooks system | Session/window/pane lifecycle events |
| Neovim | Lua autocmd integration | Buffer changes, session enter/leave |
| Shell | Zsh/Bash hook override | Directory changes, command completion |
βοΈ Configuration
# settings.yaml
autosave:
active: true # Enable/disable autosave
currentSession: "auto-managed" # Current session tracking
timeoutMs: 20000 # 20s debounce window
πΏ Git Integration
Advanced Git workflow management designed to facilitate efficient source control with intelligent conflict resolution and branch lifecycle management.

π¦ Access via:
kra git
π οΈ Available Commands
| Command | Description |
|---|---|
| restore β»οΈ | Recover single or multiple files effortlessly with intelligent selection interface. |
| cache-untracked π¦ | Save untracked files in a branch-specific cache with automatic organization and retrieval. |
| retrieve-untracked π | Retrieve your previously cached untracked files with branch-aware restoration. |
| hard-reset π§Ή | Perform intelligent git fetch --prune and hard reset to keep local branches clean and synchronized. |
| log π | View a rich, navigable Git log inside Neovim with optimized commit navigation ({ and } keys). |
| stash πΌ | Apply or drop stashes using an intuitive, searchable selection interface. |
| stash-drop-multiple ποΈ | Select and drop multiple stashes efficiently with dynamic list updates. |
| conflict-handle βοΈ | Resolve merge conflicts seamlessly in Neovim with three-way split and automatic conflict scanning. |
| open-pr π | Instantly open associated pull request links in your browser with GitHub/Bitbucket support. |
| view-changed π | Instantly inspect file changes with integrated diff viewer and smart file management. |
| create-branch πΏ | Checkout base branch with automatic sync, fetch/prune, hard reset, then create and switch to new branch. |
| checkout β³ | Filter branches by activity date with dynamic search and smart stash handling. |
| reflog π§ | Browse the reflog in the same multi-pane dashboard as git log, with side-panel commit stats for each HEAD movement. |
| scout π | Scan the workspace for every git repo and inspect branch, dirty state, ahead/behind, and recent activity at a glance. |
All interactive lists feature intelligent grep search with real-time filtering and contextual highlighting.
Demo Previews - Click to expand
β»οΈ kra git restore - Smart file recovery
Displays searchable list of modified files with "restore all" option for batch operations.

π¦ kra git cache-untracked - Branch-aware file caching
Intelligent untracked file management with branch-specific storage and automatic organization.

π kra git retrieve-untracked - Smart file restoration
Branch-aware retrieval of cached files with intelligent conflict detection.

π§Ή kra git hard-reset - Intelligent branch synchronization
Comprehensive sync with detailed console output showing pruned branches, fetched updates, and current HEAD state.

π kra git log - Enhanced commit navigation
Rich Git log interface in Neovim with optimized formatting and keyboard navigation shortcuts. Press c on the highlighted commit to open the interactive cherry-pick menu (apply / --edit / -x / --no-commit / preview commit / preview files / cancel); on conflicts you drop into an in-place resolver that lists conflicted files with status indicators, opens each file in nvim -c Gvdiffsplit!, and offers continue / skip / abort actions. A aborts an in-progress cherry-pick from the dashboard, and B scopes the view to a specific branch (or back to all).

πΌ kra git stash - Intelligent stash management
Searchable stash interface with apply/drop actions and detailed stash information.

ποΈ kra git stash-drop-multiple - Batch stash cleanup
Efficient multi-stash deletion with live list updates and confirmation prompts.

βοΈ kra git conflict-handle - Automated conflict resolution
Three-way merge conflict resolution with automatic marker detection and progress tracking.

π kra git open-pr - Cross-platform PR integration
Automatic pull request detection with GitHub/Bitbucket support and cross-platform browser launching.

π kra git view-changed - Interactive diff viewer
Two-way diff interface with automatic file list management and smart navigation.

πΏ kra git create-branch - Clean branch creation
Comprehensive branch creation workflow with base branch selection, sync verification, and clean state guarantee.

β³ kra git checkout - Smart branch switching
Date-filtered branch selection with automatic stash handling, conflict detection. Branches can be filtered by commit titles.

π§ kra git reflog - Recover lost work from HEAD movements
Reuses the multi-pane log dashboard against git reflog, so each entry (checkout / reset / rebase / commit) shows its full commit context, stat summary, and changed files in side panels. Useful for finding commits orphaned by a reset, rebase, or accidental branch delete. Inherits the dashboard keymaps, including the interactive cherry-pick menu on c (with the in-place conflict resolver), A to abort an in-progress cherry-pick, and B to scope the reflog to a specific branch.
π kra git scout - Multi-repo workspace overview
Scans the workspace for every git repository (up to 2 levels deep) and shows them in a full multi-pane dashboard. Dirty repos bubble to the top. Three always-visible right-side panels β repo details (branch, modified/untracked counts, ahead/behind, stash count), recent log (last 20 commits), and git status β all load automatically as you navigate.
Keybindings: enter open Neovim, l open kra git log for that repo (pauses scout, restores it on quit), d file-by-file diff picker (opens each changed file in a fugitive split), f fetch, p pull, D/S-d toggle dirty-only filter, r rescan, y copy path, s// search by name Β· path Β· branch, Tab cycle panels, q quit.
π οΈ System Utilities
Developer productivity tools and system management utilities for efficient project maintenance and automated cleanup operations.

π¦ Access via:
kra sys
π οΈ Available Commands
| Command | Description |
|---|---|
| grep π | Unified search dashboard β find files/dirs by name or grep content, preview, open in Neovim, batch-delete. |
| scripts π§ͺ | Custom script execution system (experimental) - Run user-defined automation scripts. |
| process-manager π | Live ps dashboard - search, sort by CPU/MEM/PID, view per-process details, send SIGTERM/SIGKILL. |
| disk-usage πΎ | du-style explorer β scan sizes, expand directories inline, batch-delete, sort by size/name/mtime, open in finder. |
Note: Script management system is in active development. Currently requires manual script addition.
Demo Previews - Click to expand
π kra sys grep - Unified search dashboard
Three search modes: f (files by name), d (directories by name), c (content grep inside files). Results appear in a navigable list with instant preview and metadata panels.
Keybindings: f/d/c switch mode Β· enter search (in search box) or open in Neovim (on a result) Β· x delete with confirmation Β· space toggle batch-select Β· X delete all selected Β· y copy path Β· s// focus search Β· Tab cycle panels Β· q quit.
π§ͺ kra sys scripts - Custom automation execution

π kra sys process-manager - Live process dashboard
Interactive ps browser with search, sort modes (CPU / MEM / PID), windowed list rendering, per-process details and signal sending (SIGTERM / SIGKILL).
πΎ kra sys disk-usage - du-style disk usage explorer
Scan the current directory tree and rank entries by size. Expand directories inline (e / l), batch-select with space and bulk-delete with X. Switch sort modes (s) between size/name/mtime/count. Change root with R, jump home with H, open in finder with o. Live filter via /.
Keybindings: j/k nav Β· enter descend Β· - up Β· e/l expand Β· space select Β· X delete selected Β· o open Β· s sort Β· / filter Β· r refresh Β· R new root Β· H home Β· y yank path Β· Tab cycle panels Β· q quit.
π Getting Started
π Prerequisites
- Node.js (v16+ recommended)
- Tmux (v3.0+)
- Neovim (v0.8+)
- Git (v2.0+)
- Zsh/Bash shell environment
β‘ Quick Installation
Install the published package globally:
npm install -g kra-workflow
# postinstall auto-creates ~/.kra/, copies a default settings.toml,
# and patches your ~/.bashrc / ~/.zshrc / nvim init.lua.
# Restart your shell (or `source ~/.bashrc`) to pick up the autocompletion
# and tmux/neovim hooks, then run `kra`.
kra
Or install from a clone:
git clone https://github.com/ChrisRistoff/kra-tmux.git
cd kra-tmux
npm install
npm run build
npm install -g .
kra
User data lives under ~/.kra/ by default. Override with KRA_HOME=/path/to/dir.
If you previously had the project at ~/programming/kra-tmux/, the first install
will copy settings.toml, git-files/, tmux-files/, ai-files/,
system-files/, and lock-files/ from there into ~/.kra/ (originals are
left in place).
π Detailed Setup
For comprehensive installation instructions, environment configuration, and troubleshooting guides, please refer to our Installation Guide.
π― Why Kra Workflow?
π For Individual Developers
- Zero work loss from crashes or unexpected reboots
- Instant environment restoration with complete state preservation
- AI-powered development assistance with intelligent context awareness
- Streamlined Git workflows with advanced conflict resolution
π’ For Development Teams
- Consistent development environments across team members
- Seamless workspace handoff and collaboration
- Enterprise-grade reliability with production-ready error handling
- Advanced automation reducing manual overhead and context switching
β‘ Technical Excellence
- Advanced Node.js process coordination with Unix domain sockets
- Deep Unix system programming integration for maximum performance
- Production-ready architecture with comprehensive error handling
- Modern terminal UI/UX with intelligent search and navigation
π License
This project is licensed under the MIT License - see the LICENSE file for details.
