Skip to content

Repository onboarding

Before submitting tasks against a repository, the repository must be onboarded to the platform. Onboarding is managed by the platform administrator through CDK — each repository is registered as a Blueprint construct in the CDK stack, which writes a configuration record to the RepoTable DynamoDB table.

If you submit a task against a repository that has not been onboarded, the API returns a 422 error with code REPO_NOT_ONBOARDED:

{
"error": {
"code": "REPO_NOT_ONBOARDED",
"message": "Repository 'owner/repo' is not onboarded. Register it with a Blueprint before submitting tasks."
}
}

Contact your platform administrator to onboard a new repository. For details on how administrators register repositories, see the Developer guide.

Blueprints can configure per-repository settings that override platform defaults:

SettingDescriptionDefault
compute_typeCompute strategy (agentcore or ecs)agentcore
runtime_arnAgentCore runtime ARN overridePlatform default
model_idFoundation model IDPlatform default
max_turnsDefault turn limit for tasks100
max_budget_usdDefault cost budget in USD per taskNone (unlimited)
system_prompt_overridesAdditional system prompt instructionsNone
github_token_secret_arnPer-repo GitHub token (Secrets Manager ARN)Platform default
poll_interval_msPoll interval for awaiting completion (5000–300000)30000

When you specify --max-turns (CLI) or max_turns (API) on a task, your value takes precedence over the Blueprint default. If neither is specified, the platform default (100) is used. The same override pattern applies to --max-budget / max_budget_usd, except there is no platform default — if neither the task nor the Blueprint specifies a budget, no cost limit is applied.