onboard_agent
Write or update workflow rules in AI agent context files for a project. Requires user consent; creates starter scaffolds for supported agents.
Instructions
Write or update the kontexta workflow rules block in a project's agent context file(s). Idempotent — uses fenced markers + version to skip no-op writes.
MANDATORY: This tool modifies project configuration files. You MUST seek explicit user consent before calling this tool. Set 'confirm: true' only after the user has agreed.
PARAMETERS:
project_id: number, required.
confirm: boolean, required. Must be true to proceed.
files: string[], optional. Paths relative to project root. For update mode, defaults to recommendation.target_files. Ignored when files is empty AND target_agent is provided (create mode).
target_agent: enum claude-code | codex | gemini | cursor | continue | aider | cline | copilot | generic. Required when files is empty AND no context file currently exists. Picks the canonical filename and the starter scaffold.
RETURNS: { written: [{ path, action: created|updated|skipped, version }], skipped: [{ path, reason }] }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | Project-relative paths to update; defaults to detected context files | |
| confirm | Yes | MANDATORY: Set to true only after obtaining explicit user consent to modify context files. | |
| project_id | Yes | Project ID returned from register_project | |
| target_agent | No | Required when files is empty AND no context file exists. Picks the canonical filename + scaffold. |