/b00t:b00t-interface-libraryfrom b00t
Designs and implements a Rust interface library for lifecycle management of b00t processes (MCP servers, daemons, sidecars) with deterministic governance controls using an autoresearch pattern.
Ships in b00t. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The b00t interface library (crates/b00t-iface/) is the Rust analog of
train.py in karpathy/autoresearch. It is the single file the agent modifies
and improves. The "research loop" is:
program.md (this skill) ──→ agent
↓ iterates on
b00t-iface/src/lib.rs (single-file interface library)
↓ tested by
cargo test -p b00t-iface (5-minute eval budget)
↓ keep/discard based on
test results + coverage + lint pass
ProcessSurfaceThe library provides one primary trait and one lifecycle manager:
/// A process surface is any executable that can be started, checked,
/// and stopped by the b00t hive. Examples: MCP servers, sidecars,
/// daemons, one-shot scripts.
pub trait ProcessSurface {
type Config: Deserialize;
type Error: std::error::Error;
type Handle;
/// Declare what this surface needs before it can run.
fn requirements(&self) -> Vec<Requirement>;
/// Init: validate config, resolve dependencies, acquire resources.
fn init(&mut self, config: Self::Config) -> Result<(), Self::Error>;
/// Operate: start the process, return a handle for lifecycle control.
fn operate(&self) -> Result<Self::Handle, Self::Error>;
/// Terminate: graceful shutdown, resource release, audit record.
fn terminate(handle: Self::Handle) -> Result<AuditRecord, Self::Error>;
/// Lifecycle maintenance: health check, restart policy, log rotation.
fn maintain(&self) -> MaintenanceAction;
}
Each surface declares a GovernancePolicy:
pub struct GovernancePolicy {
/// Which agents/roles are allowed to start this surface.
pub allowed_starters: Vec<AgentRole>,
/// Maximum runtime before forced re-evaluation.
pub max_ttl: Duration,
/// Whether this surface can be restarted automatically.
pub auto_restart: bool,
/// Crash threshold before surface is quarantined.
pub crash_budget: u32,
}
The agent follows this loop autonomously:
crates/b00t-iface/src/lib.rslib.rs — add a new surface impl, improve governance, fix invariantcargo test -p b00t-iface 2>&1 | tail -20 (the 5-minute eval)git checkout -- crates/b00t-iface/EXPERIMENTS.mdThe first surface to implement: the datum file watcher — a daemon that
watches _b00t_/datums/ for changes and re-validates the invariant schema.
This proves the init → operate → terminate → maintain cycle with a real b00t
resource.
The library decomposes into:
| Module | Purpose | Status |
|---|---|---|
surface | ProcessSurface trait + LifecycleManager | Design |
governance | GovernancePolicy, agent roles, crash budget | Design |
datum_watcher | Datum file watcher surface | First target |
audit | AuditRecord type for termination events | Design |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Claude Code refuses to install this plugin
As a github or url source: Failed to clone repository: fatal: clone of 'https://github.com/azure-ai-foundry/foundry-samples' into submodule path 'foundry-samples' failed
As a github or url source: Failed to clone repository: fatal: clone of 'https://github.com/azure-ai-foundry/foundry-samples' into submodule path 'foundry-samples' failed
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
35 skills in this plugin
/aws-cliCLI-first AWS orchestration skill for Lambda, ECS/Fargate, and S3 workflows rooted in `.☁️` runbooks.
/b00t-hooksb00t hooks implementation status — Claude Code hooks (PostToolUse/PreToolUse/SessionStart) and git hooks (pre-commit/pre-push)/b00t-maintenanceAccess the b00t maintenance loop — check status, view cake token balance,
confirm exercise reminders, and inspect the research queue. The 👍🏻/👎🏻
vote tokens feed the probabilistic cake lottery resolved at pre-commit review.
/bayesianBayesian reasoning: beliefs are probabilities; evidence updates them proportionally.Other plugins' skills for the same job