Homebrew tap for dcode (Deep Agents Code) — the terminal-based AI coding agent built on LangChain's Deep Agents SDK, published to PyPI as deepagents-code.
brew tap pokryfka/dcode
brew install dcodedcode --helpdcode ships as the PyPI package deepagents-code, with a large langchain/langgraph dependency tree (132 packages). Formula/dcode.rb pins every transitive dependency as a resource, installed into an isolated venv under the Cellar via Homebrew's Language::Python::Virtualenv — nothing is installed globally and no other package manager (e.g. uv) is involved.
Every resource is a prebuilt wheel, not a source tarball: pure-Python packages use a single platform-independent wheel, and packages with native extensions (Rust or C) use per-platform wheels (on_macos/on_linux × on_arm/on_intel), matching whatever pip/uv would normally select. This is why the only declared dependency is [email protected] — no rust, no C compiler, no image libraries — install is just unpacking wheels, no compilation. The single exception is forbiddenfruit, which has no published wheel at all; it's pure Python (its C extension is test-only and opt-in), so it still builds in a fraction of a second with the platform's stock compiler and no extra depends_on.
Two packages needed manual attention because upstream's own wheel matrix has gaps:
cryptographyis pinned to48.0.1rather than the latest release, because49.0.0dropped macOS Intel wheels;48.0.1is the newest version with auniversal2wheel covering both Mac architectures, and it still satisfies everycryptography>=42.0.0-style constraint in the closure.sqlite-vecandwasmtimeship no pure-Python wheel, so each has explicit per-platform (on_macos/on_linux×on_arm/on_intel) wheel resources.
- Update the main
url/sha256inFormula/dcode.rbto the newdeepagents-coderelease's wheel (https://pypi.org/pypi/deepagents-code/<version>/json). - Recompute the dependency closure (
pip install deepagents-code==<version>into a fresh Python 3.12 venv, thenpip freeze) and regenerate theresourceblocks for any added, removed, or bumped dependencies — prefer each package's wheel (https://pypi.org/pypi/<name>/<version>/json), falling back to a per-platform wheel matrix or, only if no wheel exists at all, the sdist. - Run
brew install --build-from-source ./Formula/dcode.rbandbrew test dcodelocally (or in CI) to confirm the closure resolves.