# langchain-ai/design-agent — AlpLab Radar Static Code Audit

- Ring: `trial`
- Category: `agents`
- Overall score: `3.6/5`
- Implementation check: `verified`
- Maturity: `early`
- Audited commit: `20c44326aa18` (read-only; nothing from the repository was executed)
- Reviewed at: 2026-12-02T10:57:24Z
- Repository: https://github.com/langchain-ai/design-agent
- Radar entry: https://radar.alplab.co/#repo/langchain-ai/design-agent
- License: `Apache-2.0`
- CI workflows: `.github/workflows`
- Tags: `design-agent`, `deep-agents`, `slack`, `sandbox`, `content-creation`, `langsmith`

## Summary

A Python Deep Agents application that assembles a branded design workflow with sandboxed rendering, Slack/MDA deployment, self-hosted API, memory, helpers, and learning tools.

## Implementation Check

README.md's MDA, isolated sandbox, asynchronous helper, memory, and learning-loop claims are implemented by agent.py `agent`, runtime/sandbox/docker.py, memory.py, and middleware/learning_tools.py.

## When to Use

Pilot it for teams that can operate LangSmith Managed Deep Agents or a dedicated self-hosted Docker host and need controlled, branded asset workflows. Avoid self-hosting on a shared host because it mounts the Docker socket.

## Sub-scores

| Dimension | Score |
|---|---|
| quality | 4.0/5 |
| usability | 3.5/5 |
| reliability | 3.0/5 |
| security | 3.5/5 |
| integration | 4.0/5 |

## Code Evidence

- agent.py `agent` constructs an MDA definition with configured tools, middleware, memory, subagents, and an asynchronous worker.
- src/design_agent/assembly.py `build_agent_components` composes media, project, fetch, trace, MCP, delivery, helper, and learning components.
- src/design_agent/runtime/sandbox/docker.py `DockerSandboxRunner._ensure_running` launches per-thread containers with network disabled, dropped capabilities, limits, and unprivileged agent execution.
- src/design_agent/surfaces/api/app.py `_caller` and `_owned` enforce bearer authentication and per-caller thread ownership.
- src/design_agent/middleware/learning_tools.py `LearningToolsMiddleware` saves, reads, rates, and asynchronously derives skill-scoped observations.
- .github/workflows/ci.yml runs locked installs, linting, typing, offline and render tests, sandbox builds, MDA builds, and a checksum-verified Gitleaks download.

## Issues Found

None recorded.

## Key Risks

- Requires Python 3.12+, model credentials, and Managed Deep Agents/LangSmith for the advertised Slack deployment path.
- Self-hosted operation requires Docker and mounts `/var/run/docker.sock`, which is root-equivalent on the host.
- README.md's primary installer is a `curl | bash` command, though it also documents cloning and `uv sync`.
- Template telemetry is enabled by default in .env.example through `DESIGN_AGENT_TEMPLATE_TELEMETRY=1`.

## Reviewed Files

- `README.md`
- `pyproject.toml`
- `agent.py`
- `memory.py`
- `identity.py`
- `instructions.md`
- `sandbox/setup.sh`
- `deploy/self-host/compose.yaml`
- `src/design_agent/assembly.py`
- `src/design_agent/surfaces/api/app.py`
- `src/design_agent/runtime/local.py`
- `src/design_agent/runtime/sandbox/docker.py`
- `src/design_agent/middleware/learning_tools.py`
