onboard_agent
Writes or updates workflow rules blocks in agent context files, idempotently skipping unchanged content via fenced markers and version tracking.
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 |
|---|---|---|---|
| project_id | Yes | Project ID returned from register_project | |
| confirm | Yes | MANDATORY: Set to true only after obtaining explicit user consent to modify context files. | |
| files | No | Project-relative paths to update; defaults to detected context files | |
| target_agent | No | Required when files is empty AND no context file exists. Picks the canonical filename + scaffold. |