---
title: Agent Harnesses & Skills
description: GitKB harness installers, shared skills, MCP configuration, and hook support.
---

# Agent Harnesses & Skills

GitKB provides harness-specific installers and a stdio MCP server. Inspect `git-kb init --help` for the installers included in your binary.

## Integration paths

| Harness            | Setup command                       | Installed integration                                                           |
| ------------------ | ----------------------------------- | ------------------------------------------------------------------------------- |
| Claude Code        | `git-kb init claude`                | Claude rules, skills, project instructions, and MCP configuration.              |
| Codex              | `git-kb init codex`                 | Codex skills and instructions; optional home installation or hook plugin.       |
| Cursor             | `git-kb init cursor`                | Cursor skills, rules, and `.cursor/mcp.json`.                                   |
| Windsurf           | `git-kb init windsurf`              | Windsurf skills, rules, and MCP configuration.                                  |
| OpenCode           | `git-kb init opencode`              | `.opencode/` skills and rules, plus `opencode.json` MCP configuration.          |
| oh-my-pi           | `git-kb init oh-my-pi`              | `.omp/` skills and rules, plus `.omp/mcp.json`.                                 |
| Grok Build         | `git-kb init grok`                  | `.grok/` skills and rules, plus `.grok/config.toml`.                            |
| OpenClaw           | `git-kb init openclaw`              | `.agents/` skills and rules; prints instructions for global MCP registration.   |
| Google Antigravity | `git-kb init antigravity`           | `.agents/` skill and rule symlinks, `.agents/mcp_config.json`, and `AGENTS.md`. |
| pi                 | `git-kb init pi`                    | `.pi/` skills and rules; MCP access requires a pi MCP extension.                |
| Generic MCP client | Run `git-kb mcp` through the client | Tool access through MCP; configure the client separately.                       |

Preview an install before changing project files:

```bash
git-kb init claude --dry-run
git-kb init codex --dry-run
git-kb init opencode --dry-run
```

The extra harness installers share GitKB's skills and rules. They do not all implement the same lifecycle hooks. Check each command's help and generated assets for the integration you use.

## Shared skill content

The installers keep canonical project workflows under `.kb/skills/` and common rules under `.kb/rules/`. Harness directories expose those assets in their native layout, usually through symlinks.

```text
.kb/skills/        # Shared GitKB workflows
.kb/rules/        # Shared code-intelligence and KB rules
.claude/skills/    # Claude Code skill adapters
.codex/skills/     # Codex skill adapters
.cursor/skills/    # Cursor skill adapters
.windsurf/skills/  # Windsurf skill adapters
```

## Included skills

| Area                   | Skills                                                                         |
| ---------------------- | ------------------------------------------------------------------------------ |
| KB operations and sync | `gitkb`, `remote-sync`                                                         |
| Task workflow          | `kb-board`, `kb-tasks`, `kb-start`, `kb-progress`, `kb-review`, `kb-close`     |
| Knowledge management   | `kb-create`, `kb-search`, `kb-context`, `kb-status`, `kb-commit`, `kb-handoff` |
| Code intelligence      | `code-intelligence`, `explore`, `understand`, `refactor-safety`                |

Skills provide workflow instructions. MCP tools provide structured operations. An agent follows the operator's task and project rules when deciding which operations to run.

## Codex options

```bash
# Preview a home-level asset installation
git-kb init codex --install-home --dry-run

# Preview the GitKB plugin bundle, including hooks and MCP configuration
git-kb init codex --install-hooks --dry-run
```

`--install-home` installs skills and instructions under `CODEX_HOME`; `--copy` copies assets instead of symlinking them. `--install-hooks` installs the GitKB Codex plugin bundle. Review the preview, then run the same command without `--dry-run` to install.

## Generic MCP clients

Configure a stdio server with command `git-kb` and argument `mcp`. Set the project working directory or `GITKB_ROOT` so the server selects the intended KB. Use [MCP Setup](/docs/getting-started/mcp-setup/) for configuration examples.

## Related docs

- [Claude Code](/docs/getting-started/claude-code/) — Claude setup.
- [Codex](/docs/getting-started/codex/) — Codex setup.
- [Agent Workflows](/docs/guides/agent-workflows/) — Tasks, checkouts, and verification.
- [MCP Tools](/docs/reference/mcp-tools/) — Tool reference.
- [CLI Reference](/docs/cli-reference/) — Installed command help.
