Skip to content

emesal/chibi

Repository files navigation

chibi~

Chibi is a composable building block for LLM interactions — not an agent framework. It provides persistent context storage, a plugin and hook system that exposes the full request lifecycle, communication primitives for multi-agent coordination, and a programmable agentic loop.

Plugins have full access to chibi's lifecycle hooks — they can modify or replace core behaviours (like context assembly, prompt construction, tool filtering, permissions), spawn sub-agents with custom home directories, orchestrate fleets of chibis across different models and system prompts, and implement entirely new coordination patterns. The plugin layer has no ceiling.

Early development — not yet stable.

Install

export CHIBI_API_KEY=your-openrouter-key
git clone https://github.com/emesal/chibi.git
cd chibi && just install
chibi nyaaa~

Requires just and a Rust toolchain. Cargo fetches all dependencies automatically.

Get a free API key at openrouter.ai (no credit card needed), then:

Use

chibi What is Rust?                       # Simple prompt
cat error.log | chibi "explain this"      # Pipe content
chibi -c project "Review this function"   # Named context
chibi -v "Read my Cargo.toml"             # Verbose (show tool use)

Contexts persist across invocations. Switch with -c <name>, list with -L.

chibi explain this girl

Configure

Persist your key and pick a model in ~/.chibi/config.toml:

api_key = "your-key-here"
model = "anthropic/claude-sonnet-4"   # default: free-tier agentic preset

All fields are optional. See Configuration for the full reference.

Documentation

Example plugins: chibi-plugins

License

ISC

Make meow, not rawr

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages