# lambic

MCP-aware LLM shell with provider switching.

Connects to MCP servers via stdio, talks to LLMs (ollama, OpenAI, Anthropic via litellm),
and provides a terminal chat interface with tool calling.

## Usage

```python
from lambic import Shell, LlmConfig, McpServer

shell = Shell(
    model=LlmConfig(provider="ollama", model="qwen3.5:9b"),
    servers=[
        McpServer("acatome", cmd=["uv", "run", "acatome-mcp"]),
        McpServer("precis", cmd=["uv", "run", "precis"]),
    ],
    system_prompt="You are a research assistant.",
)
shell.run()
```

## CLI

```bash
lambic --config path/to/config.toml
```

## Commands

- `/model <provider/model>` — switch LLM
- `/think on|off` — toggle reasoning mode (default: on)
- `/tools` — list tools with on/off status
- `/tools off <pattern>` — disable tools matching pattern
- `/tools on <pattern>` — enable tools matching pattern
- `/expand <call_id>` — show full (untruncated) tool result
- `/status` — show session info
- `/clear` — clear message history
- `/quit` — exit
