Skip to main content

Choosing a template

AgentXchain ships governed templates across three categories: manual-first baseline, project-type scaffolds, and automation-pattern blueprints. This page helps you decide.

The two categories​

Templates split into two categories based on runtime posture:

CategoryTemplatesDefault runtimesPlanning artifactsBest for
Manual-first baselinegenericAll roles use manual runtimesNoneLearning governance, manual-only teams, cold-start exploration
Project-type templatesapi-service, cli-tool, library, web-app, enterprise-appInherited from operator flags or defaultsProject-specific planning files + prompt overrides + acceptance hintsTeams building a specific kind of software with automation
Automation-pattern templatefull-local-cliPM, Dev, QA, and Director all start on local_cliNo extra planning files; runtime/authority topology changes at init timeHuman-gated automation where all governed turns are automated

The key difference: generic requires zero dependencies. No API keys, no local coding CLI, no model provider. Every role is manual. You can run the full governance flow (plan → implement → QA → ship) with nothing but a text editor and agentxchain step.

Project-type templates add structure (planning artifacts like api-contract.md, user-flows.md, command-surface.md) and opinionated prompt guidance. They do not change the protocol, gate model, or role schema.

full-local-cli is different. It is not about product shape. It is about runtime posture: all governed turns are automated, but humans still approve the major gates. See Automation Patterns for the exact operator flow.

Decision guide​

Pick generic when​

  • You are trying AgentXchain for the first time and want zero-friction setup
  • Your project does not fit a standard category (research, infrastructure, monorepo tooling, etc.)
  • You want to run the governance flow manually before connecting automation
  • You do not have API keys or a local coding CLI configured yet

generic is the honest cold start. agentxchain doctor will pass without any external dependencies.

agentxchain init --governed -y
agentxchain doctor # → all pass, no API key needed
agentxchain step --role pm

Pick a project-type template when​

  • You know what you are building (API, CLI, web app, library, enterprise product)
  • You want planning artifacts that match your project shape from day one
  • You plan to connect automation (local_cli, api_proxy, or remote_agent) immediately or soon
  • You want prompt guidance that steers agents toward domain-relevant acceptance criteria
agentxchain init --governed --template api-service --goal "Build a REST API for invoice management" -y

This scaffolds api-contract.md, operational-readiness.md, and error-budget.md in .planning/ alongside the governed config. The PM prompt override tells the agent to "define the API contract, failure modes, and operational-readiness criteria before implementation starts."

Template comparison​

TemplatePlanning filesPM prompt focusQA prompt focusAcceptance hints
genericNone(default)(default)None
api-serviceapi-contract.md, operational-readiness.md, error-budget.mdAPI contract, failure modes, operational readinessEndpoint behavior, error responses, backward compatibilityAPI contract reviewed, error budget set, operational readiness checked
cli-toolcommand-surface.md, platform-support.md, distribution-checklist.mdCommand surface, platform scope, distribution planCross-platform behavior, help output, install pathsCommand surface documented, platform matrix verified, distribution checklist complete
librarypublic-api.md, compatibility-policy.md, release-adoption.mdPublic API surface, compatibility guaranteesAPI contract stability, breaking change detectionPublic API reviewed, compatibility policy set, release plan documented
web-appuser-flows.md, ui-acceptance.md, browser-support.mdUser flows, minimum browser/device supportPrimary flows, responsive behavior, accessibility, copy regressionsPrimary user flow reviewed, mobile+desktop checked, accessibility smoke passed
full-local-cliNoneAutomated PM planning with human approvals preservedAutomated QA and Director intervention without manual runtime rolesHuman-gated automation loop proven before lights-out operation
enterprise-appintegration-boundaries.md, data-classification.md, risk-register.mdIntegration boundaries, security review scopeSecurity, data handling, integration contract complianceIntegration boundaries documented, data classification set, risk register reviewed

Upgrading from generic to a project template​

If you start with generic and later decide you need project-type planning artifacts, use template set:

agentxchain template set cli-tool

This adds the planning files and records the template choice in agentxchain.json. It does not change your existing roles, runtimes, or governance state.

Connecting automation to any template​

Templates do not lock you into manual or automated runtimes. After scaffolding with any template, connect automation by editing agentxchain.json:

{
"runtimes": {
"dev-runtime": {
"type": "local_cli",
"command": "claude -p \"{{prompt}}\" --output-format json"
}
},
"roles": {
"dev": {
"runtime": "dev-runtime"
}
}
}

Or use config --set to update runtimes without hand-editing:

agentxchain config --set roles.dev.runtime dev-runtime

The generic template's manual-first posture is a starting point, not a ceiling.

Summary​

  • generic = zero dependencies, zero friction, manual-first. Start here if you are unsure.
  • Project templates = domain-specific planning + prompt guidance. Start here if you know what you are building.
  • Both categories use the same protocol, gate model, and governance flow.
  • You can always upgrade from generic to a project template later.