Skip to main content

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 into target_dir (caller-supplied; this function does no git init and 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 canonical config/gating.json body 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.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for canopy-agent-factory 1.3.0
File Size Uploaded Provenance Actions
canopy_agent_factory-1.3.0.tar.gz 26.5 kB With provenance Details for canopy_agent_factory-1.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for canopy-agent-factory 1.3.0
File Interpreter ABI Platform Actions
canopy_agent_factory-1.3.0-py3-none-any.whl Python 3 none any Details for canopy_agent_factory-1.3.0-py3-none-any.whl

Total release size: 47.1 kB

Release files / canopy_agent_factory-1.3.0.tar.gz

Download URL canopy_agent_factory-1.3.0.tar.gz
Size 26.5 kB
Tags Source
SHA-256 checksum
How to use checksums
9409685df0a5534de0efbd02149827348c8600cfd4055e794391a56be02aeae2
BLAKE2b-256 checksum
How to use checksums
a7f89b34b1bcf7045bc255d5e5309536cc09f5ddc6b0272610d2b013a5377f66
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 Nov 9, 2026.

Transparency log

Release files / canopy_agent_factory-1.3.0-py3-none-any.whl

Download URL canopy_agent_factory-1.3.0-py3-none-any.whl
Size 20.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a5f85b632383a7bbde16dcf39f78a75c07d1831056da600e1c8fbcc1d2ef1ccd
BLAKE2b-256 checksum
How to use checksums
3dcde022b5e94aa042f548df41a8f3fce6230277f93b3976cad2e231d34dd668
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 Nov 9, 2026.

Transparency log

Security for canopy-agent-factory 1.3.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.

Select from 2 files

Attestation for canopy_agent_factory-1.3.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 Nov 9, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page