Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Installation

Requirements

  • Rust edition 2024, MSRV 1.85
  • Cargo (included with Rust)

If you use Nix, the repository includes a development shell:

nix develop

This provides the correct Rust toolchain, cargo, clippy, rustfmt, and all system dependencies.

Adding skelegent to your project

The skelegent crate is an umbrella that re-exports all layers behind feature flags. Add it to your Cargo.toml:

[dependencies]
skelegent = { version = "0.4", features = ["context-engine", "provider-anthropic", "state-memory"] }

Feature flags

The umbrella crate uses feature flags to control which implementations are compiled:

FeatureWhat it enables
coreLayer 0 protocols + skg-turn + skg-context + skg-tool (included in default)
context-engineContext engine (skg-context-engine)
op-single-shotSingle-shot operator (skg-op-single-shot)
provider-anthropicAnthropic Claude provider
provider-openaiOpenAI provider
provider-ollamaOllama local model provider
providers-allAll three providers
state-memoryIn-memory state store
state-fsFilesystem-backed state store
orch-localIn-process orchestrator
orch-kitOrchestration utilities
env-localLocal (passthrough) environment
mcpMCP client integration

Using individual crates

You can also depend on individual crates directly if you want finer control over your dependency tree:

[dependencies]
layer0 = "0.4"
skg-turn = "0.4"
skg-tool = "0.4"
skg-context-engine = "0.4"
skg-provider-anthropic = "0.4"

Verifying your setup

cargo build
cargo test
cargo clippy -- -D warnings

All three should pass cleanly on a fresh checkout.