Expand description
§Pawan (पवन) - Self-Healing CLI Coding Agent
Core library for the Pawan coding agent. Provides:
- Agent: Tool-calling loop engine with multi-provider LLM support
- Tools: File operations, bash execution, git, search
- Healing: Automatic detection and repair of compilation errors, test failures, warnings
- Config: TOML-based configuration with provider/model management
§Architecture
pawan-core(this crate): Library with zero dirmacs dependenciespawan-cli: Binary with TUI and CLI interface
§Quick Start
pawan # Interactive TUI mode
pawan heal # Auto-fix compilation issues
pawan task "description" # Execute a coding task
pawan run "prompt" # Headless single-prompt executionRe-exports§
pub use agent::PawanAgent;pub use config::PawanConfig;
Modules§
- agent
- Pawan Agent - The core agent that handles tool-calling loops
- config
- Configuration for Pawan
- eruka_
bridge - Eruka bridge — connect Eruka’s 3-tier memory to pawan’s context window
- healing
- Self-healing module for Pawan
- tasks
- Beads-style task tracking — hash IDs, dependency graphs, memory decay
- tools
- Tools for Pawan agent
Enums§
- Pawan
Error - Error types for Pawan
Constants§
- DEFAULT_
BASH_ TIMEOUT - Default timeout for bash commands (in seconds)
- DEFAULT_
MODEL - Default model for coding tasks (Mistral Small 4 119B MoE via NVIDIA NIM) First model to achieve 100% autonomous score (interval tree 6/6). Best for code generation, self-correction, and semantic reasoning.
- DEFAULT_
NVIDIA_ API_ URL - Default NVIDIA API URL
- MAX_
TOOL_ ITERATIONS - Maximum iterations for tool calling loops
- VERSION
- Version information
Type Aliases§
- Result
- Result type alias for Pawan operations