AI toolkit for agent-based workflows, model integration, and rapid NLP development
Top 43.4% on sourcepulse
This Python library and shell provide an agent-based framework for integrating AI models into workflows. It targets developers and researchers seeking to easily use, test, and explore AI models, agents, and agent systems through various interfaces like a Python library, a bash-like shell (npcsh
), and an interactive coding environment (guac
). The primary benefit is accelerated development and simplified testing of NLP and agent-based applications.
How It Works
The framework leverages LiteLLM for broad LLM provider integration (Ollama, OpenAI, Anthropic, Gemini, etc.). npcsh
acts as a natural language and bash-compatible shell, intelligently routing commands to AI agents or executing bash code. guac
offers a Pomodoro-inspired REPL for interactive coding, allowing code generation, execution, and variable inspection. Agents can be defined with directives and models, enabling complex agentic behaviors and tool use.
Quick Start & Requirements
pip install npcpy
(or npcpy[lite]
, npcpy[local]
, npcpy[yap]
, npcpy[all]
for extended features).espeak
, portaudio19-dev
, alsa-base
, alsa-utils
, libcairo2-dev
, libgirepository1.0-dev
, ffmpeg
, inotify-tools
(Linux); portaudio
, ffmpeg
, pygobject3
(macOS); Ollama, FFmpeg (Windows). Ollama and model pulls (e.g., ollama pull llama3.2
) are recommended..npcshrc
file and optional .env
for API keys.Highlighted Details
npcsh
allows switching between agentic, conversational, and direct bash execution modes.guac
provides a unique interactive coding REPL with a Pomodoro-like session structure.Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
The project has undergone significant structural changes, with some components like NPCCompiler
being phased out. Fedora installation is noted as "under construction." Some functionalities like /ots
and /whisper
are specifically mentioned as working well on Windows, implying potential platform-specific nuances.
3 days ago
Inactive