ck_attach
Wire ControlKeel hooks, skills, and profiles into your agent host after a one-line MCP install. Idempotent and writes only inside the project root.
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. | |
| scope | No | Attach scope. Defaults to project. | |
| project_root | No | Absolute path to the project root. Defaults to CK_PROJECT_ROOT or the MCP server's working directory. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | ||
| attached | No | ||
| files_created | No | ||
| hooks_installed | No |