@treeseed/agent runs Treeseed capacity providers. It provides the provider manager, provider runner, AgentKernel execution, mode scheduling, provider-local capacity enforcement, package-owned Docker/Compose assets, and deployment templates.
Use this package when your organization needs to run or maintain capacity that executes Treeseed work. Ordinary hosted projects can consume assigned capacity without owning a provider runtime.
- provider manager and provider runner roles
- AgentKernel planning/acting mode execution
- local provider diagnostics
- provider containers and compose workflows
- runtime tests for capacity scheduling and provider lifecycle
npm install @treeseed/agent @treeseed/sdkFor package development:
npm install
npm run build
npm test
npm run verify:localUse the CLI for provider lifecycle:
trsd capacity build
trsd capacity up
trsd capacity status
trsd capacity logs
trsd capacity down
trsd capacity test-localThe package-owned role images are:
treeseed/agent-manager
treeseed/agent-runner
Production release images are published for linux/amd64 and linux/arm64. Staging builds the provider services from source at an exact commit. The images start:
node ./dist/provider/entrypoint.js manager
node ./dist/provider/entrypoint.js runner
node ./dist/provider/entrypoint.js doctorUse the qualified role names provider manager and provider runner in architecture and implementation docs. The provider manager supervises one provider's local runtime; API-side assignment selection lives in @treeseed/api.
Store provider credentials through trsd config or host secret managers. Do not create plaintext provider .env files.
Advanced launch configuration can be declared in treeseed.capacity-provider.yaml and passed to trsd capacity up --config treeseed.capacity-provider.yaml. The manifest can select official role images or derived images built from treeseed/agent-manager and treeseed/agent-runner. Secrets belong in encrypted Treeseed config or host secret managers, not in the manifest.
See Capacity Provider Runtime for the provider check-in, assignment lease, TreeDX proxy, and mode-run protocol.
@treeseed/adminmay display and manage capacity-provider configuration, status, and diagnostics.@treeseed/uiowns reusable capacity/status components.@treeseed/apiowns backend control-plane routes, operation state, provider-authenticated API behavior, provider availability sessions, assignment leases, mode-run persistence, and capacity ledger settlement.@treeseed/sdkowns shared provider contracts, portable capacity/assignment types, config, and reconciliation primitives.@treeseed/cliowns the operator command surface for provider lifecycle.- root market hosts the admin UI and future marketplace/business overlays.
Agent runtime must stay external to the root web app and API process.
Source entrypoints:
npm run dev:manager
npm run dev:worker
npm run dev:workday-start
npm run dev:workday-report
npm run dev:remote-runnerBuilt entrypoints:
npm run start:manager
npm run start:workday-start
npm run start:workday-reportVerification:
npm run build:dist
npm run test:unit
npm run test:smoke
npm run release:verify
npm run verify:localCI runs .github/workflows/verify.yml. Capacity-provider image publication uses .github/workflows/publish.yml for tagged production releases; staging deployments build from source through Railway reconciliation.
src/env.yaml is the package-owned provider/runtime environment registry. It contains provider manager, provider runner, workday, capacity-provider, and provider-launch entries.
Workday task budgeting is configured with TREESEED_WORKDAY_TASK_CREDIT_BUDGET.
Provider-neutral shared entries belong in @treeseed/sdk. Web/forms/Astro entries belong in @treeseed/core. Admin UI expectations belong in @treeseed/admin. Backend control-plane entries belong in @treeseed/api.
Exports include runtime APIs, service helpers, contracts, and binaries needed by provider deployments and package tests. Prefer SDK-owned contracts for shared model types so root market and admin code do not import agent runtime internals.
Published binaries:
treeseed-agentstreeseed-agent-service
- root market web app
- admin routes or UI pages
- reusable UI components
- backend PostgreSQL adapter, API routes, migrations, or operations runner
- SDK reconciliation engine
- CLI command parsing
- TreeDX repository service internals
- ecommerce, billing, licensing, or marketplace policy
See the root Package Ownership guide for cross-package boundaries.