ck_attach
Wire ControlKeel into agent hosts by installing hooks, skills, and slash commands. Idempotent — re-run to refresh artifacts.
Instructions
Wire ControlKeel into the current agent host (Claude Code, Cursor, Codex, OpenCode, etc.). Closes the gap for users who installed ControlKeel via a one-line MCP-add command but skipped controlkeel attach <host>. Installs the host-specific hooks (SessionStart, PreToolUse, PostToolUse, UserPromptSubmit), skills directory, slash commands, AGENTS.md/CLAUDE.md preamble, and subagent profiles for the requested host. Idempotent — re-running refreshes artifacts to the current version. Writes only inside project_root; no network egress. Call this once after a one-line MCP install when the host lacks ControlKeel hooks/skills. Use ck_mcp_discover first if unsure which host ID to pass.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | Agent host ID to attach. One of: claude-code, codex-cli, cursor, opencode, augment, continue, aider, cline, roo-code, kiro, goose, gemini-cli, letta-code, windsurf, vscode, copilot, pi. | |
| project_root | No | Absolute path to the project root. Defaults to CK_PROJECT_ROOT or the MCP server's working directory. | |
| scope | No | Attach scope. Defaults to project. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| attached | No | ||
| files_created | No | ||
| hooks_installed | No | ||
| host | No |