GitKB with Codex
GitKB’s Codex integration installs reusable workflows and a project instruction entry point. Connect the MCP server separately to give Codex access to the KB tools.
Scaffold project guidance
After initializing your KB, preview and install the integration:
git-kb init codex --dry-run
git-kb init codexThe scaffold creates:
.kb/skills/ # Canonical GitKB workflow skills
.codex/
├── skills/ # Links to .kb/skills/<name>
└── instructions/
├── codex-rules.md
└── gitkb-process.md
AGENTS.md # GitKB workflow section and .kb/AGENTS.md pointerThe root AGENTS.md supplies the project entry point. The installer preserves existing content while adding its GitKB section. Skills include remote-sync alongside code-intelligence and task workflows; see Agent Harnesses & Skills for the inventory.
Connect MCP
Register the stdio server:
codex mcp add gitkb -- git-kb mcp
codex mcp listCodex stores MCP settings in its config.toml. Run sessions in the project so GitKB finds the intended .kb/, or set GITKB_ROOT explicitly in the server configuration. See MCP Setup and the official OpenAI MCP documentation.
Optional home installation
To expose the integration through your Codex home, run:
git-kb init codex --install-homeThis uses $CODEX_HOME when set, otherwise ~/.codex. Use --copy when you want copied assets instead of symlinks. Preview either operation with --dry-run.
Optional hooks
Install GitKB’s Codex plugin bundle explicitly when you want its code-intelligence hooks:
git-kb init codex --install-hooks --dry-run
git-kb init codex --install-hooksThis writes the plugin bundle under .codex/plugins/gitkb/ and registers it with Codex. Restart Codex, then review the installed hooks with /hooks, as the installer instructs. The bundle includes MCP configuration; inspect existing server entries when combining it with a manual MCP setup.
Example workflow
The same commands are available through the CLI or corresponding MCP tools:
git-kb context --compact --code-refs
git-kb board --json
git-kb checkout tasks/auth-refactor
git-kb workspace path tasks/auth-refactor --json
git-kb code callers authenticate --json
# Edit the task's workspace file to record findings and verification.
git-kb commit -m "Record auth refactor verification" tasks/auth-refactor --jsonKeep the task’s scope, acceptance criteria, and actual verification results together so another session can continue from the evidence.
Next steps
- Claude Code — Claude integration
- Agent Workflows — Session and task workflow
- Code Intelligence — Symbols, calls, and impact
- CLI Reference —
init codexoptions