Workspai.dev

Agent Entry and Bootstrap

Resolve an adopted project to its governing workspace and give every supported agent host the same bounded, verified starting point.

An agent should not begin with an unbounded repository scan. Workspai publishes a portable project entry, resolves the governing workspace locally, and verifies a bounded read order before the model starts broad discovery.

Route a specific task

From the intended project, ask for a compact route:

npx workspai agent context --task "Fix the invoice total rounding test" --project . --for-agent generic --view route

The route identifies the verified project and returns up to three actions based on the available evidence. Add --path with a known project-relative file to select more focused lifecycle checks. If a route needs access to the linked workspace, follow its scoped recovery action and respect the host's approval. A recommendation still needs to be executed and verified.

Bootstrap from the project

npx workspai agent bootstrap --for-agent generic --strict --json

The receipt checks project membership, workspace identity, live-input fingerprints, evidence freshness, the active Goal binding, Skills, and the Graph retrieval route. It does not persist a machine-local absolute workspace path in portable source.

Use project agent-entry when you need to inspect or validate the entry adapters without compiling the complete bootstrap receipt:

npx workspai project agent-entry --json

Canonical read order

  1. .workspai/agent-entry.v1.json
  2. the strict agent bootstrap receipt
  3. .workspai/reports/INDEX.json
  4. the active Goal handoff and relevant Skills
  5. scoped Graph queries and source inspection

The entry is a locator and integrity boundary. The CLI remains the authority for workspace identity, freshness, verification, and repair closure.

Failure behavior

A missing, stale, incompatible, or ambiguous entry fails closed with a structured reason. Consumers should refresh or repair the named producer, then bootstrap again. They should not silently select a different workspace or widen project scope.

See the contract-derived command pages for agent context, agent bootstrap, project agent-entry, and workspace context.

On this page