Back to browse
GitHub Repository

Next Generation AI Integrated Shell inspired by J.A.R.V.I.S. on marvel

11 starsRust

Jarvish – The J.A.R.V.I.S. AI inside your shell investigates errors

by tominaga-h·Feb 28, 2026·4 points·0 comments

AI Analysis

MidShip It

AI shell with real-time I/O capture, but competing against fish+ChatGPT + Warp's simpler integration.

Strengths
  • Real-time I/O capture via os_pipe + multithreading preserves full stderr context for AI analysis
  • Content-addressable blob storage (SHA-256 + zstd) creates queryable command history across sessions
  • Full shell fundamentals (pipelines, redirects, PTY support) means it's not just a wrapper—it's a working shell
Weaknesses
  • Requires OpenAI API key and live network; no offline fallback or local model support
  • MacOS/Linux only; Windows shell users are out; competing shells (fish, zsh+plugins, Warp) already solve error-to-fix flow
Target Audience

Terminal-heavy developers, DevOps engineers, systems administrators

Similar To

Warp · fish shell + ChatGPT plugin · Codeium CLI

Post Description

Hi HN, I'm the creator of Jarvish.

https://github.com/tominaga-h/jarvis-shell

I spend most of my day in the terminal, and I got incredibly frustrated with the standard error-resolution loop: command fails -> copy the stderr -> open a browser -> paste into ChatGPT/Google -> copy the fix -> paste back into the terminal. It completely breaks the flow state.

I wanted a seamless experience where the shell already knows the context of what just happened.

So I built Jarvish. It’s a fully functional interactive shell written in Rust, but with an AI agent seamlessly integrated into the REPL loop. You don't need any special prefixes—if you type `ls -la`, it runs it. If you type `Jarvis, why did that build fail?`, it routes to the AI.

Here is how it works under the hood:

- The "Black Box" (I/O Capture): It uses `os_pipe` and multithreading to tee the `stdout`/`stderr` of child processes in real-time. This captures the output to memory for the AI while simultaneously rendering it to the terminal without breaking interactive TUI tools.

- Context Memory: The captured I/O is compressed with `zstd`, hashed (like Git blobs), and the metadata is stored in a local SQLite database (`rusqlite`). When you ask the AI a question, it automatically retrieves this recent I/O history as context.

- Agentic Capabilities: Using `async-openai` with function calling, the AI can autonomously read files, execute shell commands, and investigate issues before giving you an answer.

- REPL: Built on top of `reedline` for a Fish-like experience (syntax highlighting, autosuggestions).

I’ve been using it as my daily driver (currently v1.1.0). I would absolutely love to hear your thoughts on the architecture, the Rust implementation, or any feature requests!

Similar Projects

Developer Tools●●Solid

Jarvish – A New AI Integrated Shell inspired by J.A.R.V.I.S. on marvel

Jarvish pairs an LLM with real shell plumbing instead of tacking on a chat window: it captures stdout/stderr into a Git-like blob store (SHA-256 + zstd), keeps a SQLite history, and will automatically investigate failed commands using that context. It also exposes agent-style capabilities (read/write files, execute commands) and preserves PTY support for interactive tools — risky behavior, but exactly the kind of ambitious engineering that could change how power users debug in the terminal.

WizardryBold BetNiche Gem
tominaga-h
203mo ago
AI/ML●●Solid

VT Code – Rust coding agent with AST-validated shell and OS sandboxing

AST-validated shell commands with OS sandboxing for safer AI coding.

Solve My ProblemBig Brain
vinhnx
201mo ago