1
Create the extension
Add
extensions/<name>/extension.yaml, export the singleton from extension.py, and declare any SDK dependencies.Create a Harnest Extension
Build the folder, manifest, typed context, and shared dependency contract.
2
Integrate lifecycle behavior
Own application startup and shutdown in the extension class. Put declared Harnest hooks and factories under the extension’s
lifecycle/ directory.Use lifecycle in an extension
Declare capabilities, ordering, hooks, storage, telemetry, and auditing.
3
Use the extension from the agent
Import its compiler-owned namespace or resolve its typed invocation context. No central registry is required.
Use a Harnest Extension
Discover local extensions, call their public API, and understand PyPI search behavior.