extensions/<name>/extension.yaml.
From the agent folder, install a verified public PyPI wheel by its short slug or full distribution name:
py3-none-any wheel; local installs use the source tree. Packages are copied intact to extensions/<manifest-name>, and only declared contributes directories are compiled. Use --force to replace an installed extension. Review its code and capabilities, then run harnest env sync . to refresh dependencies.
Published wheels can declare Harnest or framework dependencies, but the installed project uses Harnest’s pinned versions. Other extension dependencies join the root environment. Local extensions must not redeclare compiler-owned packages.
After compilation, Harnest exposes the extension module as harnest.extensions.<name>. Import the singleton from a discovered Agent Tool and call its bounded API:
tools/query_warehouse.py
warehouse.context resolves the typed WarehouseContext created for that request. Retaining it after the invocation ends fails closed.
Resolve the typed context explicitly
Trusted application code can ask Harnest for the same invocation-scoped view:lib/warehouse_service.py
Find published extensions
Search public PyPI for compatibleharnest-extension-* packages:
official identifies Fused-maintained packages; community means the package meets the structural contract. Neither label is a security review.
Create your own extension
Define the local manifest, singleton, typed context, and dependencies.
Use extension lifecycle
Add only the hooks and factories declared by the manifest.
API reference
Reference:harnest.agent.