mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-16 12:03:23 +00:00
- Show tool call count alongside token metrics in TUI and console renderers - TUI: Display at bottom with format "↑X ↓Y ⚒Z" - Console: Show metrics after assistant messages complete - Counter increments on each tool_call event
1.7 KiB
1.7 KiB
Project: Pi Monorepo
A comprehensive toolkit for managing Large Language Model (LLM) deployments and building AI agents, specifically designed for deploying and managing LLMs on remote GPU pods with automatic vLLM configuration for agentic workloads.
Features
- Terminal UI framework with differential rendering and interactive components
- AI agent framework with tool calling, session persistence, and multiple renderers
- GPU pod management CLI for automated vLLM deployment on various providers
- Support for OpenAI, Anthropic, Groq, OpenRouter, and compatible APIs
- Built-in file system tools for agentic AI capabilities
Tech Stack
- TypeScript/JavaScript with ES Modules
- Node.js ≥20.0.0
- OpenAI SDK for LLM integration
- Custom TUI library with differential rendering
- Biome for linting and formatting
- npm workspaces for monorepo structure
Structure
packages/tui/- Terminal UI librarypackages/agent/- AI agent with tool callingpackages/pods/- CLI for GPU pod managementscripts/- Utility scripts for version synctodos/- Task tracking
Architecture
- Event-driven agent system with publish-subscribe pattern
- Component-based TUI with differential rendering
- SSH-based remote pod management
- Tool calling system for file operations (read, bash, glob, ripgrep)
- Session persistence in JSONL format
- Multiple renderer strategies (Console, TUI, JSON)
Commands
- Lint:
npm run check - Dev/Run:
npx tsx packages/agent/src/cli.ts(pi-agent),npx tsx packages/pods/src/cli.ts(pi) - Version:
npm run version:patch/minor/major - Publish:
npm run publish
Testing
Currently no formal testing framework is configured. Test infrastructure exists but no actual test files or framework dependencies are present.