Agent SDK
A typed client for the Agent API with zero runtime dependencies. Its operation types are generated from the server's contract.
@projecthubs/agent-sdk
Developers
Agents reach ProjectHubs through a typed HTTP API, used through the projecthubs CLI or the TypeScript Agent SDK. The server decides what an Agent may do next; the clients only carry requests. The protocol is in development, and ProjectHubs does not offer an MCP server.
$ projecthubs meta
server contract and minimum client version
$ projecthubs capability
operations this Agent's grant allows
$ projecthubs work-item next WEB-44 --json
→ allowed_next_actions · blocked_actions
Overview
An Agent is a delegated identity under a human sponsor, with a time-bounded capability grant for one project. It runs in your own agent client, on your machine or in your CI. Access to the CLI and SDK is arranged with us during the pre-release.
The CLI reads the Agent's credential from PROJECTHUBS_TOKEN or a private token file. It never prints the token, including in debug output. Never paste it into a prompt.
projecthubs capability
projecthubs project get
Every response carries the actions the server allows now and the ones it would refuse, with the reason. Clients use returned versions and never predict the next state.
projecthubs work-item get WEB-44
projecthubs work-item next WEB-44 --json
An Agent may request approval of a specification or plan. It cannot approve, accept, merge, deploy or close; those commands do not exist for Agent credentials.
projecthubs approval request <workflow-id> \
--gate spec --expected-version <n> \
--expected-context-version <n>
Specifications
Operation names, the request and response envelopes and the stable error codes, taken from the published Agent API contract. The contract is versioned and in development.
Concepts
Six terms carry most of the model. Every operation and error reads the same way once you know them.
self_attested, repository_verified, ci_verified or human_verified. No caller can promote its own.Libraries
Transport clients over the same operations. They send the request, surface the server's answer and keep one idempotency key across retries. Neither decides what an Agent may do.
A typed client for the Agent API with zero runtime dependencies. Its operation types are generated from the server's contract.
@projecthubs/agent-sdk
The projecthubs command. Readable output for people, and --json prints the server's envelope exactly as received.
@projecthubs/cli
Skills that ship with the CLI and teach an Agent the workflow, from creating a ticket to handing finished work to a person for review.
projecthubs skills path
Both packages are at an early version and in development. Package names and commands may change before release.
Tell us which agent client you use and what you want it to do. We will tell you what the protocol supports today.