terraphim_rlm 1.21.0

Recursive Language Model (RLM) orchestration for Terraphim AI
Documentation
[package]
name = "terraphim_rlm"
version = "1.21.0"
edition = "2024"
rust-version = "1.85"
authors = ["Terraphim AI Team <team@terraphim.ai>"]
description = "Recursive Language Model (RLM) orchestration for Terraphim AI"
documentation = "https://terraphim.ai"
homepage = "https://terraphim.ai"
license = "MIT"
repository = "https://github.com/terraphim/terraphim-ai"
keywords = ["rlm", "llm", "code-execution", "firecracker", "ai"]
categories = ["development-tools", "asynchronous"]
readme = "../../README.md"

[dependencies]
# Workspace dependencies
tokio.workspace = true
serde.workspace = true
serde_json.workspace = true
ulid = { version = "1.1", features = ["serde"] }
jiff = { version = "0.2", features = ["serde"] }
async-trait.workspace = true
thiserror.workspace = true
anyhow.workspace = true
log.workspace = true

# Terraphim crates
terraphim_service = { version = "1.20.4", optional = true, features = ["openrouter"] }
terraphim_config = { version = "1.20.4", optional = true }
terraphim_automata = { version = "1.20.4", optional = true }
terraphim_types = { version = "1.20.4", optional = true }
terraphim_rolegraph = { version = "1.20.4", optional = true }
terraphim_agent_supervisor = { version = "1.19.2", optional = true }
# Local MCP search engine. Used by the mcp_search_tools tool to look up tools
# from a caller-supplied corpus. Gated under the same `mcp` feature as rmcp
# so it only compiles when MCP is enabled.
terraphim_mcp_search = { version = "0.2.0", optional = true }

# Firecracker-rust core for VM and snapshot management (private repo).
# Uncomment when building with --features firecracker on a machine with
# access to the private firecracker-rust repository.

# Async utilities
tokio-util = "0.7"
futures = "0.3"

# HTTP for LLM bridge
hyper = { version = "1.0", features = ["server", "http1"], optional = true }
hyper-util = { version = "0.1", features = ["tokio"], optional = true }

# Alternative execution backends
bollard = { version = "0.20", optional = true }
reqwest = { workspace = true, optional = true }

# MCP (Model Context Protocol)
rmcp = { version = "0.9.0", features = ["server"], optional = true }

# Utilities
parking_lot = "0.12"
dashmap = "6.1"
# Used in auto_configure_llm to bound the 1Password CLI call so that
# non-tty contexts (CI, agent shells) don't hang on biometric approval
# that can never arrive. 5s is generous; op read is normally <500ms.
wait-timeout = "0.2"
# Used in auto_configure_llm to skip the 1Password lookup entirely in
# non-interactive contexts where it can never succeed.
atty = "0.2"

# CLI
clap = { version = "4.5", features = ["derive"], optional = true }
env_logger = { version = "0.11", optional = true }

[[bin]]
name = "terraphim_rlm"
path = "src/main.rs"
required-features = ["cli"]

[features]
default = ["full"]
full = ["llm", "kg-validation", "supervision", "llm-bridge", "docker-backend", "e2b-backend", "mcp", "cli"]
llm = ["dep:terraphim_service", "dep:terraphim_config"]
kg-validation = ["dep:terraphim_automata", "dep:terraphim_types", "dep:terraphim_rolegraph"]
supervision = ["dep:terraphim_agent_supervisor"]
llm-bridge = ["dep:hyper", "dep:hyper-util"]
docker-backend = ["dep:bollard"]
firecracker = []
e2b-backend = ["dep:reqwest"]
mcp = ["dep:rmcp", "dep:terraphim_mcp_search", "dep:terraphim_types"]
cli = ["dep:clap", "dep:env_logger"]

[dev-dependencies]
tokio-test = "0.4"
tempfile = "3.0"
test-log = "0.2"
ahash = "0.8"
terraphim_config = { version = "1.20.4" }