Define a recipe
An AgentDefinition describes a task once so many runs can reuse it. Here is a minimal bug-fixer recipe.
apiVersion: agents.re-cinq.com/v1alpha1kind: AgentDefinitionmetadata: name: bug-fixerspec: description: Fix a referenced bug on a repository branch. model: claude-sonnet-4-6 prompt: | Fix bug {ticket} on repository {repo}, branch {branch}. Make the smallest change that resolves the issue and keep the tests green. permission_mode: auto allowed_tools: - Read - Edit - Bash(npm run test:*) disallowed_tools: - Bash(rm *) max_turns: 40 output: format: stream-json sinks: - type: stdout{ticket},{repo},{branch}are placeholders filled from an Agent’sparameters; see Prompt templating.permission_mode: auto(the default) enforces theallowed_tools/disallowed_toolslists. Usebypassto grant all tools.- Beyond the minimum,
resourcescan also declaremcp_servers,skills/skills_source, and aconversationto continue, andoutputcan declarewatchentries for files the run is expected to produce. See the AgentDefinition CRD. - The recipe is environment-independent: no image, no namespace, no credentials. Those belong to the Station.
Apply it:
kubectl apply -f bug-fixer.yamlkubectl get agentdefinitionsNext, pair it with a runtime in Create a station.