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.1.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.1.0
File Size Uploaded Provenance Actions
canopy_agent_factory-1.1.0.tar.gz 23.4 kB With provenance Details for canopy_agent_factory-1.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 42.0 kB

Release files / canopy_agent_factory-1.1.0.tar.gz

Download URL canopy_agent_factory-1.1.0.tar.gz
Size 23.4 kB
Tags Source
SHA-256 checksum
How to use checksums
fc2cc0f2b63e34cd931413f804638bfd44112fc2db3d06f0137a7cbbae8ef024
BLAKE2b-256 checksum
How to use checksums
845612fbab60fb0d078fbc1d99eddc15cc4b2ea06cb043150762e93caf9adc7c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 14, 2026.

Transparency log

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

Download URL canopy_agent_factory-1.1.0-py3-none-any.whl
Size 18.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
90e3d13426295946a3218b3be7b7548b6bde1515004d0abb6e4334578724ed34
BLAKE2b-256 checksum
How to use checksums
0737e825aca3dedb2dc829643a6892a66d477e15f9e4294a509cc2c5b0c78ff4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 14, 2026.

Transparency log

Security for canopy-agent-factory 1.1.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.1.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 14, 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