canopy-agent-factory
Stamp out a new Claude Code agent from the canopy operating model — a persona, the turn
orchestrator, reads-free / writes-gated guarding via a config-driven PreToolUse hook, and a
canopy-web-ready layout. Extracted from the canopy distribution's
src/orchestrator/agent_factory.py so a second consumer (canopy-web, a Django app) can
scaffold an agent repo without inheriting canopy's video-tooling dependency footprint
(Pillow, NumPy).
Zero runtime dependencies. Versions independently of canopy.
Public API
from canopy_agent_factory import AgentSpec, create_agent, normalize_slug, AgentFactoryError
from canopy_agent_factory import templates, gating_config # canonical stamp-table baseline
AgentSpec— dataclass describing the agent to scaffold.create_agent(spec, target_dir, *, force=False) -> list[Path]— writes the templated files intotarget_dir(caller-supplied; this function does nogit initand no other I/O beyond writing the scaffold) and returns the paths it wrote.normalize_slug(raw) -> str— validate + normalize an agent slug.AgentFactoryError— raised for bad input or an unsafe target directory.templates() -> Mapping[str, str]— the canonical stamp table (repo-relative path → rendered-template source), read-only. Ground truth for "what a factory-stamped agent looks like"; used by canopy's fleet-alignment lens to diff real agent repos against the baseline.gating_config() -> str— the canonicalconfig/gating.jsonbody a stamped agent ships with.
Development
uv run --with pytest pytest -q
Runs standalone — no orchestrator import, no Django.
Metadata
Release files for canopy-agent-factory 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| canopy_agent_factory-1.2.0.tar.gz | 26.2 kB | With provenance | Details for canopy_agent_factory-1.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| canopy_agent_factory-1.2.0-py3-none-any.whl | Python 3 | none | any | Details for canopy_agent_factory-1.2.0-py3-none-any.whl |
Total release size: 46.7 kB
Release files / canopy_agent_factory-1.2.0.tar.gz
| Download URL | canopy_agent_factory-1.2.0.tar.gz |
|---|---|
| Size | 26.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e5663ab5f77283565e76d62036da3d63180f210cf572e47c0febfa630b206437
|
|
BLAKE2b-256 checksum How to use checksums |
70620a4e42f17f2114dc85b35195946fb5f074973fa5b0c1bd48d5f37c6d0129
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logRelease files / canopy_agent_factory-1.2.0-py3-none-any.whl
| Download URL | canopy_agent_factory-1.2.0-py3-none-any.whl |
|---|---|
| Size | 20.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0e470410848f6f588446284c976c87db7e4186c40787e8b5bd135c8a3ae03abe
|
|
BLAKE2b-256 checksum How to use checksums |
ebfa4fa99d82e17ff9ff1e52bae7a99459c9a32320da5990275b63fad83802e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logSecurity for canopy-agent-factory 1.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for canopy_agent_factory-1.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.