NPC-Worldwide/npcsh

the composable multi-agent shell

What it solves

npcsh bridges the gap between traditional command-line interfaces and AI-driven automation. It allows users to execute standard bash commands and interact with AI agents within a single, unified shell environment, enabling complex workflows like coding tasks or Git operations to be handled via natural language.

How it works

It functions as an interactive shell that interprets both standard shell commands and natural language requests. It uses a local Python-based backend to manage an inference loop, allowing it to connect to various LLM providers (such as Ollama, OpenAI, or Anthropic). Users can define custom agents using YAML or Markdown files, and assign them specific "Jinxes"—Jinja-based execution templates—that act as tools or skills for the agents to perform specific tasks.

Who it’s for

npcsh is designed for developers and power users who want to integrate AI agents directly into their terminal workflow to automate multi-step tasks, debugging, or system management.

Highlights

  • Seamlessly mixes bash commands and natural language agent interactions.
  • Supports multiple agent definition formats, including YAML and Markdown.
  • Compatible with any model provider supported by LiteLLM.
  • Includes built-in skills for common tasks like Git workflows and shell operations.
  • Allows for user-defined context keys to customize agent instructions.

Related

  • Project
  • Project
  • Project
  • Project
  • Project