Skip to main content
Use lifecycle resources for database pools, service clients, caches, and other application-owned dependencies. From the agent root, create an invocation-scoped provider starter:
Use --project <agent-root> when running the command from elsewhere. Add @lifecycle.resource when the value should be created once for the application instead of once per invocation.

Resource properties

Harnest starts application resources by ascending order, then source location, and closes them in reverse order.

Read a resource

Resource or tool?

Agent Tools

Expose typed capabilities to the model.

Auth and credentials

Resolve private credentials inside an invocation.