Skip to content

Open-source design agent: on-brand stills, decks, diagrams, charts and motion graphics from a chat thread, built on Deep Agents.

Lead with Managed Deep Agents: a plain mda deploy deploys the project (#17)

Amal Irgashev4b125cbb96d3
diff --git a/.agents/skills/design-agent-customize/SKILL.md b/.agents/skills/design-agent-customize/SKILL.md
index 128c2a3..0c7e1fa 100644
--- a/.agents/skills/design-agent-customize/SKILL.md
+++ b/.agents/skills/design-agent-customize/SKILL.md
@@ -26,7 +26,9 @@ Start with the graphic the team asks for every week.
2. Create `skills/<name>/SKILL.md` as a real folder one level deep (MDA does not follow symlinks
there). Frontmatter: `name` is the folder; `description` says when to use it, in the words
people use when they ask. Body: what good looks like, sizes, steps, the checks to run. Put depth
- in `references/` and keep the body small.
+ in `references/` and keep the body small. Text only: binary files (fonts, images) go in
+ `skill-binaries/<name>/`, because Context Hub takes only UTF-8 text; the stager puts them back
+ beside the skill in the sandbox.
3. No brand facts, colours or libraries from a CDN in the skill: the brand pack supplies them.
4. `uv run pytest -q tests/unit/test_taste_skills.py tests/unit/test_media_skills.py` checks
frontmatter, size, links, and that every tool, script and check it names exists.
diff --git a/.agents/skills/design-agent-deploy/SKILL.md b/.agents/skills/design-agent-deploy/SKILL.md
index fc6ba88..f75755f 100644
--- a/.agents/skills/design-agent-deploy/SKILL.md
+++ b/.agents/skills/design-agent-deploy/SKILL.md
@@ -5,7 +5,7 @@ description: Put Design Agent in a team's Slack. Deploy it to Managed Deep Agent
# Deploy Design Agent
-A deployment is what the team uses. Ask before `deploy`, before connecting Slack, and before
+A deployment is what the team uses. Ask before `mda deploy`, before connecting Slack, and before
anything that bills (publishing a snapshot, hosting). Never print a key; name missing settings.
Setup comes first: `uv run design-agent doctor` should pass and the brand pack should validate
(`design-agent-onboarding`, `brand-onboarding`).
@@ -21,18 +21,23 @@ Setup comes first: `uv run design-agent doctor` should pass and the brand pack s
1. **Publish the computer once.** `uv run design-agent sandbox build && uv run design-agent sandbox test`
proves the recipe locally; `uv run design-agent sandbox publish --fs-gib 16` builds the snapshot
in their workspace (sandbox time is billed). Publish again whenever `sandbox/setup.sh` changes.
-2. **Show what ships.** `uv run design-agent deploy --build-only` stages `.mda/deploy-src/` and
- prints which secrets ship and which stay home. Walk the person through it.
-3. **Try a copy first.** `uv run design-agent deploy --name design-agent-test` is a separate
- deployment; the team's agent is untouched.
-4. **Deploy** with `uv run design-agent deploy` after a yes. The first deploy provisions the Slack
- app; the person authorizes it in their Slack workspace.
+2. **Check the keys.** `mda deploy` forwards every `.env` key except LangSmith's as a deployment
+ secret. List the key *names* in `.env` and confirm they are only what the deployed agent uses
+ (model, media, `DESIGN_AGENT_*`, `PAPER_*`); self-hosting keys (`SLACK_*`, `DATABASE_URL`,
+ `DESIGN_AGENT_API_TOKENS`) must not be there. Renders in `workspace/out/` ship too and count
+ toward MDA's 200 MB archive limit. `uv run design-agent doctor` names all of this
+ (`mda-deploy`), and `uv run mda build` compiles what would ship into `.mda/build/`.
+3. **Try a copy first.** `uv run mda deploy --name design-agent-test` is a separate deployment; the
+ team's agent is untouched.
+4. **Deploy** with `uv run mda deploy` after a yes. The first deploy provisions the Slack app; the
+ person authorizes it in their Slack workspace. Without a `LANGSMITH_API_KEY`, `mda deploy`
+ offers a browser sign-in.
5. **Verify with real requests:** a quick still, then a short storyboarded teaser. In Slack you
should see live progress, a check-in while it renders, and files attached at the end. Without
Slack, call the deployment's API ([docs/deploy-mda.md](../../../docs/deploy-mda.md) has the
snippet); files attach to the run's LangSmith trace. `uv run mda logs` tails the deployment.
-6. **Updates:** change, `deploy --build-only`, then `deploy`. A redeploy stops running helpers; each
- affected thread offers to resume from its saved transcript.
+6. **Updates:** change, deploy the test copy, then `uv run mda deploy`. A redeploy stops running
+ helpers; each affected thread offers to resume from its saved transcript.
## Self-hosted
diff --git a/.agents/skills/design-agent-troubleshoot/SKILL.md b/.agents/skills/design-agent-troubleshoot/SKILL.md
index aff6aa0..c98e4b9 100644
--- a/.agents/skills/design-agent-troubleshoot/SKILL.md
+++ b/.agents/skills/design-agent-troubleshoot/SKILL.md
@@ -22,7 +22,9 @@ Report missing settings by name and never paste a key, token or `.env` line.
| Background news arrives a minute or two late on MDA | expected: MDA schedules land on the next minute |
| "A restart may have stopped…" | a deploy or restart stopped helpers; ask the agent to resume them |
| Paper "not connected" | Paper Desktop is closed or the bridge is down; boards still render in the sandbox |
-| `deploy` refuses the sandbox | `uv run design-agent sandbox publish` first |
+| The sandbox bake runs out of disk on `mda deploy` | `uv run design-agent sandbox publish` first |
+| "Context Hub only accepts UTF-8 text files" | move the skill's binary files to `skill-binaries/<skill>/` |
+| "source archive … exceeds the 200 MB limit" | clear old renders in `workspace/out/` |
| An MCP server is missing | the startup log names the one that failed; the rest keep working |
4. **Logs:** `uv run mda logs` on MDA; `docker compose -f deploy/self-host/compose.yaml logs api`
diff --git a/.agents/skills/design-agent-update/SKILL.md b/.agents/skills/design-agent-update/SKILL.md
index fe3ed88..60aa1ca 100644
--- a/.agents/skills/design-agent-update/SKILL.md
+++ b/.agents/skills/design-agent-update/SKILL.md
@@ -17,5 +17,5 @@ so an update never touches them. The team's own skills and instruction edits can
5. If `sandbox/setup.sh` changed: `uv run design-agent sandbox build && uv run design-agent sandbox test`;
for Managed Deep Agents, also `uv run design-agent sandbox publish` (the snapshot name follows the
recipe's hash).
-6. Try the update on a test copy (`uv run design-agent deploy --name design-agent-test`), then
+6. Try the update on a test copy (`uv run mda deploy --name design-agent-test`), then
deploy the team's agent after a yes ([design-agent-deploy](../design-agent-deploy/SKILL.md)).
diff --git a/.agents/skills/release-check/SKILL.md b/.agents/skills/release-check/SKILL.md
index 620865f..9d40392 100644
--- a/.agents/skills/release-check/SKILL.md
+++ b/.agents/skills/release-check/SKILL.md
@@ -19,6 +19,6 @@ maintainers' call.
component, `NOTICE.md` is current, and `skills-lock.json` names each upstream license.
5. Docs: every link resolves (`uv run pytest -q tests/unit/test_docs_links.py`), README quick start
works from a clean clone, `CHANGELOG.md` has the release.
-6. `uv run design-agent deploy --build-only` from a clean checkout; inspect `.mda/deploy-src`.
+6. `uv run mda build` from a clean checkout; inspect `.mda/build` and `.mda/__contexthub__`.
7. Human gates (SPEC §24): partner reviews (HyperFrames, Paper), legal review, sample-brand and
gallery review. Record who signed off outside the repository.
diff --git a/.env.example b/.env.example
index 1c3371d..076ca87 100644
--- a/.env.example
+++ b/.env.example
@@ -1,5 +1,6 @@
# Copy to .env (or use `design-agent config set KEY=value`) and fill in what you use.
-# `design-agent deploy` ships only the keys the deployed agent reads; see docs/deploy-mda.md.
+# `mda deploy` forwards every key here except LANGSMITH_* as a deployment secret: deploy from an
+# .env that holds only what the agent uses (no self-hosting keys). See docs/deploy-mda.md.
# Model (provider:model). Gateway form: langsmith:provider/model
DESIGN_AGENT_MODEL=anthropic:claude-opus-5-5
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 2a5efca..33920e5 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -38,8 +38,8 @@ jobs:
run: uv run --frozen design-agent skills verify
- name: MDA definition import smoke
run: uv run --frozen python -c "import agent; print(agent.agent.config['name'])"
- - name: MDA compiles exactly what deploy would ship
- run: uv run --frozen design-agent deploy --build-only
+ - name: MDA compiles the project as it is (what `mda deploy` ships)
+ run: uv run --frozen mda build .
render:
runs-on: ubuntu-latest
diff --git a/AGENTS.md b/AGENTS.md
index e64fe65..033e3ec 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -62,7 +62,9 @@ behind them.
`skills/<name>/SKILL.md`, does not follow symlinks inside `skills/`, and evals do not see a
symlinked skills root). MDA mounts them read-only at `/skills/` from Context Hub, outside the
sandbox filesystem; the workspace stager copies their scripts and assets into
- `/workspace/skills/<name>/` so they can run.
+ `/workspace/skills/<name>/` so they can run. Context Hub takes only UTF-8 text, so a skill's
+ binary files live in `skill-binaries/<name>/` and the stager merges them back; a plain
+ `mda deploy` fails on one binary file under `skills/`.
- Vendored skills keep their upstream names (HyperFrames and `langsmith-trace` under `skills/`,
LangChain's coding-agent skills under `.agents/skills/`) and are listed in `skills-lock.json`
(each upstream's repo, commit and license, per-file sha256). Never patch vendored files; override
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1552931..0d4013e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,10 @@
### Changed
+- A plain `mda deploy` deploys the project, and `mda dev` runs it: vendored skills' binary files
+ (fonts) live in `skill-binaries/`, so `skills/` syncs to Context Hub as it is. The `deploy` and
+ `dev` wrappers are gone; `doctor` checks what would make `mda deploy` fail or ship the wrong
+ thing. The README leads with the MDA quickstart. Requires managed-deepagents 0.9.4.
- The product spec moved to `docs/spec.md`.
- `langsmith:anthropic/*` and `langsmith:openai/*` models use the LangSmith Gateway's native
routes, so prompt caching, context editing, tool search and effort work through the gateway.
@@ -11,8 +15,7 @@
as written when it repairs a thread.
- Brand packs can name colour roles per mode; web-format brand fonts load through `@font-face`;
`fonts verify` checks each file's family; the render font gate accepts web fonts.
-- `ask` prints the run's estimated cost; `deploy --name` deploys a separate copy; binary skill
- files ship outside Context Hub; `demo` always uses the sample brand; evals keep the task set's
+- `ask` prints the run's estimated cost; `demo` always uses the sample brand; evals keep the task set's
brand.
### Added
@@ -68,9 +71,7 @@
and an optional soft job budget.
- MCP servers from `config/mcp.toml` on every runtime (`{server}_{tool}` names), loaded per server
with isolation, disclosed through provider tool search or a bounded selector.
-- `design-agent deploy`: a preflight, a minimal staged project with a filtered `.env`, and
- `mda deploy` after a yes; `deploy --build-only` compiles it. `sandbox publish` builds the
- computer as a LangSmith snapshot and declares it.
+- `sandbox publish` builds the computer as a LangSmith snapshot and declares it.
- The self-hosted runtime: a FastAPI surface with per-caller thread ownership, attachments,
background updates and downloads; Postgres (or SQLite) persistence; durable check-ins; startup
sweep, idle sandbox reaping and housekeeping; a Docker Compose stack.
@@ -94,6 +95,6 @@
design-wiki (public doctrine, platform specs, review rubric), motion-direction (directing, craft,
techniques, sound, review, motion presets), launch-film (phases, orchestration, eight briefs, aligned
with the pipeline) and reference-study; the router points at them.
-- CLI: `dev`, `brand init`, `fonts verify`, `sandbox use`, `test model|sandbox|paper|slack|db`, and
+- CLI: `brand init`, `fonts verify`, `sandbox use`, `test model|sandbox|paper|slack|db`, and
a key preflight on `ask`.
diff --git a/OPERATIONS.md b/OPERATIONS.md
index cead750..947db85 100644
--- a/OPERATIONS.md
+++ b/OPERATIONS.md
@@ -52,7 +52,7 @@ truth. Set `DESIGN_AGENT_JOB_BUDGET_USD` to make the agent ask before going past
| Background news arrives a minute or two late on MDA | expected: MDA schedules land on the next minute |
| "A restart may have stopped…" | a deploy or restart stopped helpers; ask the agent to resume them |
| Paper "not connected" | Paper Desktop is closed or the bridge is unreachable; boards still render in the sandbox |
-| `deploy` refuses the sandbox | publish the snapshot first: `uv run design-agent sandbox publish` |
+| The sandbox bake runs out of disk on `mda deploy` | publish the snapshot first: `uv run design-agent sandbox publish` |
| An MCP server is missing | it failed to load; the startup log names it and the rest keep working |
Logs: `uv run mda logs` for MDA; `docker compose -f deploy/self-host/compose.yaml logs api` for
@@ -63,7 +63,8 @@ self-hosted. Logs carry exception classes, never provider messages or keys.
- Python dependencies: `uv lock --upgrade`, then the checks in [CONTRIBUTING.md](CONTRIBUTING.md).
- HyperFrames and its skills: the [vendor-sync skill](.agents/skills/vendor-sync/SKILL.md).
- Managed Deep Agents: read the release notes for API changes (for example the 0.10 Slack
- `trigger_mode`), then `deploy --build-only` and a test deployment.
+ `trigger_mode`), then `uv run mda build` and a test deployment
+ (`uv run mda deploy --name design-agent-test`).
## Backups
diff --git a/README.md b/README.md
index 74e45ae..1c3078a 100644
--- a/README.md
+++ b/README.md
@@ -18,8 +18,8 @@
<a href="https://docs.langchain.com/langsmith/python/managed-deep-agents-overview?utm_source=github&utm_medium=readme&utm_campaign=design-agent"><picture><source media="(prefers-color-scheme: dark)" srcset="https://shieldcn.dev/badge/deploy-Managed%20Deep%20Agents-7FC8FF.svg?variant=outline&logo=lu:Rocket&mode=dark"><img src="https://shieldcn.dev/badge/deploy-Managed%20Deep%20Agents-006DDD.svg?variant=outline&logo=lu:Rocket&mode=light" alt="Deploy with Managed Deep Agents"></picture></a>
</p>
<p>
- <b><a href="#deploy-it">Put it in your team's Slack →</a></b> ·
- <a href="#get-started">Try the demo, no keys needed</a> ·
+ <b><a href="#quickstart">Distribute the design agent to your team →</a></b> ·
+ <a href="#try-it-locally">Try it locally, no keys needed</a> ·
<a href="docs/README.md">Docs</a>
</p>
</div>
@@ -37,6 +37,28 @@ https://github.com/user-attachments/assets/0664d09d-2ab2-41fd-b2ba-f91c96121e20
<p align="center"><sub>One Slack request for a launch film: the plan, the storyboard, helpers rendering in parallel, the checks and the final cut.</sub></p>
+<details>
+<summary>The prompts that made this film</summary>
+
+The agent made it in one Slack thread. The opening ask:
+
+> I need you to create an explainer video on brand, in a sleek, modern, minimal way, about how your
+> media harness works and how you create videos and design in code end to end. It should be short;
+> it'll be used in the blog post about the media harness built on top of Deep Agents. A breakdown of
+> how you create a video end to end, in an engaging style.
+
+Then notes like these, each answered with a new cut:
+
+- "Keep the version we had before, I liked that more. Just show that it's Paper."
+- "For the plan, make it a little more dynamic. Maybe show steps and substeps like a to-do list."
+- "The sandbox should show a computer with all of the cool layers of tooling it has: Paper,
+ HyperFrames, skills, wiki, files and folders."
+- "Remove the taste part and add a section where it's critiquing itself and reviewing the entire
+ work, then making more edits itself."
+- "On the sandbox part you need some computer sounds and mouse clicks."
+
+</details>
+
| Building it yourself | Starting here |
| --- | --- |
| Months on a harness, a sandbox, skills and a Slack UX | Fork it, add your brand, deploy with one command |
@@ -55,35 +77,52 @@ https://github.com/user-attachments/assets/0664d09d-2ab2-41fd-b2ba-f91c96121e20
- **Slack that holds up on long jobs:** a lead that plans and gives an ETA, takes notes mid-job,
hands long work to helpers (subagents) running in parallel, and asks before anything goes
public.
-- **Everything to run it:** one-command deploy to Managed Deep Agents or self-hosting with Docker,
- evals built from real requests, and every run traced in LangSmith.
+- **Everything to run it on Managed Deep Agents:** a sandbox per thread, the Slack app, schedules
+ and tracing, plus evals built from real requests.
+
+## Quickstart
+
+This repository is a [Managed Deep Agents](https://docs.langchain.com/langsmith/python/managed-deep-agents-overview?utm_source=github&utm_medium=readme&utm_campaign=design-agent) project, so it deploys to your LangSmith
+workspace as it is. You need MDA access and a model key:
-## Get started
+```bash
+curl -fsSL https://raw.githubusercontent.com/langchain-ai/design-agent/main/install.sh | bash
+cd design-agent
+uv run design-agent config set LANGSMITH_API_KEY=lsv2_… ANTHROPIC_API_KEY=sk-ant-…
+uv run design-agent sandbox publish # once per workspace: the agent's computer
+uv run mda deploy
+```
-Open the repo in Claude Code, Codex or Cursor and ask for what you want. [AGENTS.md](AGENTS.md)
-routes each request to a step-by-step [skill](.agents/skills/):
+The installer gets [uv](https://docs.astral.sh/uv/) if you don't have it, clones the repository and
+installs its dependencies; `git clone` and `uv sync` do the same.
+
+The first deploy sets up the agent's Slack app. Authorize it in your workspace, then mention the
+agent in a channel. It's how we run ours at LangChain. Try changes on a separate copy with
+`uv run mda deploy --name design-agent-test`; [Deploy with MDA](docs/deploy-mda.md) covers keys,
+what ships and checking it works.
+
+**Or ask your coding agent.** Open the repo in Claude Code, Codex or Cursor and say what you want.
+[AGENTS.md](AGENTS.md) routes each request to a step-by-step [skill](.agents/skills/):
| Say | It will |
| --- | --- |
-| "Set up Design Agent and run the demo." | install it, build its computer, and render a demo with no API keys |
+| "Deploy it to our Slack." | publish the sandbox, check what ships, and deploy after your yes |
| "Build our brand pack from our website and brand guide." | draft the pack, validate it, and ask you to review it |
-| "Deploy it to our Slack." | publish the sandbox, show you what ships, and deploy after your yes |
| "Teach it to make our weekly newsletter header." | add a skill for it and try it on a real request |
| "Did that change make it better?" | run the evals before and after, and show you the numbers |
-**Or set it up by hand.** You need **Python 3.11+**, [uv](https://docs.astral.sh/uv/) and **Docker**. The demo
-runs the real agent, sandbox and checks with a scripted model, and leaves a launch card in three
-sizes and a 4-second teaser in `workspace/out/demo/`:
+## Try it locally
+
+The demo runs the real agent, sandbox and checks with a scripted model and no API keys. It needs
+**Docker**, and leaves a launch card in three sizes and a 4-second teaser in `workspace/out/demo/`:
```bash
-git clone https://github.com/langchain-ai/design-agent.git && cd design-agent
-uv sync
uv run design-agent sandbox build
uv run design-agent demo
```
-Then put `ANTHROPIC_API_KEY=…` in `.env` and ask for something real. Files land in
-`workspace/out/<thread>/`, and the last line tells you what the run cost:
+With a model key in `.env`, ask for something real. Files land in `workspace/out/<thread>/`, and the
+last line tells you what the run cost:
```bash
uv run design-agent ask "A LinkedIn card announcing our design review service, 1200x627."
@@ -115,22 +154,6 @@ uv run design-agent ask "A LinkedIn card announcing our design review service, 1
Everything on this page uses LangChain's brand, because that's the one we run. Licensed fonts go in
`private-fonts/`, which Git ignores.
-## Deploy it
-
-Open the repo in Claude Code, Codex or Cursor and say "Deploy it to our Slack." The
-[deploy skill](.agents/skills/design-agent-deploy/SKILL.md) publishes the sandbox, shows you exactly
-what will ship and deploys after your yes. It's how we run ours at LangChain.
-
-| | Managed Deep Agents (recommended) | Self-hosted |
-| --- | --- | --- |
-| Start | `uv run design-agent sandbox publish`, then `uv run design-agent deploy` | `docker compose -f deploy/self-host/compose.yaml up -d --build` |
-| Who runs it | LangSmith: the agent, a sandbox per thread, the Slack app and the schedules, with secrets and tracing | you: the API, Postgres, a Docker host for the sandboxes and your own Slack app |
-| Guide | [Deploy with MDA](docs/deploy-mda.md) | [Self-hosting](docs/self-hosting.md) |
-
-Try it before your team depends on it: the demo needs no keys, and `deploy --name design-agent-test`
-gives you a separate copy to try changes on. It's Apache 2.0, so you can move to self-hosting at any
-time.
-
## Questions
**What does it cost?** The code is free (Apache 2.0). You pay your model provider: at LangChain the
@@ -145,8 +168,10 @@ your brand guide, website, files or a Paper file.
**Where do I start?** With the graphic your team asks for every week. Let people brief the agent,
review the work and ask for changes in Slack, then teach it the next thing.
-**Do I need Slack?** No. Use the terminal (`design-agent ask`), the self-hosted HTTP API, or a
-deployment's API.
+**Do I need Slack?** No. Call the deployment's API, open it in LangSmith Studio, or use the
+terminal (`design-agent ask`). On Managed Deep Agents, long jobs that work in the background
+(films, parallel looks) report back in Slack; over the API, keep to requests that finish in one
+turn.
**Is it safe with my keys?** The sandbox never holds a credential and has no network by default.
Host tools do the fetching, generating and delivering, and drop results in as files.
@@ -154,6 +179,9 @@ Host tools do the fetching, generating and delivering, and drop results in as fi
**Which models?** Claude Opus 5.5 by default. OpenAI and Google models, any OpenAI-compatible
endpoint and the LangSmith Gateway work too. See [Models](docs/models.md).
+**Can I run it on my own servers?** Yes. It's Apache 2.0, and [Self-hosting](docs/self-hosting.md)
+runs the same agent with Docker, an HTTP API and your own Slack app.
+
**Does it replace a designer?** No. It takes the repetitive requests, so designers spend their time on
the work only they can do, and their judgment lives on in its skills and checks.
@@ -162,26 +190,25 @@ the work only they can do, and their judgment lives on in its skills and checks.
The model makes the creative calls. Code does everything that has to be exactly right: rendering,
measuring, checking, delivering files and holding your keys. It's built on the
[Deep Agents](https://github.com/langchain-ai/deepagents) harness and runs on
-[Managed Deep Agents](https://docs.langchain.com/langsmith/python/managed-deep-agents-overview?utm_source=github&utm_medium=readme&utm_campaign=design-agent) or
-your own infrastructure.
+[Managed Deep Agents](https://docs.langchain.com/langsmith/python/managed-deep-agents-overview?utm_source=github&utm_medium=readme&utm_campaign=design-agent).
Read the [architecture](docs/architecture/README.md), or start changing it:
[instructions.md](instructions.md) · [skills/](skills/) · [Customization](docs/customization.md) ·
[Evals](docs/evals.md) · [Operations](OPERATIONS.md) · [Contributing](CONTRIBUTING.md).
**Build your own.** Fork it, add your brand tokens, fonts and skills, and deploy it to your team's
-Slack. [Get started](#get-started). If it's useful, a star helps other teams find it.
+Slack. [Quickstart](#quickstart). If it's useful, a star helps other teams find it.
## Built with
<p>
- <a href="https://github.com/langchain-ai/deepagents"><picture><source media="(prefers-color-scheme: dark)" srcset="https://github.com/langchain-ai/design-agent/raw/main/docs/assets/readme/logos/deep-agents-dark.svg"><img src="https://github.com/langchain-ai/design-agent/raw/main/docs/assets/readme/logos/deep-agents-light.svg" alt="Deep Agents" height="28"></picture></a>
+ <a href="https://github.com/langchain-ai/deepagents"><img src="docs/assets/readme/logos/deep-agents-symbol.svg" alt="" height="24" align="absmiddle"> <b>Deep Agents</b></a>
&nbsp;&nbsp;
- <a href="https://docs.langchain.com/langsmith/python/managed-deep-agents-overview?utm_source=github&utm_medium=readme&utm_campaign=design-agent"><picture><source media="(prefers-color-scheme: dark)" srcset="https://github.com/langchain-ai/design-agent/raw/main/docs/assets/readme/logos/langsmith-deployment-dark.svg"><img src="https://github.com/langchain-ai/design-agent/raw/main/docs/assets/readme/logos/langsmith-deployment-light.svg" alt="LangSmith Deployment" height="28"></picture></a>
+ <a href="https://docs.langchain.com/langsmith/python/managed-deep-agents-overview?utm_source=github&utm_medium=readme&utm_campaign=design-agent"><img src="docs/assets/readme/logos/langsmith-deployment-symbol.svg" alt="" height="24" align="absmiddle"> <b>Managed Deep Agents</b></a>
&nbsp;&nbsp;
- <a href="https://hyperframes.heygen.com"><picture><source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/heygen-com/hyperframes/main/docs/logo/dark.svg"><img src="https://raw.githubusercontent.com/heygen-com/hyperframes/main/docs/logo/light.svg" alt="HyperFrames" height="28"></picture></a>
+ <a href="https://hyperframes.heygen.com"><img src="https://raw.githubusercontent.com/heygen-com/hyperframes/main/docs/logo/symbol-dark.svg" alt="" height="24" align="absmiddle"> <b>HyperFrames</b></a>
&nbsp;&nbsp;
- <a href="https://paper.design"><img src="https://avatars.githubusercontent.com/u/178361271?s=56" alt="Paper" height="28" align="absmiddle"> <b>Paper</b></a>
+ <a href="https://paper.design"><img src="https://avatars.githubusercontent.com/u/178361271?s=48" alt="" height="24" align="absmiddle"> <b>Paper</b></a>
</p>
Also: [LangSmith](https://smith.langchain.com/?utm_source=github&utm_medium=readme&utm_campaign=design-agent) ·
diff --git a/deploy/self-host/Dockerfile b/deploy/self-host/Dockerfile
index 8a8a5c9..af1bc71 100644
--- a/deploy/self-host/Dockerfile
+++ b/deploy/self-host/Dockerfile
@@ -14,6 +14,7 @@ RUN uv sync --frozen --no-dev --extra self-host --extra slack
COPY instructions.md NOTICE.md ./
COPY config ./config
COPY skills ./skills
+COPY skill-binaries ./skill-binaries
COPY workspace/tools ./workspace/tools
COPY examples/brands ./examples/brands
COPY fonts ./fonts
diff --git a/docs/architecture/orchestration.md b/docs/architecture/orchestration.md
index b021298..7593704 100644
--- a/docs/architecture/orchestration.md
+++ b/docs/architecture/orchestration.md
@@ -61,7 +61,7 @@ batch that did start a run can be recognised by the adapter.
Adapters live outside the harness. Self-hosted, the waker enqueues a run in the API process with a
Postgres timer table for check-ins (SPEC §7.4). On MDA it uses public one-time runtime schedules on
-the current thread (`runtime/waker/mda.py`), with these constraints from managed-deepagents 0.9.3:
+the current thread (`runtime/waker/mda.py`), with these constraints from managed-deepagents 0.9.4:
- **Latency.** A schedule's `at` must be at least a minute ahead and is rounded up to the next
whole minute, so a wake-up lands 60–120 s after the event, plus the scheduler's own lag. The
diff --git a/docs/assets/readme/logos/deep-agents-dark.svg b/docs/assets/readme/logos/deep-agents-dark.svg
deleted file mode 100644
index 4cecf91..0000000
--- a/docs/assets/readme/logos/deep-agents-dark.svg
+++ /dev/null
@@ -1,13 +0,0 @@
-<svg width="510" height="100" viewBox="0 0 510 100" fill="none" xmlns="http://www.w3.org/2000/svg">
-<rect width="100" height="100" rx="20.0365" fill="#161F34"/>
-<g clip-path="url(#clip0_2381_5200)">
-<path d="M73.7371 42.5435V21.8158H52.3481L52.3482 22.3079C63.4288 22.5936 72.4574 31.6684 73.3601 42.5435H73.7371Z" fill="#7FC8FF"/>
-<path d="M49.7647 21.816H24.7291V64.0228C24.7291 71.817 30.7401 76.6658 40.4177 76.6658H73.7483V45.8297H49.7647V21.816Z" fill="#7FC8FF"/>
-</g>
-<path d="M154.487 70.608C146.027 70.608 139.787 64.908 139.787 54.948C139.787 45.588 146.027 39.288 154.487 39.288C159.647 39.288 163.127 41.388 164.987 44.328V28.248H169.907V70.248H165.647L164.987 65.328C162.947 68.148 159.647 70.608 154.487 70.608ZM154.967 66.228C160.967 66.228 165.047 61.608 165.047 55.068C165.047 48.348 160.967 43.668 154.967 43.668C148.907 43.668 144.827 48.288 144.827 54.948C144.827 61.608 148.907 66.228 154.967 66.228ZM192.894 70.608C183.714 70.608 177.954 64.308 177.954 54.948C177.954 45.648 183.834 39.288 192.534 39.288C201.114 39.288 206.934 44.808 206.934 53.928C206.934 54.348 206.934 55.248 206.874 56.028H183.114V56.148C183.114 62.028 186.954 66.228 192.774 66.228C197.094 66.228 200.454 63.948 201.474 59.988H206.454C205.254 66.108 199.974 70.608 192.894 70.608ZM183.414 51.828H201.714C201.234 46.548 197.634 43.608 192.534 43.608C188.034 43.608 183.894 46.848 183.414 51.828ZM230.101 70.608C220.921 70.608 215.161 64.308 215.161 54.948C215.161 45.648 221.041 39.288 229.741 39.288C238.321 39.288 244.141 44.808 244.141 53.928C244.141 54.348 244.141 55.248 244.081 56.028H220.321V56.148C220.321 62.028 224.161 66.228 229.981 66.228C234.301 66.228 237.661 63.948 238.681 59.988H243.661C242.461 66.108 237.181 70.608 230.101 70.608ZM220.621 51.828H238.921C238.441 46.548 234.841 43.608 229.741 43.608C225.241 43.608 221.101 46.848 220.621 51.828ZM252.248 82.248V39.648H256.508L257.168 44.568C259.208 41.748 262.508 39.288 267.668 39.288C276.128 39.288 282.368 44.988 282.368 54.948C282.368 64.308 276.128 70.608 267.668 70.608C262.508 70.608 259.028 68.508 257.168 65.568V82.248H252.248ZM267.188 66.228C273.248 66.228 277.328 61.608 277.328 54.948C277.328 48.288 273.248 43.668 267.188 43.668C261.188 43.668 257.108 48.288 257.108 54.828C257.108 61.548 261.188 66.228 267.188 66.228ZM300.795 70.608C294.075 70.608 289.515 67.248 289.515 61.668C289.515 55.548 293.775 52.128 301.815 52.128H310.815V50.028C310.815 46.068 307.995 43.668 303.195 43.668C298.875 43.668 295.995 45.708 295.395 48.828H290.475C291.195 42.828 296.055 39.288 303.435 39.288C311.235 39.288 315.735 43.188 315.735 50.328V63.708C315.735 65.328 316.335 65.748 317.715 65.748H319.275V70.248H316.575C312.495 70.248 311.115 68.508 311.055 65.508C309.135 68.268 306.075 70.608 300.795 70.608ZM301.155 66.408C307.275 66.408 310.815 62.868 310.815 57.768V56.268H301.335C296.955 56.268 294.495 57.888 294.495 61.368C294.495 64.368 297.075 66.408 301.155 66.408ZM340.762 82.608C332.962 82.608 327.502 78.948 326.722 72.228H331.762C332.602 76.068 336.022 78.228 341.122 78.228C347.542 78.228 351.022 75.228 351.022 68.568V64.968C348.982 68.448 345.682 70.608 340.522 70.608C332.062 70.608 325.822 64.908 325.822 54.948C325.822 45.588 332.062 39.288 340.522 39.288C345.682 39.288 349.102 41.508 351.022 44.928L351.682 39.648H355.942V68.748C355.942 77.568 351.262 82.608 340.762 82.608ZM341.002 66.228C347.002 66.228 351.082 61.608 351.082 55.068C351.082 48.348 347.002 43.668 341.002 43.668C334.942 43.668 330.862 48.288 330.862 54.948C330.862 61.608 334.942 66.228 341.002 66.228ZM378.929 70.608C369.749 70.608 363.989 64.308 363.989 54.948C363.989 45.648 369.869 39.288 378.569 39.288C387.149 39.288 392.969 44.808 392.969 53.928C392.969 54.348 392.969 55.248 392.909 56.028H369.149V56.148C369.149 62.028 372.989 66.228 378.809 66.228C383.129 66.228 386.489 63.948 387.509 59.988H392.489C391.289 66.108 386.009 70.608 378.929 70.608ZM369.449 51.828H387.749C387.269 46.548 383.669 43.608 378.569 43.608C374.069 43.608 369.929 46.848 369.449 51.828ZM402.636 70.248V39.648H406.896L407.556 43.788C409.356 41.448 412.356 39.288 417.156 39.288C423.636 39.288 429.036 42.948 429.036 52.848V70.248H424.116V53.148C424.116 47.028 421.236 43.788 416.316 43.788C410.976 43.788 407.556 47.928 407.556 53.988V70.248H402.636ZM455.983 70.248C450.103 70.248 448.003 67.668 448.003 62.268V44.148H438.283V39.648H448.003V31.068H452.923V39.648H466.243V44.148H452.923V62.208C452.923 64.788 453.823 65.748 456.463 65.748H466.723V70.248H455.983ZM490.73 70.608C482.81 70.608 477.35 66.888 477.23 60.168H482.27C482.45 63.768 485.63 66.408 490.73 66.408C495.05 66.408 498.11 64.548 498.11 61.728C498.11 57.888 494.75 57.588 490.19 57.048C483.35 56.208 477.89 54.828 477.89 48.468C477.89 42.888 482.99 39.288 489.89 39.288C496.85 39.288 501.89 42.588 502.37 48.948H497.33C496.97 45.828 494.09 43.488 489.89 43.488C485.63 43.488 482.75 45.288 482.75 48.108C482.75 51.468 485.99 51.888 490.43 52.428C497.39 53.268 502.97 54.588 502.97 61.368C502.97 67.068 497.51 70.608 490.73 70.608Z" fill="white"/>
-<defs>
-<clipPath id="clip0_2381_5200">
-<rect width="49.0192" height="54.8498" fill="white" transform="translate(24.7333 21.8175)"/>
-</clipPath>
-</defs>
-</svg>
diff --git a/docs/assets/readme/logos/deep-agents-light.svg b/docs/assets/readme/logos/deep-agents-symbol.svg
similarity index 98%
rename from docs/assets/readme/logos/deep-agents-light.svg
rename to docs/assets/readme/logos/deep-agents-symbol.svg
index ac515b0..f07e9c6 100644
--- a/docs/assets/readme/logos/deep-agents-light.svg
+++ b/docs/assets/readme/logos/deep-agents-symbol.svg
@@ -1,4 +1,4 @@
-<svg width="510" height="100" viewBox="0 0 510 100" fill="none" xmlns="http://www.w3.org/2000/svg">
+<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="100" height="100" rx="20.0365" fill="#161F34"/>
<g clip-path="url(#clip0_2381_5202)">
<path d="M73.7371 42.5435V21.8158H52.3481L52.3482 22.3079C63.4288 22.5936 72.4574 31.6684 73.3601 42.5435H73.7371Z" fill="#7FC8FF"/>
diff --git a/docs/assets/readme/logos/langsmith-deployment-dark.svg b/docs/assets/readme/logos/langsmith-deployment-dark.svg
deleted file mode 100644
index 1fe53fa..0000000
--- a/docs/assets/readme/logos/langsmith-deployment-dark.svg
+++ /dev/null
@@ -1,26 +0,0 @@
-<svg width="772" height="100" viewBox="0 0 772 100" fill="none" xmlns="http://www.w3.org/2000/svg">
-<rect width="100.006" height="100.006" rx="20.0013" fill="#7FC8FF"/>
-<path d="M42.1051 30.5869C35.3015 30.6618 28.5204 33.2918 23.3316 38.4806C19.0494 42.7628 16.5056 48.1315 15.7039 53.6987L32.9 49.7425L33.2747 47.8243C34.3799 42.1184 37.6206 35.9405 42.1088 30.5831L42.1051 30.5869Z" fill="black"/>
-<path d="M69.3674 57.8913C64.0174 62.4245 57.9257 65.7363 52.4409 66.9127L50.5789 67.3136L47.8853 83.9665C52.8643 82.9363 57.6073 80.4936 61.4699 76.631C66.6512 71.4496 69.2812 64.6836 69.3636 57.8875L69.3674 57.8913Z" fill="black"/>
-<path d="M72.6601 48.8403C76.7324 43.7789 82.9778 33.5399 79.059 21.791C67.1865 17.0667 56.7976 22.9674 51.665 26.9086C49.9416 28.2274 48.3194 29.7072 46.8058 31.2807C41.7444 36.567 38.0429 43.0184 36.9077 48.8741L51.324 63.2904C56.8575 62.1028 63.3576 58.2327 68.6776 53.145C70.1012 51.7813 71.4425 50.3427 72.6563 48.8366L72.6601 48.8403Z" fill="black"/>
-<g clip-path="url(#clip0_2381_5002)">
-<path d="M414.279 37.9535C409.267 37.9535 406.39 40.6497 404.57 44.3438V26.4908H396.677V71.2184H404.756V56.6836C404.756 48.7896 407.703 44.9703 412.024 44.9703C416.66 44.9703 417.913 48.669 417.913 53.3654V71.2184H425.932V51.4209C425.932 43.4667 422.674 37.9535 414.279 37.9535Z" fill="#F2FAFF"/>
-<path d="M374.122 44.9747H379.32V60.1964C379.32 66.7121 381.575 71.4735 389.595 71.3482H393.479V64.9579H391.414C387.966 64.9579 387.154 62.8278 387.154 59.0687V44.9747H393.669V38.835H374.122V44.9747Z" fill="#F2FAFF"/>
-<path d="M387.149 31.5258V26.4999H379.32V36.7931H381.83C384.615 36.7931 387.149 34.3103 387.149 31.5258Z" fill="#F2FAFF"/>
-<path d="M370.41 71.2184H362.33V44.4412C362.33 41.3412 364.841 38.8306 367.941 38.8306H370.41V71.2184Z" fill="#F2FAFF"/>
-<path d="M370.535 29.2752H362.205V36.7932H370.535V29.2752Z" fill="#F2FAFF"/>
-<path d="M346.05 37.9581C341.349 37.9581 338.843 40.1485 337.029 44.0328C335.4 39.8376 332.393 37.9581 328.007 37.9581C323.311 37.9581 320.303 41.0906 319.301 44.1581V38.8352H311.412V71.223H319.491V56.6882C319.491 50.3628 320.744 44.9749 325.756 44.9749C330.207 44.9749 331.019 48.6736 331.019 53.37V71.223H338.787V55.7507C338.787 48.9845 341.229 44.9749 344.988 44.9749C348.997 44.9749 350.25 48.6736 350.25 53.37V71.223H358.204V51.4256C358.204 43.4713 354.195 37.9581 346.05 37.9581Z" fill="#F2FAFF"/>
-<path d="M291.916 45.2812C286.152 43.592 282.518 41.8981 282.518 38.2041C282.518 34.0738 285.841 32.3799 290.036 32.3799C294.863 32.3799 297.369 34.6353 298.181 39.522H306.576C305.639 29.6233 299.183 25.428 290.227 25.428C282.022 25.428 274.128 29.5026 274.253 38.0834C274.318 46.9797 281.646 49.4857 289.039 51.7412C294.742 53.4304 298.687 54.4978 298.687 59.0689C298.687 63.2642 295.494 65.3339 290.607 65.3339H290.602C285.215 65.3339 281.265 62.3221 280.954 56.8089H272.374C273.125 67.3944 280.829 72.2812 290.602 72.2812C298.872 72.2812 306.952 68.5871 306.952 59.0643C306.952 49.5414 299.494 47.4717 291.916 45.2812Z" fill="#F2FAFF"/>
-<path d="M259.978 43.4017H259.918C258.79 40.7704 255.532 37.9534 250.144 37.9534C241.373 37.9534 235.108 44.0932 235.108 54.3678C235.108 64.6424 241.434 70.9075 250.205 70.9075C255.778 70.9075 258.66 68.1509 259.913 65.0833H259.973V68.9676C259.973 74.4809 257.152 77.1122 252.079 77.1122C247.819 77.1122 245.002 75.6086 244.25 72.1001H236.357C237.234 78.4905 243.123 83.2519 252.205 83.2519C260.785 83.2519 268.429 78.9267 268.429 67.8399V38.8352H259.973V43.4017H259.978ZM251.954 64.5821C246.125 64.5821 243.183 59.7557 243.183 54.4328C243.183 49.1098 246.19 44.3484 251.954 44.3484C257.718 44.3484 260.725 49.7967 260.725 54.4328C260.725 59.0689 258.344 64.5821 251.954 64.5821Z" fill="#F2FAFF"/>
-<path d="M220.253 37.9581C215.241 37.9581 212.364 40.6497 210.545 44.4087V38.8352H202.651V71.223H210.73V56.6882C210.73 48.7942 213.677 44.9749 217.998 44.9749C222.634 44.9749 223.887 48.6736 223.887 53.37V71.223H231.906V51.4256C231.906 43.4713 228.648 37.9581 220.253 37.9581Z" fill="#F2FAFF"/>
-<path d="M197.574 51.6161C197.574 43.6572 193.815 37.833 183.666 37.833C175.145 37.833 170.699 43.4158 169.757 48.7388H177.336C178.152 45.7316 180.533 43.8521 183.726 43.8521C187.42 43.8521 189.675 45.351 189.675 47.922C189.675 50.6786 187.671 51.3051 183.475 51.9316C178.965 52.6185 168.314 53.4956 168.314 62.3919C168.314 67.8402 172.574 72.1004 179.651 72.1004C185.791 72.1004 188.487 68.8426 189.801 66.2762H189.866V67.9051C189.866 68.9679 189.931 70.1605 190.116 71.2233H198.196C197.755 69.1535 197.569 65.8354 197.569 63.3293V51.6161H197.574ZM189.805 56.1919C189.805 63.7099 185.986 66.1509 181.851 66.1509C178.217 66.1509 176.338 64.4571 176.338 62.016C176.338 59.575 178.282 58.257 182.603 57.3799C187.364 56.4425 189.054 55.0038 189.805 53.4352V56.1919Z" fill="#F2FAFF"/>
-<path d="M136.673 26.4908H144.753V56.433C144.753 59.533 142.242 62.0437 139.142 62.0437H136.673V26.4908Z" fill="#F2FAFF"/>
-<path d="M165.59 64.0809H136.673V71.2231H165.59V64.0809Z" fill="#F2FAFF"/>
-</g>
-<path d="M465.434 28.4112C479.354 28.4112 487.274 36.5112 487.274 49.0512C487.274 61.5312 479.354 71.2512 465.854 71.2512H452.774V28.4112H465.434ZM457.814 66.9912H466.034C474.794 66.9912 482.234 60.9312 482.234 49.0512C482.234 37.7112 474.794 32.6712 465.734 32.6712H457.814V66.9912ZM520.479 62.0112C518.679 68.3712 513.639 71.8512 506.739 71.8512C497.439 71.8512 491.619 65.0712 491.619 55.6512C491.619 46.4712 497.679 39.6312 506.559 39.6312C517.119 39.6312 520.599 47.8512 520.839 55.8912C520.839 56.2512 520.899 56.6712 520.899 57.0912H496.239C496.659 63.8112 500.739 67.8912 506.619 67.8912C510.999 67.8912 514.539 65.9712 515.739 62.0112H520.479ZM496.299 53.2512H516.039C515.499 47.3112 512.439 43.5312 506.559 43.5312C500.739 43.5312 496.959 47.4912 496.299 53.2512ZM542.597 39.6312C551.537 39.6312 556.697 46.3512 556.697 55.7112C556.697 65.0112 551.537 71.8512 542.597 71.8512C536.897 71.8512 533.117 68.3712 531.797 65.0112H531.737V83.2512H526.937V40.2312H531.737V46.5312H531.797C533.117 43.2312 536.897 39.6312 542.597 39.6312ZM531.557 55.7112C531.557 61.8312 534.677 67.7712 541.757 67.7712C548.477 67.7712 551.897 62.6112 551.897 55.7112C551.897 48.7512 548.297 43.6512 541.757 43.6512C534.857 43.6512 531.557 49.2912 531.557 55.7112ZM562.562 28.4112H567.362V71.2512H562.562V28.4112ZM588.6 71.8512C579.18 71.8512 573.24 64.7112 573.24 55.7712C573.24 46.8312 579.18 39.6312 588.6 39.6312C598.08 39.6312 604.02 46.8312 604.02 55.7712C604.02 64.7112 598.08 71.8512 588.6 71.8512ZM578.04 55.7712C578.04 62.4312 582.3 67.8312 588.6 67.8312C594.96 67.8312 599.22 62.4312 599.22 55.7712C599.22 49.0512 594.96 43.6512 588.6 43.6512C582.3 43.6512 578.04 49.0512 578.04 55.7712ZM610.943 40.2312C614.363 49.0512 617.723 57.8112 621.143 66.5712H621.203L630.383 40.2312H635.483C630.803 52.5912 626.123 64.9512 621.503 77.3112C620.123 80.9712 618.023 83.2512 613.823 83.2512H610.043V79.2312H613.223C616.343 79.2312 616.883 77.1912 617.723 74.9112L618.803 72.1512L605.843 40.2312H610.943ZM639.906 71.2512V40.2312H644.706V45.6312C645.486 42.6912 648.606 39.5712 652.746 39.5712C657.666 39.5712 660.606 41.4912 662.106 45.7512C664.146 41.4912 666.966 39.5712 671.106 39.5712C678.186 39.5712 681.486 44.3712 681.486 51.3312V71.2512H676.686V51.7512C676.686 45.8712 674.286 43.5912 670.566 43.5912C666.426 43.5912 663.066 47.4312 663.066 55.4712V71.2512H658.266V51.7512C658.266 45.8712 656.406 43.5912 652.206 43.5912C646.626 43.5912 644.706 49.2312 644.706 55.7712V71.2512H639.906ZM716.006 62.0112C714.206 68.3712 709.166 71.8512 702.266 71.8512C692.966 71.8512 687.146 65.0712 687.146 55.6512C687.146 46.4712 693.206 39.6312 702.086 39.6312C712.646 39.6312 716.126 47.8512 716.366 55.8912C716.366 56.2512 716.426 56.6712 716.426 57.0912H691.766C692.186 63.8112 696.266 67.8912 702.146 67.8912C706.526 67.8912 710.066 65.9712 711.266 62.0112H716.006ZM691.826 53.2512H711.566C711.026 47.3112 707.966 43.5312 702.086 43.5312C696.266 43.5312 692.486 47.4912 691.826 53.2512ZM722.464 71.2512V40.2312H727.264V46.0512C728.884 42.5712 731.764 39.6312 736.684 39.6312C744.364 39.6312 747.904 44.3712 747.904 51.3312V71.2512H743.104V51.7512C743.104 45.8712 740.464 43.6512 736.144 43.6512C731.524 43.6512 727.264 47.2512 727.264 55.7712V71.2512H722.464ZM761.393 63.2112C761.393 65.8512 762.833 67.2912 765.233 67.2912H767.453V71.2512H764.873C759.173 71.2512 756.713 68.0112 756.713 63.4512V44.1912H752.033V40.2312H756.713V32.9112L761.393 30.7512V40.2312H767.333V44.1912H761.393V63.2112Z" fill="#F2FAFF"/>
-<defs>
-<clipPath id="clip0_2381_5002">
-<rect width="289.259" height="57.8239" fill="white" transform="translate(136.673 25.428)"/>
-</clipPath>
-</defs>
-</svg>
diff --git a/docs/assets/readme/logos/langsmith-deployment-light.svg b/docs/assets/readme/logos/langsmith-deployment-symbol.svg
similarity index 99%
rename from docs/assets/readme/logos/langsmith-deployment-light.svg
rename to docs/assets/readme/logos/langsmith-deployment-symbol.svg
index dc571b8..c6694fb 100644
--- a/docs/assets/readme/logos/langsmith-deployment-light.svg
+++ b/docs/assets/readme/logos/langsmith-deployment-symbol.svg
@@ -1,4 +1,4 @@
-<svg width="772" height="100" viewBox="0 0 772 100" fill="none" xmlns="http://www.w3.org/2000/svg">
+<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="100.006" height="100.006" rx="20.0013" fill="#030710"/>
<path d="M42.1051 30.587C35.3015 30.6619 28.5204 33.2919 23.3316 38.4808C19.0494 42.7629 16.5056 48.1316 15.7039 53.6988L32.9 49.7426L33.2747 47.8244C34.3799 42.1186 37.6206 35.9407 42.1088 30.5833L42.1051 30.587Z" fill="#7FC8FF"/>
<path d="M69.3674 57.8913C64.0174 62.4245 57.9257 65.7364 52.4409 66.9128L50.5789 67.3136L47.8853 83.9666C52.8643 82.9363 57.6073 80.4936 61.4699 76.631C66.6512 71.4497 69.2812 64.6836 69.3636 57.8876L69.3674 57.8913Z" fill="#7FC8FF"/>
diff --git a/docs/cli.md b/docs/cli.md
index 0d6dcdb..ff18e4a 100644
--- a/docs/cli.md
+++ b/docs/cli.md
@@ -13,8 +13,6 @@
| `sandbox build\|test\|publish\|use SNAPSHOT` | build the local image, run its probe, publish the LangSmith snapshot for MDA, point local runs at a snapshot |
| `skills verify\|sync-vendor` | vendored HyperFrames, LangSmith and Deep Agents skills against `skills-lock.json`; re-vendor from upstream (`--upstream` for one, `--check-only` to compare pins) |
| `manifest` | what the workspace stager puts in each sandbox |
-| `deploy [--build-only] [--yes] [--name NAME]` | preflight, stage what ships, `mda deploy` after a yes; `--name` makes a separate deployment ([MDA](deploy-mda.md)) |
-| `dev` | the staged project in `mda dev` (LangSmith Studio) |
| `serve` | the self-hosted HTTP API ([self-hosting](self-hosting.md)) |
| `slack` | the self-hosted Slack app |
| `paper-bridge` | serve this machine's Paper Desktop to a remote agent behind a bearer token ([Paper](partners/paper.md)) |
diff --git a/docs/customization.md b/docs/customization.md
index 165cb77..c676f62 100644
--- a/docs/customization.md
+++ b/docs/customization.md
@@ -25,7 +25,9 @@ reach the sandbox as deployment files (MDA) or a read-only mount (self-hosted),
approval rules, how it talks. Keep it short; the budget test fails past about 8k tokens.
- `skills/<name>/SKILL.md` are workflows the agent opens when a job needs them. Add one for a
format your team makes often (a newsletter header, a conference kit): a one-line "when to use"
- description, steps, sizes, the gates to run, and links to `references/` for depth.
+ description, steps, sizes, the gates to run, and links to `references/` for depth. Keep the
+ folder to text: MDA syncs it to Context Hub, which takes only UTF-8, so a skill's fonts or
+ images go in `skill-binaries/<name>/` and reach the sandbox beside the skill.
- Rules come with evidence or are phrased as defaults; brand facts belong in the brand pack, not
in skills.
diff --git a/docs/deploy-mda.md b/docs/deploy-mda.md
index c8bb7db..6f5dfda 100644
--- a/docs/deploy-mda.md
+++ b/docs/deploy-mda.md
@@ -1,14 +1,24 @@
# Deploy with Managed Deep Agents
-Managed Deep Agents (MDA) runs the agent, its sandbox computers, its Slack app and its schedules in
-your LangSmith workspace. One command deploys it.
+Managed Deep Agents (MDA) runs the agent, a sandbox computer for every thread, its Slack app and
+its schedules in your LangSmith workspace, with tracing built in. This repository is an MDA project,
+so `mda deploy` deploys it as it is:
+
+```bash
+git clone https://github.com/langchain-ai/design-agent.git && cd design-agent
+uv run design-agent config set LANGSMITH_API_KEY=lsv2_… ANTHROPIC_API_KEY=sk-ant-…
+uv run design-agent sandbox publish
+uv run mda deploy
+```
+
+`uv run` uses the `mda` CLI pinned in `uv.lock`, so the CLI matches the SDK the agent is built on.
## What you need
- A LangSmith organization with MDA access and an API key with deployment permission
(`LANGSMITH_API_KEY`; region via `LANGSMITH_ENDPOINT`). [Hosting is paid](https://www.langchain.com/pricing).
- A model key for your configured model ([Models](models.md)).
-- Docker, to build and test the sandbox recipe locally first.
+- [uv](https://docs.astral.sh/uv/). Docker only if you want to test the sandbox recipe locally first.
## 1. Publish the computer once
@@ -18,50 +28,52 @@ the 1 GiB filesystem MDA gives a sandbox baked from a Docker image, so publish i
room for renders:
```bash
-uv run design-agent sandbox build && uv run design-agent sandbox test # local proof
uv run design-agent sandbox publish --fs-gib 16
```
`publish` builds the snapshot in your workspace (sandbox time is billed), runs the recipe's probe
in it, and rewrites `sandbox/__init__.py` to declare it. Publish again whenever the recipe changes;
-the snapshot name follows the recipe's hash. Sizes and egress for MDA sandboxes are the constants in
-`sandbox/__init__.py` (MDA reads that file statically). Egress is default-deny: the agent's host
-tools fetch and generate, the sandbox only renders.
+the snapshot name follows the recipe's hash. To prove the recipe locally first:
+`uv run design-agent sandbox build && uv run design-agent sandbox test`. Sizes and egress for MDA
+sandboxes are the constants in `sandbox/__init__.py` (MDA reads that file statically). Egress is
+default-deny: the agent's host tools fetch and generate, the sandbox only renders.
-## 2. Check what ships
-
-```bash
-uv run design-agent deploy --build-only
-```
+## 2. Keys
-`mda deploy` would archive the whole project directory, Git-ignored files included, and send every
-key in `.env` as a deployment secret. So `design-agent deploy` never deploys the working tree: it
-runs a preflight (brand pack, workspace manifest, vendored skills, the sandbox declaration, the
-model key, MCP declarations), stages only what the agent needs into `.mda/deploy-src/` with an `.env`
-holding only the keys the agent reads, and compiles that. It prints which secrets ship and which
-stay home (Slack tokens for self-hosting, `DATABASE_URL`, your LangSmith key). Inspect
-`.mda/deploy-src/` before going further.
-
-What ships: code, `instructions.md`, `skills/`, `workspace/tools/`, `config/`, the sample brand and
-your `workspace/brand/`, open fonts and your `private-fonts/` (licensed fonts reach the sandbox as
-deployment files, never through Git), the sandbox recipe and the MDA declarations
-(`agent.py`, `identity.py`, `channels/`, `schedules/`, `sandbox/`, `tools/mcp.py`). MDA syncs
-`skills/` to Context Hub, which takes only UTF-8 text, so the few binary skill files (a vendored
-preset's fonts) move to `skill-binaries/` and reach `/workspace/skills/` through the stager.
-
-To try a change without touching the deployment people use, deploy under another name:
-`uv run design-agent deploy --name design-agent-test`.
+`mda deploy` forwards every key in `.env` as a deployment secret, except LangSmith's own
+(`LANGSMITH_API_KEY` signs the deploy and stays home). It never reads keys from your shell for
+the deployment. So keep `.env` to what the deployed agent uses: the model key, and optionally
+`OPENAI_API_KEY` (images), `ELEVENLABS_API_KEY` (voice and music), `DESIGN_AGENT_*` and `PAPER_*`
+settings. Self-hosting keys (`SLACK_*`, `DATABASE_URL`, `DESIGN_AGENT_API_TOKENS`) don't belong in
+the `.env` you deploy from.
## 3. Deploy
```bash
-uv run design-agent deploy
+uv run mda deploy
```
-It asks before deploying, then runs `mda deploy` on the staged project. On the first deploy MDA
-provisions the Slack app; authorize it in your Slack workspace when prompted. Channels require
-`identity.py` (LangSmith API-key authentication by default; see MDA's identity docs for per-person
-identities).
+MDA compiles the project, syncs `instructions.md` and `skills/` to Context Hub, uploads the source,
+bakes the sandbox recipe on your snapshot and waits until the deployment is live. On the first
+deploy it provisions the Slack app; authorize it in your Slack workspace when prompted. Channels
+require `identity.py` (LangSmith API-key authentication by default; see MDA's identity docs for
+per-person identities).
+
+What ships is the project directory without `.env` and virtualenvs: code, `instructions.md`,
+`skills/` (Context Hub takes only UTF-8 text, so skills' binary files live in `skill-binaries/` and
+reach the sandbox through the workspace stager), your Git-ignored `workspace/brand/` and
+`private-fonts/` (licensed fonts reach the sandbox as deployment files, never through Git), the
+sandbox recipe and the MDA declarations. Git-ignored renders in `workspace/out/` ship too and count
+toward MDA's 200 MB archive limit, so clear old ones before deploying.
+
+To try a change without touching the deployment people use, deploy a separate copy:
+`uv run mda deploy --name design-agent-test`.
+
+**Before you deploy,** `uv run design-agent doctor` names what would make `mda deploy` fail or ship
+the wrong thing (`mda-deploy` and `mda-project`): the unpublished sandbox, a binary file under
+`skills/`, self-hosting keys in `.env`, a large `workspace/out/`. `uv run mda build` compiles what
+would ship into `.mda/build/` without deploying. Without a `LANGSMITH_API_KEY` in `.env`, `mda deploy`
+offers a browser sign-in; `sandbox publish` needs the key.
## 4. Verify
@@ -69,7 +81,7 @@ In Slack, mention the agent with a quick ask ("a square card announcing …"), t
storyboarded teaser. You should see live progress in the thread, the files attached at the end,
and, for the teaser, a check-in while it renders. `uv run mda logs` tails the deployment.
-Without Slack, call the deployment's Agent Server (the URL `deploy` prints) with your LangSmith key:
+Without Slack, call the deployment's Agent Server (the URL `mda deploy` prints) with your LangSmith key:
```python
from langgraph_sdk import get_client
@@ -86,6 +98,12 @@ await client.runs.wait(
Runs without a channel (the API, Studio) have no Slack to attach files to, so `upload_files`
attaches them to the run's trace in LangSmith; open them from the trace or Studio.
+Background work reports back only where MDA can schedule a wake-up on the thread: in Slack (the
+channel) or for a signed-in person. A thread started with an API key has neither, since MDA does not
+count an API key as a person, so helpers, render watchers and check-ins finish their work but the
+agent is never woken to deliver it. Use Slack for jobs that run in the background (films, parallel
+looks, long decks), or keep API requests to work that finishes in one turn.
+
## How it behaves on MDA
In Slack the agent streams its steps into one message per turn, ends replies with a short footer
@@ -106,7 +124,7 @@ follow-ups while a job runs ([surfaces](architecture/surfaces.md)).
- **MCP servers** come from `config/mcp.toml` through `tools/mcp.py`. A server that needs
credentials names an agent-owned workspace connection (`connection = "slug"`); header values are
never compiled into the deployment.
-- **Studio.** `uv run mda dev .mda/deploy-src` runs the staged project locally in LangSmith Studio.
+- **Studio.** `uv run mda dev` runs the project locally in LangSmith Studio.
## Upstream asks
diff --git a/docs/sources/official-links.md b/docs/sources/official-links.md
index d5d41a9..6345dfe 100644
--- a/docs/sources/official-links.md
+++ b/docs/sources/official-links.md
@@ -31,7 +31,7 @@ All MDA pages share the prefix `https://docs.langchain.com/langsmith/python/mana
`Client.list_runs` (<https://docs.smith.langchain.com/reference/python/client>)
- LangSmith sandboxes: <https://docs.langchain.com/langsmith/sandboxes> · regions:
<https://docs.langchain.com/langsmith/regions-faq> · pricing: <https://www.langchain.com/pricing>
-- PyPI: <https://pypi.org/project/managed-deepagents/> (0.9.3 stable on 2026-10-17; `0.10.0.devN`
+- PyPI: <https://pypi.org/project/managed-deepagents/> (0.9.4 stable on 2026-10-20; `0.10.0.devN`
builds are cut from feature branches, never pin them) · <https://pypi.org/project/deepagents/>
(0.7.28)
- SDK source is private to LangChain staff (`langchain-ai/managed-deepagents-sdk`; its
diff --git a/docs/spec.md b/docs/spec.md
index 87d17c1..202c6bf 100644
--- a/docs/spec.md
+++ b/docs/spec.md
@@ -53,7 +53,7 @@ taste encoded as skills. The internal reference deployment taught every rule in
2. Configure a model (`provider:model`), optional media keys (OpenAI images, ElevenLabs), and a brand
pack with the coding-agent onboarding skill or the optional setup console.
3. `uv run design-agent ask "Make a 1080x1350 LinkedIn card announcing our v2 launch"` locally.
-4. `uv run design-agent deploy` (MDA, recommended) or `docker compose up -d --build` (self-host).
+4. `uv run mda deploy` (MDA, recommended) or `docker compose up -d --build` (self-host).
5. `uv run design-agent doctor` diagnoses configuration without printing secrets.
### 3.2 Requester (marketer, PM, engineer, founder) in Slack
@@ -733,9 +733,9 @@ See [Paper](partners/paper.md). Summary:
### 14.3 CLI
`design-agent setup | doctor [--sandbox] | demo | ask "<request>" [--file …] | brand
-(validate|show|init) | fonts verify | sandbox (publish|use|test) | skills (verify|sync-vendor) | deploy
-| dev | serve | slack | config (show|set|generate) | test (model|sandbox|paper|slack|db|all)`, with
-`--json` where useful. `deploy` runs the preflight then `mda deploy .`; `dev` runs `mda dev .`.
+(validate|show|init) | fonts verify | sandbox (publish|use|test) | skills (verify|sync-vendor) | serve
+| slack | config (show|set|generate) | test (model|sandbox|paper|slack|db|all)`, with `--json` where
+useful. The project deploys and runs with MDA's own `mda deploy` and `mda dev`.
### 14.4 Studio
@@ -761,10 +761,9 @@ same capabilities and produces the same files. Presentation and timing may diffe
`identity.py`, `channels/slack.py`, `schedules/housekeeping.py`, `sandbox/__init__.py` +
`sandbox/setup.sh`, optional `memory.py`, optional `tools/mcp.py`, `skills/<name>/SKILL.md`,
`[tool.mda] python-version` in `pyproject.toml`. Do not author `langgraph.json`.
-- `uv run design-agent deploy`: preflight (`doctor`, brand pack, fonts, manifest, `.env` review —
- MDA forwards every non-reserved `.env` key as a deployment secret and archives ordinary project
- files even if Git-ignored), then `mda deploy .`, Slack authorization hand-off, wait for the revision,
- then a smoke message. The optional console's "Deploy agent" button runs the same action.
+- `uv run mda deploy` on the project as it is, after `doctor` (brand pack, fonts, manifest, `.env`
+ review — MDA forwards every non-reserved `.env` key as a deployment secret and archives ordinary
+ project files even if Git-ignored), then the Slack authorization hand-off and a smoke message.
- One-click from GitHub: MDA has a hidden `mda prepare` used by LangSmith's GitHub-sourced builds. If
LangSmith exposes a public "deploy this repository" flow by release, add a README button; otherwise
the command above is the one-click path. (Open question for the MDA team.)
diff --git a/docs/upstream.md b/docs/upstream.md
index f79b6d9..aacf50b 100644
--- a/docs/upstream.md
+++ b/docs/upstream.md
@@ -3,7 +3,7 @@
Seams this project works around today, each with what it does instead. Partner questions for
HyperFrames and Paper are in [docs/partners/](partners/).
-## Managed Deep Agents (0.9.3)
+## Managed Deep Agents (0.9.4)
| Ask | Why | Today |
| --- | --- | --- |
@@ -16,8 +16,9 @@ HyperFrames and Paper are in [docs/partners/](partners/).
| Route direct-message follow-ups to the thread already working | a new top-level DM is its own thread and runs in parallel | not handled |
| Expose a schedule run's Slack conversation and thread | after a restart, wake-up turns cannot find their Slack thread until a message run happens | progress reuses the thread's last known target |
| Dedupe Slack's duplicate deliveries at ingress; react when a message is queued | duplicate events and a silent queue | not handled on MDA (the self-hosted adapter dedupes) |
-| An ignore list for `mda deploy` | it archives the project directory, Git-ignored files included, and ships every `.env` key | `design-agent deploy` stages a minimal project with a filtered `.env` |
-| A larger filesystem for `docker_image` bakes | the computer is 1.3 GiB; `docker_image` bakes get 1 GiB | a published snapshot (`design-agent sandbox publish`) |
+| An ignore list for `mda deploy` | it archives Git-ignored files (except `.env` and virtualenvs), so renders in `workspace/out/` count toward the 200 MB limit | `doctor` warns past 150 MB; clear old renders |
+| Same-thread wake-ups for API callers: agent-owned schedules without a channel, or API keys counted as people | a thread started with an API key cannot be woken (`User schedules require an authenticated person`; agent-owned same-thread schedules need a channel), so background work over the API never reports back | Slack only ([deploy guide](deploy-mda.md#4-verify)) |
+| A larger filesystem for `docker_image` bakes (honor `fs_capacity_bytes`) | the computer is 1.3 GiB; `docker_image` bakes get a fixed 1 GiB, so a fresh clone can't go straight to `mda deploy` | a published snapshot (`design-agent sandbox publish`) once per workspace |
## LangChain (1.4.6)
diff --git a/install.sh b/install.sh
new file mode 100755
index 0000000..1f6b796
--- /dev/null
+++ b/install.sh
@@ -0,0 +1,48 @@
+#!/usr/bin/env bash
+# Install Design Agent: uv if it is missing, a clone of the repository, and its dependencies.
+#
+# curl -fsSL https://raw.githubusercontent.com/langchain-ai/design-agent/main/install.sh | bash
+#
+# It never asks for or writes a key. DESIGN_AGENT_DIR picks the folder (default ./design-agent);
+# DESIGN_AGENT_REPO picks what to clone (a fork, say).
+set -euo pipefail
+
+REPO="${DESIGN_AGENT_REPO:-https://github.com/langchain-ai/design-agent.git}"
+DIR="${DESIGN_AGENT_DIR:-design-agent}"
+
+say() { printf '\033[1m%s\033[0m\n' "$*"; }
+fail() { printf 'error: %s\n' "$*" >&2; exit 1; }
+
+command -v git >/dev/null 2>&1 || fail "git is required: install it, then run this again."
+
+if ! command -v uv >/dev/null 2>&1; then
+ say "Installing uv (https://docs.astral.sh/uv/)"
+ curl -LsSf https://astral.sh/uv/install.sh | sh
+ export PATH="$HOME/.local/bin:$PATH"
+ command -v uv >/dev/null 2>&1 || fail "uv installed, but it is not on PATH: open a new terminal and run this again."
+fi
+
+if [ -e "$DIR" ]; then
+ [ -f "$DIR/agent.py" ] && [ -d "$DIR/.git" ] || fail "$DIR already exists and is not a Design Agent checkout."
+ say "Updating $DIR"
+ git -C "$DIR" pull --ff-only
+else
+ say "Cloning $REPO into $DIR"
+ git clone --depth 1 "$REPO" "$DIR"
+fi
+
+say "Installing dependencies"
+(cd "$DIR" && uv sync)
+
+cat <<EOF
+
+Installed in $DIR. To put it in your team's Slack with Managed Deep Agents:
+
+ cd $DIR
+ uv run design-agent config set LANGSMITH_API_KEY=lsv2_... ANTHROPIC_API_KEY=sk-ant-...
+ uv run design-agent sandbox publish # once per workspace: the agent's computer
+ uv run mda deploy
+
+Or open $DIR in Claude Code, Codex or Cursor and say "Deploy it to our Slack."
+To try it locally first, with Docker and no keys: uv run design-agent sandbox build && uv run design-agent demo
+EOF
diff --git a/pyproject.toml b/pyproject.toml
index 7227ac9..ef37c95 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -18,7 +18,7 @@ classifiers = [
"Typing :: Typed",
]
dependencies = [
- "managed-deepagents>=0.9.3,<0.10",
+ "managed-deepagents>=0.9.4,<0.10",
"deepagents>=0.7.28,<0.8",
# `langchain.mcp.MCPAdapter` is the MCP client MDA itself uses; the extra brings FastMCP.
"langchain[mcp]>=1.4.6,<1.5",
diff --git a/sandbox/__init__.py b/sandbox/__init__.py
index 265d12d..8b7773d 100644
--- a/sandbox/__init__.py
+++ b/sandbox/__init__.py
@@ -3,16 +3,16 @@
MDA bakes `setup.sh` on top of the base declared here and clones the result for each thread.
MDA reads this declaration statically, so every value is a literal or a top-level constant; the
`DESIGN_AGENT_SANDBOX_*` settings size local and self-hosted sandboxes, and these constants size
-MDA's (`design-agent deploy` warns when they disagree).
+MDA's.
The computer unpacks to about 1.3 GiB, more than the 1 GiB filesystem MDA gives a `docker_image`
bake, so production deploys use a snapshot published from the same recipe with room for renders:
uv run design-agent sandbox publish --fs-gib 16
-`publish` rewrites BASE_IMAGE below into a snapshot declaration. `design-agent deploy` refuses to
-deploy while the base is still the Docker image. Egress is default-deny; EGRESS_ALLOW lists the
-hosts the sandbox may reach (none by default: host tools fetch, the sandbox does not).
+`publish` rewrites BASE_IMAGE below into a snapshot declaration; until then `mda deploy` runs out of
+disk baking the recipe, and `doctor` says so. Egress is default-deny; EGRESS_ALLOW lists the hosts
+the sandbox may reach (none by default: host tools fetch, the sandbox does not).
"""
from managed_deepagents import define_sandbox
diff --git a/skills/hyperframes-creative/frame-presets/code-editorial/fonts/EBGaramond-400.woff2 b/skill-binaries/hyperframes-creative/frame-presets/code-editorial/fonts/EBGaramond-400.woff2
similarity index 100%
rename from skills/hyperframes-creative/frame-presets/code-editorial/fonts/EBGaramond-400.woff2
rename to skill-binaries/hyperframes-creative/frame-presets/code-editorial/fonts/EBGaramond-400.woff2
diff --git a/skills/hyperframes-creative/frame-presets/code-editorial/fonts/EBGaramond-700.woff2 b/skill-binaries/hyperframes-creative/frame-presets/code-editorial/fonts/EBGaramond-700.woff2
similarity index 100%
rename from skills/hyperframes-creative/frame-presets/code-editorial/fonts/EBGaramond-700.woff2
rename to skill-binaries/hyperframes-creative/frame-presets/code-editorial/fonts/EBGaramond-700.woff2
diff --git a/skills/hyperframes-creative/frame-presets/code-editorial/fonts/Inter-400.woff2 b/skill-binaries/hyperframes-creative/frame-presets/code-editorial/fonts/Inter-400.woff2
similarity index 100%
rename from skills/hyperframes-creative/frame-presets/code-editorial/fonts/Inter-400.woff2
rename to skill-binaries/hyperframes-creative/frame-presets/code-editorial/fonts/Inter-400.woff2
diff --git a/skills/hyperframes-creative/frame-presets/code-editorial/fonts/Inter-700.woff2 b/skill-binaries/hyperframes-creative/frame-presets/code-editorial/fonts/Inter-700.woff2
similarity index 100%
rename from skills/hyperframes-creative/frame-presets/code-editorial/fonts/Inter-700.woff2
rename to skill-binaries/hyperframes-creative/frame-presets/code-editorial/fonts/Inter-700.woff2
diff --git a/skills/hyperframes-creative/frame-presets/code-editorial/fonts/JetBrainsMono-400.woff2 b/skill-binaries/hyperframes-creative/frame-presets/code-editorial/fonts/JetBrainsMono-400.woff2
similarity index 100%
rename from skills/hyperframes-creative/frame-presets/code-editorial/fonts/JetBrainsMono-400.woff2
rename to skill-binaries/hyperframes-creative/frame-presets/code-editorial/fonts/JetBrainsMono-400.woff2
diff --git a/skills/hyperframes-creative/frame-presets/code-editorial/fonts/JetBrainsMono-700.woff2 b/skill-binaries/hyperframes-creative/frame-presets/code-editorial/fonts/JetBrainsMono-700.woff2
similarity index 100%
rename from skills/hyperframes-creative/frame-presets/code-editorial/fonts/JetBrainsMono-700.woff2
rename to skill-binaries/hyperframes-creative/frame-presets/code-editorial/fonts/JetBrainsMono-700.woff2
diff --git a/skills-lock.json b/skills-lock.json
index cee589c..15301a0 100644
--- a/skills-lock.json
+++ b/skills-lock.json
@@ -457,6 +457,14 @@
"upstream": "hyperframes"
},
"hyperframes-creative": {
+ "binaries": {
+ "frame-presets/code-editorial/fonts/EBGaramond-400.woff2": "b63448e2680a0dbde70ebb2f3de78f6c515122835491f938e8a8595b46f29210",
+ "frame-presets/code-editorial/fonts/EBGaramond-700.woff2": "5d0f8a497a48fd2a3611d07acc844f65c9fbb35419eafa4e1295f5f0f95f86e4",
+ "frame-presets/code-editorial/fonts/Inter-400.woff2": "8909904ab6c872eb994093482a88a28eca2cd95912d7b6fecd72103b0dc07edc",
+ "frame-presets/code-editorial/fonts/Inter-700.woff2": "6f56409fd3d64bb85f7d070bce20749db2d66b6d63cec586cc22d1c761be2491",
+ "frame-presets/code-editorial/fonts/JetBrainsMono-400.woff2": "14425ba9c695763c1547f48a206b7aa60350a33ae23de09f0407877f3fcd89eb",
+ "frame-presets/code-editorial/fonts/JetBrainsMono-700.woff2": "d0d4e818808f2a0ba39b2b09d1989366f63494e295f003c7ef436697378507e8"
+ },
"excluded": {},
"files": {
"SKILL.md": "9da7b7ac84c8d884b54125887ecca1a645a38337013082b96af2fdc0259c945a",
@@ -486,12 +494,6 @@
"frame-presets/cobalt-grid/frame-showcase.html": "b135214cd2e310273a01e3f72b2828149f022803954a22a13cbf27aa1c2f518a",
"frame-presets/code-editorial/FRAME.md": "b1c123526634e31a3e36cff9856e3b4322f2f778d2c7f573aa35a9ee1e90deb7",
"frame-presets/code-editorial/caption-skin.html": "fe96654fb76433caf5b3c81e4b9c52c07c1d03b267411c12ed94f054ccb92028",
- "frame-presets/code-editorial/fonts/EBGaramond-400.woff2": "b63448e2680a0dbde70ebb2f3de78f6c515122835491f938e8a8595b46f29210",
- "frame-presets/code-editorial/fonts/EBGaramond-700.woff2": "5d0f8a497a48fd2a3611d07acc844f65c9fbb35419eafa4e1295f5f0f95f86e4",
- "frame-presets/code-editorial/fonts/Inter-400.woff2": "8909904ab6c872eb994093482a88a28eca2cd95912d7b6fecd72103b0dc07edc",
- "frame-presets/code-editorial/fonts/Inter-700.woff2": "6f56409fd3d64bb85f7d070bce20749db2d66b6d63cec586cc22d1c761be2491",
- "frame-presets/code-editorial/fonts/JetBrainsMono-400.woff2": "14425ba9c695763c1547f48a206b7aa60350a33ae23de09f0407877f3fcd89eb",
- "frame-presets/code-editorial/fonts/JetBrainsMono-700.woff2": "d0d4e818808f2a0ba39b2b09d1989366f63494e295f003c7ef436697378507e8",
"frame-presets/code-editorial/fonts/OFL-eb-garamond.txt": "f03c8eda63076cd52317dcd40aa04db8472d4cb592dfaafa385129dfdafc7f9c",
"frame-presets/code-editorial/fonts/OFL-inter.txt": "3b0a5fca3d17942cde889069889dedbbbd075e9b599968c82a95f4d944e9b345",
"frame-presets/code-editorial/fonts/OFL-jetbrains-mono.txt": "403581b69dac5cff4079205e01c6b467e56af449ecbd7247693ddb1baafa005b",
diff --git a/src/design_agent/cli.py b/src/design_agent/cli.py
index 4317e7c..f5169c7 100644
--- a/src/design_agent/cli.py
+++ b/src/design_agent/cli.py
@@ -217,37 +217,6 @@ def brand_show() -> None:
)
[email protected]("--yes", is_flag=True, help="Deploy without asking (CI).")
- "--build-only", is_flag=True, help="Stage and compile with `mda build`; deploy nothing."
-)
- "--allow-docker-base",
- is_flag=True,
- help="Deploy on the Docker image base (1 GiB filesystem: development only).",
-)
- "--name",
- default="design-agent",
- show_default=True,
- help="Deployment name; a second name is a separate deployment (for example a test one).",
-)
-def deploy(yes: bool, build_only: bool, allow_docker_base: bool, name: str) -> None:
- """Preflight, stage only what ships, then `mda deploy` to your LangSmith workspace."""
- from design_agent.deploy import deploy_main
-
- sys.exit(
- deploy_main(
- _root(),
- yes=yes,
- build_only=build_only,
- allow_docker_base=allow_docker_base,
- name=name,
- )
- )
-
-
@main.command()
def serve() -> None:
"""Run the self-hosted HTTP API (DESIGN_AGENT_API_HOST:DESIGN_AGENT_API_PORT)."""
@@ -518,7 +487,7 @@ def skills_sync_vendor(
except ValueError as error:
raise click.UsageError(str(error)) from None
folders = list(skills_lock.vendored_folders(lock))
- files = sum(len(entry["files"]) for _, entry in folders)
+ files = sum(len(skills_lock.locked_files(folder, entry)) for folder, entry in folders)
excluded = sum(len(entry["excluded"]) for _, entry in folders)
pins = ", ".join(f"{key} {up['commit'][:12]}" for key, up in lock["upstreams"].items())
click.echo(f"vendored {len(folders)} skills, {files} files ({excluded} excluded): {pins}")
@@ -650,19 +619,6 @@ def sandbox_use(snapshot: str) -> None:
click.echo(f"Local and self-hosted runs now clone {snapshot} (DESIGN_AGENT_SANDBOX=langsmith).")
-def dev() -> None:
- """Stage the project as `deploy` would and run it in `mda dev` (LangSmith Studio)."""
- import shutil
-
- from design_agent.deploy import stage
-
- root = _root()
- staged = stage(root)
- mda = shutil.which("mda") or str(root / ".venv" / "bin" / "mda")
- sys.exit(subprocess.call([mda, "dev", str(staged)])) # noqa: S603 - fixed argv
-
-
@main.group("test")
def connectivity() -> None:
"""Check connections with real calls: model, sandbox, Paper, Slack, database. Costs cents."""
diff --git a/src/design_agent/deploy.py b/src/design_agent/deploy.py
deleted file mode 100644
index 8714811..0000000
--- a/src/design_agent/deploy.py
+++ /dev/null
@@ -1,277 +0,0 @@
-"""`design-agent deploy`: preflight, a minimal staged project, then `mda deploy` on it.
-
-`mda deploy` archives the project directory as it is, Git-ignored files included, and forwards
-every key in its `.env` as a deployment secret. So the deploy never runs on the working tree: it
-stages exactly what the agent needs into `.mda/deploy-src/` (code, skills, the gates, the brand
-pack, licensed fonts, the sandbox recipe and declarations) with an `.env` holding only the keys the
-deployed agent uses, shows what will be shipped, and deploys that after a yes.
-
-Preflight problems stop the deploy; warnings are shown and the person decides.
-"""
-
-from __future__ import annotations
-
-import os
-import shutil
-import subprocess
-from collections.abc import Callable, Mapping
-from dataclasses import dataclass, field
-from pathlib import Path
-
-from dotenv import dotenv_values
-
-from design_agent.brand.schema import BrandPackError, load_brand_pack
-from design_agent.config import Settings
-from design_agent.runtime.sandbox.publish import declared_base
-from design_agent.skills_lock import verify
-from design_agent.tools.mcp import McpConfigError, declared_servers
-from design_agent.workspace.manifest import SKILL_BINARIES, build_manifest
-
-STAGE = Path(".mda") / "deploy-src"
-#: What a deployment needs, relative to the project root. Everything else stays home.
-SHIPPED = (
- "agent.py",
- "identity.py",
- "instructions.md",
- "pyproject.toml",
- "uv.lock",
- ".python-version",
- "LICENSE",
- "NOTICE.md",
- "README.md",
- "channels",
- "sandbox",
- "schedules",
- "tools",
- "skills",
- "src",
- "config",
- "examples/brands",
- "fonts",
- "licenses",
- "workspace/tools",
-)
-#: Operator-supplied, Git-ignored, and needed by the deployment when present.
-SHIPPED_IF_PRESENT = ("workspace/brand", "private-fonts", "channels/slack-icon.png")
-#: `.env` keys the deployed agent reads. Self-hosted transport keys never ship to MDA.
-ENV_PREFIXES = ("DESIGN_AGENT_", "PAPER_")
-ENV_KEYS = frozenset(
- {
- "ANTHROPIC_API_KEY",
- "OPENAI_API_KEY",
- "GOOGLE_API_KEY",
- "ELEVENLABS_API_KEY",
- "GROQ_API_KEY",
- "LANGSMITH_GATEWAY_API_KEY",
- "MDA_MAX_AGENT_SCHEDULES",
- }
-)
-#: What the `mda` command itself needs to reach LangSmith: passed in its environment, not shipped.
-DEPLOY_CREDENTIALS = ("LANGSMITH_API_KEY", "LANGSMITH_ENDPOINT", "LANGSMITH_WORKSPACE_ID")
-NEVER_SHIPPED = frozenset(
- {
- "SLACK_BOT_TOKEN",
- "SLACK_APP_TOKEN",
- "SLACK_SIGNING_SECRET",
- "DATABASE_URL",
- "DESIGN_AGENT_API_TOKENS",
- *DEPLOY_CREDENTIALS,
- }
-)
-IGNORED_NAMES = frozenset({"__pycache__", ".DS_Store", "node_modules", ".pytest_cache"})
-
-
-@dataclass
-class Preflight:
- problems: list[str] = field(default_factory=list)
- warnings: list[str] = field(default_factory=list)
- shipped_env: list[str] = field(default_factory=list)
- held_env: list[str] = field(default_factory=list)
-
- @property
- def ok(self) -> bool:
- return not self.problems
-
-
-def env_split(values: Mapping[str, str | None]) -> tuple[dict[str, str], list[str]]:
- """The `.env` entries a deployment ships, and the names it holds back. Blank entries are
- neither: they are unset, and shipping them would only list empty secrets."""
- shipped: dict[str, str] = {}
- held: list[str] = []
- for key, value in values.items():
- if value is not None and not value.strip():
- continue
- if value is None or key in NEVER_SHIPPED:
- held.append(key)
- elif key in ENV_KEYS or key.startswith(ENV_PREFIXES):
- shipped[key] = value
- else:
- held.append(key)
- return shipped, sorted(held)
-
-
-def env_values(root: Path) -> dict[str, str | None]:
- """The project's `.env` entries, or none when there is no `.env`."""
- env_file = root / ".env"
- return dict(dotenv_values(env_file)) if env_file.is_file() else {}
-
-
-def preflight(
- root: Path, settings: Settings, *, allow_docker_base: bool = False, require_keys: bool = True
-) -> Preflight:
- report = Preflight()
- try:
- pack = load_brand_pack(settings.resolved_brand_path(root), project_root=root)
- build_manifest(root, pack)
- except BrandPackError as error:
- report.problems.append(f"brand pack: {error}")
- except ValueError as error:
- report.problems.append(f"workspace manifest: {error}")
- lock = verify(root)
- if not lock.ok:
- report.problems.append(
- "vendored skills differ from skills-lock.json: run `design-agent skills verify`"
- )
- if declared_base(root) == "docker_image":
- message = (
- "sandbox/__init__.py still bakes on the Docker image, whose 1 GiB filesystem cannot hold "
- "the computer: run `design-agent sandbox publish` first"
- )
- (report.warnings if allow_docker_base else report.problems).append(message)
- for name in (
- "agent.py",
- "identity.py",
- "channels/slack.py",
- "sandbox/setup.sh",
- "instructions.md",
- ):
- if not (root / name).is_file():
- report.problems.append(f"{name} is missing")
- try:
- for server in declared_servers(root):
- if server.headers_env and server.connection is None:
- report.warnings.append(
- f"MCP server {server.name} has no workspace connection, so MDA leaves it out"
- )
- except McpConfigError as error:
- report.problems.append(f"config/mcp.toml: {error}")
- shipped, held = env_split(env_values(root))
- report.shipped_env, report.held_env = sorted(shipped), held
- spec = settings.lead_model()
- # A gateway model ships the gateway key: LANGSMITH_API_KEY is the deploy credential, held back.
- needed = (
- "LANGSMITH_GATEWAY_API_KEY"
- if spec.via_gateway
- else {
- "anthropic": "ANTHROPIC_API_KEY",
- "openai": "OPENAI_API_KEY",
- "google_genai": "GOOGLE_API_KEY",
- }.get(spec.provider)
- )
- if needed is not None and needed not in shipped:
- message = f"the lead model ({spec}) needs {needed} in .env"
- (report.problems if require_keys else report.warnings).append(message)
- if shutil.which("mda") is None and not (root / ".venv" / "bin" / "mda").exists():
- report.problems.append("the `mda` command is not installed: run `uv sync`")
- return report
-
-
-def _copy(source: Path, target: Path) -> None:
- if source.is_dir():
- shutil.copytree(
- source, target, ignore=lambda _d, names: [n for n in names if n in IGNORED_NAMES]
- )
- else:
- target.parent.mkdir(parents=True, exist_ok=True)
- shutil.copy2(source, target)
-
-
-def stage(root: Path, *, destination: Path | None = None) -> Path:
- """Copy what ships into a fresh staging directory and write its filtered `.env`.
-
- MDA syncs `skills/` to Context Hub, which takes only UTF-8 text, so a skill's binary files
- (fonts, images) move to `skill-binaries/<skill>/` and ship as deployment files; the workspace
- stager puts them back under `/workspace/skills/<skill>/`.
- """
- target = destination or root / STAGE
- shutil.rmtree(target, ignore_errors=True)
- target.mkdir(parents=True)
- for relative in (*SHIPPED, *SHIPPED_IF_PRESENT):
- source = root / relative
- if source.exists():
- _copy(source, target / relative)
- skills = target / "skills"
- for path in sorted(p for p in skills.rglob("*") if p.is_file()) if skills.is_dir() else []:
- try:
- path.read_bytes().decode("utf-8")
- except UnicodeDecodeError:
- moved = target / SKILL_BINARIES / path.relative_to(skills)
- moved.parent.mkdir(parents=True, exist_ok=True)
- path.rename(moved)
- env_file = root / ".env"
- if env_file.is_file():
- shipped, _ = env_split(dotenv_values(env_file))
- lines = [f"{key}={_quoted(value)}" for key, value in sorted(shipped.items())]
- (target / ".env").write_text("\n".join(lines) + "\n")
- (target / ".env").chmod(0o600)
- return target
-
-
-def _quoted(value: str) -> str:
- return (
- '"' + value.replace("\\", "\\\\").replace('"', '\\"') + '"'
- if any(c in value for c in " #\"'")
- else value
- )
-
-
-def deploy_main(
- root: Path,
- *,
- yes: bool = False,
- build_only: bool = False,
- allow_docker_base: bool = False,
- name: str = "design-agent",
- confirm: Callable[[str], bool] | None = None,
- run: Callable[[list[str], dict[str, str]], int] | None = None,
-) -> int:
- settings = Settings()
- # A build-only run inspects what would ship, so it needs neither keys nor a published snapshot.
- report = preflight(
- root,
- settings,
- allow_docker_base=allow_docker_base or build_only,
- require_keys=not build_only,
- )
- for warning in report.warnings:
- print(f"warning: {warning}")
- if not report.ok:
- for problem in report.problems:
- print(f"problem: {problem}")
- print("Nothing was deployed.")
- return 1
- staged = stage(root)
- print(f"Staged the deployment in {staged}.")
- print("Secrets it ships (.env keys): " + (", ".join(report.shipped_env) or "none"))
- if report.held_env:
- print("Kept out of the deployment: " + ", ".join(report.held_env))
- runner = run or (lambda argv, env: subprocess.run(argv, env=env, check=False).returncode) # noqa: S603 - fixed argv
- mda = shutil.which("mda") or str(root / ".venv" / "bin" / "mda")
- env_file = root / ".env"
- local = dotenv_values(env_file) if env_file.is_file() else {}
- env = {
- **os.environ,
- **{k: v for k in DEPLOY_CREDENTIALS if (v := os.environ.get(k) or local.get(k))},
- }
- if build_only:
- return runner([mda, "build", str(staged)], env)
- ask = confirm or (lambda question: input(f"{question} [y/N] ").strip().lower() in {"y", "yes"})
- if not yes and not ask(f"Deploy this to your LangSmith workspace now as {name!r}?"):
- print("Not deployed.")
- return 1
- if not env.get("LANGSMITH_API_KEY"):
- print(
- "problem: LANGSMITH_API_KEY is not set (in .env or the environment). Nothing was deployed."
- )
- return 1
- return runner([mda, "deploy", str(staged), "--name", name], env)
diff --git a/src/design_agent/doctor.py b/src/design_agent/doctor.py
index 3f21a61..5278b31 100644
--- a/src/design_agent/doctor.py
+++ b/src/design_agent/doctor.py
@@ -31,6 +31,18 @@ PROVIDER_KEYS = {
"openai": "openai_api_key",
"google_genai": "google_api_key",
}
+#: Keys a self-hosted install reads. `mda deploy` forwards every `.env` key but LangSmith's as a
+#: deployment secret, so these must not sit in the `.env` an MDA deploy runs from.
+SELF_HOSTED_KEYS = (
+ "SLACK_BOT_TOKEN",
+ "SLACK_APP_TOKEN",
+ "SLACK_SIGNING_SECRET",
+ "DATABASE_URL",
+ "POSTGRES_PASSWORD",
+ "DESIGN_AGENT_API_TOKENS",
+)
+#: MDA refuses a source archive over 200 MB; renders under `workspace/out/` are archived too.
+RENDERS_WARN_BYTES = 150 * 1024 * 1024
MDA_FILES = (
"agent.py",
"identity.py",
@@ -196,6 +208,45 @@ def _check_mda_project(root: Path) -> Check:
)
+def _check_mda_deploy(root: Path) -> Check:
+ """What would make a plain `mda deploy` of this checkout fail or ship the wrong thing."""
+ from dotenv import dotenv_values
+
+ from design_agent.skills_lock import is_text, verify
+
+ problems: list[str] = []
+ warnings: list[str] = []
+ binary = [
+ path.relative_to(root).as_posix()
+ for path in sorted((root / "skills").rglob("*"))
+ if path.is_file() and not is_text(path)
+ ]
+ if binary:
+ problems.append(
+ f"Context Hub takes only UTF-8 text: move {', '.join(binary[:3])} to skill-binaries/"
+ )
+ if not verify(root).ok:
+ warnings.append("vendored skills differ from skills-lock.json (`skills verify`)")
+ env_file = root / ".env"
+ env = dotenv_values(env_file) if env_file.is_file() else {}
+ forwarded = [key for key in SELF_HOSTED_KEYS if (env.get(key) or "").strip()]
+ if forwarded:
+ warnings.append(
+ f"`mda deploy` would ship {', '.join(forwarded)} as deployment secrets; "
+ "deploy from an .env without self-hosting keys"
+ )
+ out = root / "workspace" / "out"
+ size = sum(p.stat().st_size for p in out.rglob("*") if p.is_file()) if out.is_dir() else 0
+ if size > RENDERS_WARN_BYTES:
+ warnings.append(
+ f"workspace/out holds {size // (1024 * 1024)} MB of renders, which `mda deploy` "
+ "archives (200 MB limit): clear old ones"
+ )
+ status: Status = "fail" if problems else "warn" if warnings else "ok"
+ detail = "; ".join(problems + warnings) or "ready for `mda deploy`"
+ return Check("mda-deploy", status, detail)
+
+
def _check_paper(settings: Settings) -> Check:
from design_agent.tools.paper import PaperConfigError, paper_server
@@ -236,6 +287,7 @@ def run_checks(settings: Settings, root: Path) -> list[Check]:
_check_sandbox(settings),
_check_node(),
_check_mda_project(root),
+ _check_mda_deploy(root),
_check_mcp(root),
_check_paper(settings),
]
diff --git a/src/design_agent/runtime/sandbox/publish.py b/src/design_agent/runtime/sandbox/publish.py
index 0b37d2c..f447b05 100644
--- a/src/design_agent/runtime/sandbox/publish.py
+++ b/src/design_agent/runtime/sandbox/publish.py
@@ -12,7 +12,9 @@ and the computer unpacks to about 1.3 GiB, so production uses a snapshot with ro
which only re-runs the probe, because the recipe stamp matches).
Every step talks to LangSmith with the operator's key, costs sandbox time, and is run only on
-request. The temporary sandbox is deleted whether or not publishing succeeded.
+request. The temporary sandbox is deleted whether or not publishing succeeded. Snapshots are found
+by name, so publishing a recipe that is already published does nothing, and a run that stopped
+part-way picks up the base snapshot it started.
"""
from __future__ import annotations
@@ -27,6 +29,8 @@ from typing import Any
GIB = 1024**3
SETUP_PATH = "/tmp/design-agent-setup.sh"
+#: Building a snapshot from a Docker image takes minutes; the SDK's own default is 60 s.
+SNAPSHOT_TIMEOUT_SECONDS = 1800
PROBE = "/opt/design-agent/probe/probe.sh"
SETUP_TIMEOUT_SECONDS = 3600
DECLARATION = Path("sandbox") / "__init__.py"
@@ -69,12 +73,19 @@ def publish(
"""Build and capture the computer snapshot (module doc). `client` is a `SandboxClient`."""
sha = recipe_sha(project_root)
name = f"design-agent-computer-{sha[:12]}"
+ published = _named(client, name)
+ if published is not None and getattr(published, "status", "") == "ready":
+ say(f"{name} is already published in this workspace.")
+ return Published(name, str(published.id), sha, "")
setup = (project_root / "sandbox" / "setup.sh").read_bytes()
- say(f"Base snapshot from {base_image(project_root)} with {fs_gib} GiB of filesystem…")
- base = client.create_snapshot(
- f"design-agent-base-{sha[:12]}", base_image(project_root), fs_gib * GIB
- )
- base = client.wait_for_snapshot(base.id, timeout=1800)
+ base_name = f"design-agent-base-{sha[:12]}"
+ base = _named(client, base_name)
+ if base is None:
+ say(f"Base snapshot from {base_image(project_root)} with {fs_gib} GiB of filesystem…")
+ base = client.create_snapshot(
+ base_name, base_image(project_root), fs_gib * GIB, timeout=SNAPSHOT_TIMEOUT_SECONDS
+ )
+ base = client.wait_for_snapshot(base.id, timeout=SNAPSHOT_TIMEOUT_SECONDS)
if getattr(base, "status", "ready") != "ready":
raise PublishError("the base snapshot did not become ready")
builder = f"design-agent-publish-{sha[:12]}-{int(time.time())}"
@@ -98,9 +109,9 @@ def publish(
raise PublishError("the recipe's probe failed after setup")
say("Capturing the snapshot…")
snapshot = client.capture_snapshot(
- builder, name, fs_capacity_bytes=fs_gib * GIB, timeout=1800
+ builder, name, fs_capacity_bytes=fs_gib * GIB, timeout=SNAPSHOT_TIMEOUT_SECONDS
)
- snapshot = client.wait_for_snapshot(snapshot.id, timeout=1800)
+ snapshot = client.wait_for_snapshot(snapshot.id, timeout=SNAPSHOT_TIMEOUT_SECONDS)
if getattr(snapshot, "status", "ready") != "ready":
raise PublishError("the captured snapshot did not become ready")
finally:
@@ -111,6 +122,14 @@ def publish(
return Published(name, str(snapshot.id), sha, str(getattr(probe, "stdout", "")).strip()[-300:])
+def _named(client: Any, name: str) -> Any | None:
+ """The workspace's snapshot called exactly `name`, a ready one first (names can repeat), or
+ None."""
+ matches = [snap for snap in client.list_snapshots(name_contains=name) if snap.name == name]
+ ready = [snap for snap in matches if getattr(snap, "status", "") == "ready"]
+ return (ready or matches or [None])[0]
+
+
def declare_snapshot(project_root: Path, snapshot_name: str) -> None:
"""Point `sandbox/__init__.py` at the snapshot: a literal MDA reads statically."""
path = project_root / DECLARATION
diff --git a/src/design_agent/skills_lock.py b/src/design_agent/skills_lock.py
index 9f365d7..06ca6f8 100644
--- a/src/design_agent/skills_lock.py
+++ b/src/design_agent/skills_lock.py
@@ -4,7 +4,10 @@ Skills for the deployed agent keep their upstream names at `skills/<name>/` (MDA
one level deep); skills for coding agents sit at `.agents/skills/<name>/`. Both are byte-identical
to their upstream at its pinned commit. `skills-lock.json` records each upstream's repository,
commit and license, every vendored file's sha256 under `skills` (runtime) or `agent_skills`
-(coding agents), and files deliberately left out with the reason. CI fails if a vendored file
+(coding agents), and files deliberately left out with the reason. MDA syncs `skills/` to Context
+Hub, which takes only UTF-8 text, so a runtime skill's binary files (fonts, images) are vendored to
+`skill-binaries/<name>/` instead and listed under `binaries`; the workspace stager puts them back
+beside the skill in the sandbox, and a plain `mda deploy` works. CI fails if a vendored file
differs, an unlisted file appears, or an excluded file is present. Local routing and guidance live
in our own sibling skills and summaries, never as edits.
"""
@@ -22,6 +25,8 @@ from dataclasses import dataclass, replace
from pathlib import Path
from typing import Any
+from design_agent.workspace.manifest import SKILL_BINARIES
+
@dataclass(frozen=True)
class Upstream:
@@ -151,6 +156,26 @@ def vendored_folders(lock: dict[str, Any]) -> Iterator[tuple[str, dict[str, Any]
yield f"{base}/{name}", entry
+def locked_files(folder: str, entry: dict[str, Any]) -> dict[str, str]:
+ """Every file of one vendored skill, as repository-relative path to sha256."""
+ name = folder.rsplit("/", 1)[-1]
+ return {
+ **{f"{folder}/{relative}": digest for relative, digest in entry["files"].items()},
+ **{
+ f"{SKILL_BINARIES}/{name}/{relative}": digest
+ for relative, digest in entry.get("binaries", {}).items()
+ },
+ }
+
+
+def is_text(path: Path) -> bool:
+ try:
+ path.read_bytes().decode("utf-8")
+ except UnicodeDecodeError:
+ return False
+ return True
+
+
@dataclass(frozen=True)
class VerifyResult:
problems: tuple[str, ...]
@@ -171,24 +196,32 @@ def verify(root: Path) -> VerifyResult:
if not (root / upstream["license_file"]).is_file():
problems.append(f"missing upstream license {upstream['license_file']}")
for relative_folder, entry in vendored_folders(lock):
- folder = root / relative_folder
- if not folder.is_dir():
+ if not (root / relative_folder).is_dir():
problems.append(f"{relative_folder}: missing")
continue
commit = upstreams[entry["upstream"]]["commit"][:12]
- expected: dict[str, str] = entry["files"]
- present = {p.relative_to(folder).as_posix() for p in folder.rglob("*") if p.is_file()}
- for relative in sorted(present - expected.keys()):
- problems.append(f"{relative_folder}/{relative}: not in skills-lock.json")
- for relative, digest in sorted(expected.items()):
- path = folder / relative
- if not path.is_file():
- problems.append(f"{relative_folder}/{relative}: missing")
- elif sha256(path) != digest:
- problems.append(f"{relative_folder}/{relative}: differs from upstream {commit}")
+ expected = locked_files(relative_folder, entry)
+ name = relative_folder.rsplit("/", 1)[-1]
+ homes = [root / relative_folder]
+ if entry.get("binaries") or (root / SKILL_BINARIES / name).is_dir():
+ homes.append(root / SKILL_BINARIES / name)
+ present = {
+ p.relative_to(root).as_posix()
+ for home in homes
+ if home.is_dir()
+ for p in home.rglob("*")
+ if p.is_file()
+ }
+ for path in sorted(present - expected.keys()):
+ problems.append(f"{path}: not in skills-lock.json")
+ for path, digest in sorted(expected.items()):
+ if not (root / path).is_file():
+ problems.append(f"{path}: missing")
+ elif sha256(root / path) != digest:
+ problems.append(f"{path}: differs from upstream {commit}")
count += 1
for relative in entry.get("excluded", {}):
- if (folder / relative).exists():
+ if (root / relative_folder / relative).exists():
problems.append(f"{relative_folder}/{relative}: excluded file is present")
return VerifyResult(problems=tuple(problems), files=count)
@@ -209,21 +242,33 @@ def fetch_upstream(upstream: Upstream, destination: Path) -> Path:
return destination
-def _vendor(source: Path, target: Path, name: str) -> dict[str, dict[str, str]]:
- """Copy one upstream skill folder unmodified, minus excluded files; its lock entry."""
+def _vendor(
+ source: Path, target: Path, name: str, binaries: Path | None = None
+) -> dict[str, dict[str, str]]:
+ """Copy one upstream skill folder unmodified, minus excluded files; its lock entry. With
+ `binaries`, files that are not UTF-8 text go there instead of into the skill folder."""
shutil.rmtree(target, ignore_errors=True)
+ if binaries is not None:
+ shutil.rmtree(binaries, ignore_errors=True)
files: dict[str, str] = {}
+ moved: dict[str, str] = {}
excluded: dict[str, str] = {}
for path in sorted(p for p in source.rglob("*") if p.is_file()):
relative = path.relative_to(source).as_posix()
if reason := exclusion_reason(f"{name}/{relative}"):
excluded[relative] = reason
continue
- destination = target / relative
+ home, listed = (
+ (binaries, moved) if binaries is not None and not is_text(path) else (target, files)
+ )
+ destination = home / relative
destination.parent.mkdir(parents=True, exist_ok=True)
shutil.copyfile(path, destination)
- files[relative] = sha256(destination)
- return {"files": files, "excluded": excluded}
+ listed[relative] = sha256(destination)
+ entry = {"files": files, "excluded": excluded}
+ if moved:
+ entry["binaries"] = moved
+ return entry
def sync(
@@ -272,7 +317,8 @@ def sync(
raise RuntimeError(
f"{pin.repo} {pin.commit[:12]} has no {pin.source}/{name}"
)
- entry = _vendor(source, root / ROOTS[section] / name, name)
+ binaries = root / SKILL_BINARIES / name if section == "skills" else None
+ entry = _vendor(source, root / ROOTS[section] / name, name, binaries)
lock[section][name] = {"upstream": key, **entry}
(root / "skills-lock.json").write_text(json.dumps(lock, indent=2, sort_keys=True) + "\n")
return lock
diff --git a/src/design_agent/workspace/manifest.py b/src/design_agent/workspace/manifest.py
index 170ef86..4b41a0e 100644
--- a/src/design_agent/workspace/manifest.py
+++ b/src/design_agent/workspace/manifest.py
@@ -144,7 +144,7 @@ def build_manifest(project_root: Path, brand: BrandPack) -> Manifest:
for path in _files(root, skill):
rel = path.relative_to(skill).as_posix()
assets.append(_asset(path, WORKSPACE / "skills" / skill.name / rel))
- # A deployed project keeps skills' binary files here, out of Context Hub (`deploy.stage`).
+ # Skills' binary files live here, because Context Hub takes only UTF-8 text (skills_lock).
binaries = root / SKILL_BINARIES
if binaries.is_dir():
for path in _files(root, binaries):
diff --git a/tests/unit/test_deploy.py b/tests/unit/test_deploy.py
deleted file mode 100644
index 85f90d3..0000000
--- a/tests/unit/test_deploy.py
+++ /dev/null
@@ -1,147 +0,0 @@
-"""`design-agent deploy`: what ships, what stays home, and when it refuses."""
-
-from __future__ import annotations
-
-from pathlib import Path
-
-import pytest
-
-from design_agent import deploy
-from design_agent.config import Settings
-
-ROOT = Path(__file__).resolve().parents[2]
-
-
-def test_env_ships_agent_keys_and_holds_everything_else() -> None:
- shipped, held = deploy.env_split(
- {
- "ANTHROPIC_API_KEY": "a",
- "DESIGN_AGENT_MODEL": "anthropic:claude-opus-5-5",
- "PAPER_MODE": "bridged",
- "SLACK_BOT_TOKEN": "xoxb",
- "DATABASE_URL": "postgres://",
- "LANGSMITH_API_KEY": "ls",
- "MY_OTHER_PROJECT_KEY": "x",
- "EMPTY": None,
- "OPENAI_API_KEY": "",
- "DESIGN_AGENT_HELPER_MODEL": " ",
- }
- )
- assert set(shipped) == {"ANTHROPIC_API_KEY", "DESIGN_AGENT_MODEL", "PAPER_MODE"}, (
- "blanks are unset"
- )
- assert held == [
- "DATABASE_URL",
- "EMPTY",
- "LANGSMITH_API_KEY",
- "MY_OTHER_PROJECT_KEY",
- "SLACK_BOT_TOKEN",
- ]
-
-
-def test_staging_ships_only_what_the_deployment_needs(tmp_path: Path) -> None:
- staged = deploy.stage(ROOT, destination=tmp_path / "stage")
- for needed in (
- "agent.py",
- "identity.py",
- "instructions.md",
- "README.md",
- "sandbox/setup.sh",
- "schedules/housekeeping.py",
- "tools/mcp.py",
- "skills/stills/SKILL.md",
- "src/design_agent/assembly.py",
- "workspace/tools/brand-lint.mjs",
- "examples/brands/example-studio/tokens.json",
- "fonts/LICENSES.md",
- "config/vendored-skills.toml",
- ):
- assert (staged / needed).exists(), needed
- for left_out in (
- "tests",
- "docs",
- "workspace/out",
- "workspace/state",
- ".venv",
- ".github",
- ):
- assert not (staged / left_out).exists(), left_out
- assert not list(staged.rglob("__pycache__"))
-
-
-def test_staging_writes_a_filtered_env(tmp_path: Path) -> None:
- project = tmp_path / "project"
- project.mkdir()
- (project / "agent.py").write_text("agent = None\n")
- (project / ".env").write_text(
- 'ANTHROPIC_API_KEY=sk-test\nSLACK_BOT_TOKEN=xoxb-test\nDESIGN_AGENT_SLACK_NAME="Design Agent"\n'
- )
- staged = deploy.stage(project, destination=tmp_path / "stage")
- env = (staged / ".env").read_text()
- assert "ANTHROPIC_API_KEY=sk-test" in env and 'DESIGN_AGENT_SLACK_NAME="Design Agent"' in env
- assert "SLACK_BOT_TOKEN" not in env
- assert (staged / ".env").stat().st_mode & 0o077 == 0
-
-
-def test_preflight_refuses_the_docker_base_and_a_missing_model_key(
- monkeypatch: pytest.MonkeyPatch,
-) -> None:
- for key in ("ANTHROPIC_API_KEY", "DESIGN_AGENT_MODEL"):
- monkeypatch.delenv(key, raising=False)
- # An operator's checkout may already declare its published snapshot.
- monkeypatch.setattr(deploy, "declared_base", lambda _root: "docker_image")
- report = deploy.preflight(ROOT, Settings(_env_file=None)) # type: ignore[call-arg]
- assert any("sandbox publish" in p for p in report.problems)
- assert any("ANTHROPIC_API_KEY" in p for p in report.problems) or (ROOT / ".env").is_file()
- relaxed = deploy.preflight(
- ROOT, Settings(_env_file=None), allow_docker_base=True, require_keys=False
- ) # type: ignore[call-arg]
- assert relaxed.ok, relaxed.problems
-
-
-def test_deploy_asks_first_and_passes_langsmith_credentials_only_in_the_environment(
- tmp_path: Path, monkeypatch: pytest.MonkeyPatch
-) -> None:
- calls: list[tuple[list[str], dict[str, str]]] = []
- monkeypatch.setattr(deploy, "preflight", lambda *a, **k: deploy.Preflight())
- monkeypatch.setattr(deploy, "stage", lambda _root: tmp_path)
- monkeypatch.setenv("LANGSMITH_API_KEY", "ls-test")
-
- def run(argv: list[str], env: dict[str, str]) -> int:
- calls.append((argv, env))
- return 0
-
- assert deploy.deploy_main(ROOT, confirm=lambda _q: False, run=run) == 1 and calls == []
- assert deploy.deploy_main(ROOT, confirm=lambda _q: True, run=run) == 0
- argv, env = calls[-1]
- assert (
- argv[1:] == ["deploy", str(tmp_path), "--name", "design-agent"]
- and env["LANGSMITH_API_KEY"] == "ls-test"
- )
-
-
-def test_a_gateway_model_needs_the_gateway_key_shipped(
- tmp_path: Path, monkeypatch: pytest.MonkeyPatch
-) -> None:
- monkeypatch.setattr(deploy, "declared_base", lambda _root: "snapshot")
- settings = Settings(_env_file=None, model="langsmith:anthropic/claude-opus-5-5") # type: ignore[call-arg]
- monkeypatch.setattr(deploy, "env_values", lambda _root: {"ANTHROPIC_API_KEY": "sk"})
- report = deploy.preflight(ROOT, settings)
- assert any("needs LANGSMITH_GATEWAY_API_KEY" in p for p in report.problems)
- monkeypatch.setattr(deploy, "env_values", lambda _root: {"LANGSMITH_GATEWAY_API_KEY": "lsv2"})
- assert not any("needs" in p for p in deploy.preflight(ROOT, settings).problems)
-
-
-def test_staging_moves_binary_skill_files_out_of_context_hub(tmp_path: Path) -> None:
- from design_agent.brand.schema import load_brand_pack
- from design_agent.workspace.manifest import build_manifest
-
- staged = deploy.stage(ROOT, destination=tmp_path / "stage")
- for path in (p for p in (staged / "skills").rglob("*") if p.is_file()):
- path.read_bytes().decode("utf-8") # Context Hub takes only UTF-8 text
- moved = sorted((staged / "skill-binaries").rglob("*.woff2"))
- assert moved, "the vendored frame-preset fonts ship as deployment files"
- pack = load_brand_pack(ROOT / "examples/brands/example-studio", project_root=ROOT)
- staged_paths = {str(a.destination) for a in build_manifest(staged, pack).assets}
- rel = moved[0].relative_to(staged / "skill-binaries").as_posix()
- assert f"/workspace/skills/{rel}" in staged_paths, "and still reach the sandbox's skills"
diff --git a/tests/unit/test_doctor.py b/tests/unit/test_doctor.py
new file mode 100644
index 0000000..1f16c6e
--- /dev/null
+++ b/tests/unit/test_doctor.py
@@ -0,0 +1,43 @@
+"""`doctor`'s MDA deploy check: what would make a plain `mda deploy` fail or ship the wrong thing."""
+
+from __future__ import annotations
+
+import shutil
+from pathlib import Path
+
+from design_agent.doctor import _check_mda_deploy
+
+ROOT = Path(__file__).resolve().parents[2]
+
+
+def _project(tmp_path: Path) -> Path:
+ root = tmp_path / "project"
+ for name in ("skills", "skill-binaries", "licenses"):
+ shutil.copytree(ROOT / name, root / name, symlinks=True)
+ shutil.copytree(ROOT / ".agents", root / ".agents", symlinks=True)
+ shutil.copy(ROOT / "skills-lock.json", root / "skills-lock.json")
+ return root
+
+
+def test_this_checkout_is_ready_for_a_plain_mda_deploy(tmp_path: Path) -> None:
+ check = _check_mda_deploy(_project(tmp_path))
+ assert check.status == "ok", check.detail
+
+
+def test_a_binary_file_in_skills_fails_the_check(tmp_path: Path) -> None:
+ root = _project(tmp_path)
+ (root / "skills" / "stills" / "logo.png").write_bytes(b"\x89PNG\r\n\x1a\n\xff\xfe")
+ check = _check_mda_deploy(root)
+ assert check.status == "fail"
+ assert "skills/stills/logo.png" in check.detail and "skill-binaries/" in check.detail
+
+
+def test_self_hosting_keys_in_env_are_named_never_printed(tmp_path: Path) -> None:
+ root = _project(tmp_path)
+ (root / ".env").write_text(
+ "ANTHROPIC_API_KEY=sk-ant-secret\nSLACK_APP_TOKEN=xapp-secret\nDATABASE_URL=\n"
+ )
+ check = _check_mda_deploy(root)
+ assert check.status == "warn"
+ assert "SLACK_APP_TOKEN" in check.detail and "DATABASE_URL" not in check.detail
+ assert "secret" not in check.detail.replace("deployment secrets", "")
diff --git a/tests/unit/test_install_script.py b/tests/unit/test_install_script.py
new file mode 100644
index 0000000..1aa20fd
--- /dev/null
+++ b/tests/unit/test_install_script.py
@@ -0,0 +1,56 @@
+"""`install.sh`: clones the repository, installs its dependencies with uv, and never touches a key."""
+
+from __future__ import annotations
+
+import os
+import shutil
+import subprocess
+from pathlib import Path
+
+import pytest
+
+ROOT = Path(__file__).resolve().parents[2]
+SCRIPT = ROOT / "install.sh"
+
+
+def _run(tmp_path: Path) -> subprocess.CompletedProcess[str]:
+ bin_dir = tmp_path / "bin"
+ bin_dir.mkdir(exist_ok=True)
+ stub = bin_dir / "uv"
+ stub.write_text('#!/usr/bin/env bash\necho "$PWD $*" >> "$UV_LOG"\n')
+ stub.chmod(0o755)
+ env = {
+ "PATH": f"{bin_dir}:{os.environ['PATH']}",
+ "HOME": str(tmp_path),
+ "UV_LOG": str(tmp_path / "uv.log"),
+ "DESIGN_AGENT_REPO": f"file://{ROOT}",
+ "DESIGN_AGENT_DIR": str(tmp_path / "design-agent"),
+ }
+ return subprocess.run(
+ ["bash", str(SCRIPT)], env=env, capture_output=True, text=True, check=False, cwd=tmp_path
+ )
+
+
+def test_the_script_parses() -> None:
+ subprocess.run(["bash", "-n", str(SCRIPT)], check=True)
+
+
[email protected](shutil.which("git") is None, reason="needs git")
+def test_it_clones_syncs_and_points_at_mda_deploy(tmp_path: Path) -> None:
+ result = _run(tmp_path)
+ assert result.returncode == 0, result.stderr
+ target = tmp_path / "design-agent"
+ assert (target / "agent.py").is_file()
+ assert (tmp_path / "uv.log").read_text().split() == [str(target), "sync"]
+ assert "uv run mda deploy" in result.stdout
+ assert not (target / ".env").exists()
+ again = _run(tmp_path)
+ assert again.returncode == 0, again.stderr
+ assert "Updating" in again.stdout
+
+
+def test_it_refuses_a_folder_that_is_not_a_checkout(tmp_path: Path) -> None:
+ (tmp_path / "design-agent").mkdir()
+ result = _run(tmp_path)
+ assert result.returncode == 1
+ assert "not a Design Agent checkout" in result.stderr
diff --git a/tests/unit/test_public_hygiene.py b/tests/unit/test_public_hygiene.py
index ef5a91c..d619647 100644
--- a/tests/unit/test_public_hygiene.py
+++ b/tests/unit/test_public_hygiene.py
@@ -21,7 +21,7 @@ from pathlib import Path
import pytest
-from design_agent.skills_lock import vendored_folders
+from design_agent.skills_lock import locked_files, vendored_folders
ROOT = Path(__file__).resolve().parents[2]
RELEASE = os.environ.get("DESIGN_AGENT_RELEASE_CHECK") == "1"
@@ -137,9 +137,9 @@ def vendored_files() -> frozenset[str]:
if not lock_path.is_file():
return frozenset()
return frozenset(
- f"{folder}/{file}"
+ path
for folder, entry in vendored_folders(json.loads(lock_path.read_text()))
- for file in entry.get("files", {})
+ for path in locked_files(folder, entry)
)
diff --git a/tests/unit/test_sandbox_publish.py b/tests/unit/test_sandbox_publish.py
index e66b010..da2ab01 100644
--- a/tests/unit/test_sandbox_publish.py
+++ b/tests/unit/test_sandbox_publish.py
@@ -29,11 +29,16 @@ class FakeSandbox:
class FakeClient:
- def __init__(self, setup_exit: int = 0) -> None:
+ def __init__(self, setup_exit: int = 0, existing: tuple[Any, ...] = ()) -> None:
self.log: list[str] = []
self.setup_exit = setup_exit
+ self.existing = existing
- def create_snapshot(self, name: str, image: str, fs: int) -> Any:
+ def list_snapshots(self, *, name_contains: str) -> list[Any]:
+ return [snap for snap in self.existing if name_contains in snap.name]
+
+ def create_snapshot(self, name: str, image: str, fs: int, *, timeout: int) -> Any:
+ assert timeout >= 600, "building from a Docker image takes minutes"
self.log.append(f"base {name} {image.split('@')[0]} {fs // publish.GIB}")
return SimpleNamespace(id="snap-base")
@@ -96,3 +101,32 @@ def test_declaring_the_snapshot_rewrites_a_static_literal(project: Path) -> None
assert "docker_image=BASE_IMAGE" not in text and publish.declared_base(project) == "snapshot"
publish.declare_snapshot(project, "design-agent-computer-def")
assert (project / "sandbox" / "__init__.py").read_text().count("SNAPSHOT_NAME = ") == 1
+
+
+def test_a_published_recipe_is_not_published_again(project: Path) -> None:
+ sha = publish.recipe_sha(project)
+ done = SimpleNamespace(name=f"design-agent-computer-{sha[:12]}", id="snap-done", status="ready")
+ client = FakeClient(existing=(done,))
+ published = publish.publish(client, project, say=lambda _: None)
+ assert published.snapshot_id == "snap-done" and client.log == []
+
+
+def test_a_rerun_picks_up_the_base_snapshot_it_started(project: Path) -> None:
+ sha = publish.recipe_sha(project)
+ building = SimpleNamespace(
+ name=f"design-agent-base-{sha[:12]}", id="snap-old", status="building"
+ )
+ client = FakeClient(existing=(building,))
+ publish.publish(client, project, say=lambda _: None)
+ assert not any(line.startswith("base ") for line in client.log)
+ assert client.log[0].endswith("from snap-old")
+
+
+def test_a_ready_snapshot_wins_over_a_duplicate_still_building(project: Path) -> None:
+ sha = publish.recipe_sha(project)
+ name = f"design-agent-base-{sha[:12]}"
+ stuck = SimpleNamespace(name=name, id="snap-stuck", status="building")
+ ready = SimpleNamespace(name=name, id="snap-ready", status="ready")
+ client = FakeClient(existing=(stuck, ready))
+ publish.publish(client, project, say=lambda _: None)
+ assert client.log[0].endswith("from snap-ready")
diff --git a/tests/unit/test_skills_lock.py b/tests/unit/test_skills_lock.py
index 5dd7171..b2d2b20 100644
--- a/tests/unit/test_skills_lock.py
+++ b/tests/unit/test_skills_lock.py
@@ -9,7 +9,7 @@ from pathlib import Path
import pytest
-from design_agent.skills_lock import load_lock, vendored_folders, verify
+from design_agent.skills_lock import is_text, load_lock, locked_files, vendored_folders, verify
ROOT = Path(__file__).resolve().parents[2]
@@ -25,17 +25,17 @@ def test_git_tracks_every_locked_file() -> None:
if git is None or not (ROOT / ".git").exists():
pytest.skip("not a Git checkout")
listed = subprocess.run(
- [git, "-C", str(ROOT), "ls-files", "skills", ".agents/skills"],
+ [git, "-C", str(ROOT), "ls-files", "skills", "skill-binaries", ".agents/skills"],
capture_output=True,
text=True,
check=True,
)
tracked = set(listed.stdout.splitlines())
untracked = [
- f"{folder}/{relative}"
+ path
for folder, entry in vendored_folders(load_lock(ROOT))
- for relative in entry["files"]
- if f"{folder}/{relative}" not in tracked
+ for path in locked_files(folder, entry)
+ if path not in tracked
]
assert not untracked, f"git add -f these: {untracked}"
@@ -46,3 +46,26 @@ def test_lint_skips_exactly_the_vendored_skills() -> None:
]
vendored = {folder for folder, _ in vendored_folders(load_lock(ROOT))}
assert {path for path in excluded if path.startswith(("skills/", ".agents/"))} == vendored
+
+
+def test_runtime_skills_are_utf8_text() -> None:
+ """MDA syncs `skills/` to Context Hub, which refuses anything else, so a plain `mda deploy`
+ fails on one binary file. Binary skill files live in `skill-binaries/<skill>/`."""
+ binary = [
+ path.relative_to(ROOT).as_posix()
+ for path in sorted((ROOT / "skills").rglob("*"))
+ if path.is_file() and not is_text(path)
+ ]
+ assert not binary, f"move these to skill-binaries/: {binary}"
+
+
+def test_binary_skill_files_reach_the_sandbox_beside_their_skill() -> None:
+ from design_agent.brand.schema import load_brand_pack
+ from design_agent.workspace.manifest import build_manifest
+
+ fonts = sorted((ROOT / "skill-binaries").rglob("*.woff2"))
+ assert fonts, "the vendored frame-preset fonts live in skill-binaries/"
+ pack = load_brand_pack(ROOT / "examples/brands/example-studio", project_root=ROOT)
+ staged = {str(asset.destination) for asset in build_manifest(ROOT, pack).assets}
+ for font in fonts:
+ assert f"/workspace/skills/{font.relative_to(ROOT / 'skill-binaries').as_posix()}" in staged
diff --git a/uv.lock b/uv.lock
index d7e5651..93e94e1 100644
--- a/uv.lock
+++ b/uv.lock
@@ -996,7 +996,7 @@ requires-dist = [
{ name = "langgraph-checkpoint-postgres", marker = "extra == 'self-host'", specifier = ">=3.2,<4" },
{ name = "langgraph-checkpoint-sqlite", specifier = ">=3.1.2,<4" },
{ name = "langsmith", specifier = ">=0.14.11,<0.15" },
- { name = "managed-deepagents", specifier = ">=0.9.3,<0.10" },
+ { name = "managed-deepagents", specifier = ">=0.9.4,<0.10" },
{ name = "pillow", specifier = ">=12,<13" },
{ name = "psycopg", extras = ["binary", "pool"], marker = "extra == 'self-host'", specifier = ">=3.2,<4" },
{ name = "pydantic", specifier = ">=2.13,<3" },
@@ -2224,7 +2224,7 @@ wheels = [
[[package]]
name = "managed-deepagents"
-version = "0.9.3"
+version = "0.9.4"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "deepagents" },
@@ -2238,12 +2238,12 @@ dependencies = [
{ name = "typing-extensions" },
]
wheels = [
- { url = "https://files.pythonhosted.org/packages/e2/93/67da5ce808aa35164ec2fabfcd3e650b543e85f81ff3e65849dc1e11ccbd/managed_deepagents-0.9.3-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:bb9b6b1112d2cb3baadfc356581b1d65aa2cdb349c15eaf9a811fbea3bc62877", size = 2621609, upload-time = "2026-10-17T06:22:37.638Z" },
- { url = "https://files.pythonhosted.org/packages/cd/21/60042f821996e0839c2e9cd41a50ea314bcbdf01a37d5cf504c73db277cb/managed_deepagents-0.9.3-py3-none-macosx_11_0_arm64.whl", hash = "sha256:c53c9ec0649ae7251f8a6a3ac7e9f9d50b24e256d55802f5744fcbae081b7e58", size = 2413581, upload-time = "2026-10-17T06:22:39.424Z" },
- { url = "https://files.pythonhosted.org/packages/c1/7f/82726b43575a767cb4a9f315297dbec890a7b119169454a78a4c8880432d/managed_deepagents-0.9.3-py3-none-manylinux2014_aarch64.whl", hash = "sha256:e0f18194b66ab67f2d1fd0c7b71bf84037851e15672ee18c7df87b3bbd6cf10f", size = 2696557, upload-time = "2026-10-17T06:22:40.903Z" },
- { url = "https://files.pythonhosted.org/packages/da/56/5ba74b49c340d6bd363ee2d1577e2c3afd31d2c96f2280eb2cd53e55a694/managed_deepagents-0.9.3-py3-none-manylinux2014_x86_64.whl", hash = "sha256:6597665ea4db9e9f4d24bbd4c33f41b0896fcf5d39479be8b7758758b280e79a", size = 2950415, upload-time = "2026-10-17T06:22:42.438Z" },
- { url = "https://files.pythonhosted.org/packages/c7/4a/d6104f5780437781b7efd43ae2c17dbf61e19d5b67d675d04b0065eca3db/managed_deepagents-0.9.3-py3-none-win_amd64.whl", hash = "sha256:48aa2a709a07445669fab09c1ae853e91c7dba7c638d1dc35d1d99fcba5f143c", size = 2398194, upload-time = "2026-10-17T06:22:44.039Z" },
- { url = "https://files.pythonhosted.org/packages/e9/0a/5383685163fa24a9ac1ea516e38bb2075df1d81d411014a66c97a258f872/managed_deepagents-0.9.3-py3-none-win_arm64.whl", hash = "sha256:6f5878fa64ae8b087599214bf7d0bbcb5dcac5cd79516b6dae0687196d50bed5", size = 2282086, upload-time = "2026-10-17T06:22:45.525Z" },
+ { url = "https://files.pythonhosted.org/packages/18/ee/b1921c699ba76aab27a5e862de41472205a7c75cdc467450a2953c4fab3b/managed_deepagents-0.9.4-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:640eb5d9823c1f2b046c0a8a7f6ebb6312345f6db14be3711f07098eb9e495e2", size = 2721066, upload-time = "2026-10-20T22:46:10.774Z" },
+ { url = "https://files.pythonhosted.org/packages/44/86/41f37ad4987a329b9bb14390e9cd24c483f7d47d5dec35f245991d0f386d/managed_deepagents-0.9.4-py3-none-macosx_11_0_arm64.whl", hash = "sha256:8fbc2d28ee2ccc7a8670f9b08b63f036cd0b750a374cb85d2daab19866cf645f", size = 2506431, upload-time = "2026-10-20T22:46:13.85Z" },
+ { url = "https://files.pythonhosted.org/packages/f1/4a/c79378a92f444fff74e154d99a957f3193659175ead837288045c67801b7/managed_deepagents-0.9.4-py3-none-manylinux2014_aarch64.whl", hash = "sha256:bc25a3133d5aafe525d6138d8d895abef595cfa6a2e928a066ca92a931bd24ae", size = 2797582, upload-time = "2026-10-20T22:46:15.667Z" },
+ { url = "https://files.pythonhosted.org/packages/7c/7e/555db4e461275143266ddc7696f4374fe4fb4ce30fe4f59fb226a5fc4bd2/managed_deepagents-0.9.4-py3-none-manylinux2014_x86_64.whl", hash = "sha256:8fea9a9d31c76f762f420e602c1c2663139fab8444334726c49eb63c7954d43d", size = 3062758, upload-time = "2026-10-20T22:46:17.624Z" },
+ { url = "https://files.pythonhosted.org/packages/91/d1/6e6b19cc4a179f00069de6deda3472fe6e659ad3dbff612afad1c4ea0a1f/managed_deepagents-0.9.4-py3-none-win_amd64.whl", hash = "sha256:74316c7b01b47b760dff5e9747a21560a6a84f8faf4541e4be6241d601ff6278", size = 2494384, upload-time = "2026-10-20T22:46:19.438Z" },
+ { url = "https://files.pythonhosted.org/packages/d3/26/c4aa8f8786035084ffade9f7669461d6ddec2720b8809f1171b632a7e83b/managed_deepagents-0.9.4-py3-none-win_arm64.whl", hash = "sha256:8aac4a0fbf1b07484d692d3b0e256831ca085ab68c1ed2c6a86294024a49e354", size = 2374103, upload-time = "2026-10-20T22:46:21.629Z" },
]
[[package]]