Metadata-Version: 2.5
Name: tenish-daedalus
Version: 0.10.0
Summary: Agent construction kit — an agent is a directory.
Project-URL: Homepage, https://github.com/tenishai/daedalus
Author: tenish
License-Expression: MIT
License-File: LICENSE
License-File: NOTICE
Requires-Python: >=3.11
Requires-Dist: click>=8.1
Requires-Dist: litellm==1.104.2
Requires-Dist: pydantic>=2.7
Requires-Dist: pyyaml>=6.0
Provides-Extra: a2a
Requires-Dist: fastapi>=0.110; extra == 'a2a'
Requires-Dist: httpx>=0.27; extra == 'a2a'
Requires-Dist: joserfc>=0.9; extra == 'a2a'
Requires-Dist: uvicorn>=0.29; extra == 'a2a'
Provides-Extra: aws
Requires-Dist: boto3>=1.34; extra == 'aws'
Provides-Extra: bridge
Requires-Dist: mcp>=2.2; extra == 'bridge'
Requires-Dist: uvicorn>=0.29; extra == 'bridge'
Provides-Extra: claude-code
Requires-Dist: claude-agent-sdk>=0.2.160; extra == 'claude-code'
Provides-Extra: dev
Requires-Dist: fastapi>=0.110; extra == 'dev'
Requires-Dist: httpx>=0.27; extra == 'dev'
Requires-Dist: joserfc>=0.9; extra == 'dev'
Requires-Dist: jsonschema>=4.0; extra == 'dev'
Requires-Dist: pytest-asyncio>=0.23; extra == 'dev'
Requires-Dist: pytest>=8.0; extra == 'dev'
Requires-Dist: ruff>=0.4; extra == 'dev'
Requires-Dist: uvicorn>=0.29; extra == 'dev'
Provides-Extra: mcp
Requires-Dist: mcp>=1.0; extra == 'mcp'
Provides-Extra: slack
Requires-Dist: aiohttp>=3.9; extra == 'slack'
Requires-Dist: httpx>=0.27; extra == 'slack'
Requires-Dist: slack-sdk>=3.40; extra == 'slack'
Provides-Extra: techne
Requires-Dist: tenish-techne[vectors]>=0.19.1; extra == 'techne'
Description-Content-Type: text/markdown

# daedalus

An open-source agent construction kit. An agent is a directory — a persona,
an A2A agent card, and a wiring file — and daedalus is the runtime that
brings it to life: pluggable transports (CLI, A2A, Slack), a three-tier
approval model, and Protocol seams for memory, tools, and checkpoints.

Run `daedalus guide welcome` for what it can do and every option, from the
installed package.

## Where this fits

**daedalus runs on its own.** Its only dependencies are pydantic, pyyaml,
click and litellm. Every tenish project below is optional: an agent with no
memory and no tool gateway still runs.

- [techne](https://github.com/tenishai/techne): memory, `memory.personal: techne`
  (optional, `techne` extra).
- [liminal](https://github.com/tenishai/liminal): tool gateway, `tools.provider: liminal`
  (optional, install `tenish-liminal` separately).
- cabal: orchestration; calls the a2a transport and hosts the colleagues switchboard
  (optional).
- kobo: composes bundles and teaches agents through cabal (optional).
- a visual builder GUI: a companion project, in development.

> Status: 0.10.0, released. Bundle loader, runtime, CLI/A2A/Slack transports,
> approvals and enforcement have all shipped. Design rationale:
> [docs/design.md](docs/design.md) — where it disagrees with the code, the
> code is right.

## Quickstart

Python 3.11+ and git. On Debian or Ubuntu, install the venv module first:
`sudo apt update && sudo apt install python3-venv git`.

```bash
git clone https://github.com/tenishai/daedalus.git
cd daedalus
python3 -m venv .venv && . .venv/bin/activate
pip install -e .                    # not on PyPI yet
```

Point it at a model. For any OpenAI-compatible endpoint (vLLM, ollama, a hosted gateway):

```bash
export OPENAI_API_BASE=http://localhost:8000/v1   # your endpoint
export OPENAI_API_KEY=...                         # any non-empty string if the server ignores it
export DAEDALUS_MODEL=openai/<model-name>         # the name the endpoint serves
daedalus create prudence            # scaffolds the bundle below
daedalus chat ./prudence            # talk to it
```

If the model writes its tool calls as `<tool_call>` text instead of native tool calls
(Qwen on vLLM does), set `tools.salvage_text_calls: true` in the bundle's `agent.yaml`.
Salvage is on by default only when `model.api_base` is set there, and the env vars above
don't set it.

For Anthropic, set `ANTHROPIC_API_KEY` instead of the three variables above; the default
model is `anthropic/claude-sonnet-4-5`. Any provider litellm supports works the same way.

`daedalus create` writes an agent.yaml whose model reads
`${DAEDALUS_MODEL:-anthropic/claude-sonnet-4-5}`, so `export DAEDALUS_MODEL=…`
switches provider without editing the bundle. Any litellm route string works,
including a local endpoint via `api_base` in agent.yaml. The other commands are
`daedalus run` (serve the declared transports, or `-m "text"` for one reply),
`version`, `schema` and `guide`.

## The idea in one file tree

```
prudence/
├── agent-card.json    # who the agent is (A2A standard)
├── persona.md         # how it behaves
├── agent.yaml         # what it's wired to
├── guardrails.md      # optional: its owners' rules, one per line, on every task
└── skills/            # optional: <id>/SKILL.md, loaded on demand with skills.load
```

```bash
daedalus chat ./prudence     # talk to it locally
daedalus run  ./prudence     # serve its declared transports
```

Same bundle, three runtimes — a chat REPL, an A2A endpoint, a Slack
presence. Each turn runs on an engine: the built-in LiteLLM loop, or Claude Code
(`--engine claude-code`, extra `tenish-daedalus[claude-code]`; read
[docs/design.md](docs/design.md) §2.3b before giving it built-in tools). A bundle can ask
for a model tier (`fast`, `balanced`, `best`) instead of a model, and each deployment maps
the tiers once in a file named by `DAEDALUS_TIERS` (§1.2a). Every chat task's system
prompt carries the current UTC time and weekday (§2.3a). A companion GUI is planned to
edit the same files. No code generation, ever: the bundle is the source of truth,
diffable and PR-reviewable.

## How this was built

tenishai is a small team of engineers who build with AI coding agents. Most of
this code was written in pairing sessions with Claude models in Claude Code: a
person set the design, directed the work and reviewed what landed, and the
agent wrote much of the code and docs. Many commits name the agent in a
`Co-Authored-By:` trailer, either a Claude model or the name of the
agent one of us pairs with. A commit without a trailer may still
have had AI help.

## License

Copyright (C) 2026 tenish and the daedalus contributors

MIT. See [LICENSE](LICENSE).
