Skip to main content

Crate pawan

Crate pawan 

Source
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 dependencies
  • pawan-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 execution

Re-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§

PawanError
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