Skip to main content

Crate recursive

Crate recursive 

Source
Expand description

Recursive: a minimal, orthogonal, self-improving coding agent kernel.

The kernel is intentionally tiny:

  • Message is the only data primitive shared across the system.
  • LlmProvider abstracts model backends (HTTP, mock, future local…).
  • Tool abstracts side effects the model can request.
  • Agent is a thin loop that wires them together.

Everything else is opt-in. New capabilities are added by implementing Tool or LlmProvider, never by editing the loop.

Re-exports§

pub use agent::Agent;
pub use agent::AgentOutcome;
pub use agent::StepEvent;
pub use config::Config;
pub use error::Error;
pub use error::Result;
pub use llm::Completion;
pub use llm::LlmProvider;
pub use llm::ToolCall;
pub use llm::ToolSpec;
pub use message::Message;
pub use message::Role;
pub use tools::Tool;
pub use tools::ToolRegistry;

Modules§

agent
Agent loop. The whole kernel.
config
Runtime configuration.
error
Crate-wide error and Result.
llm
LLM provider abstraction.
message
Chat message primitive.
tools
Tool abstraction: any side effect the model can request.