Skip to content

Codex & OpenCode Integration

Fresh

Overview

Graphify supports both OpenAI Codex and OpenCode with native integration that mirrors the Claude Code experience.

Installation

Codex

bash
graphify codex install
# or
graphify install --platform codex

Writes to AGENTS.md and installs a compatible hook.

OpenCode

bash
graphify codex install

OpenCode uses the same AGENTS.md integration path as Codex.

What Gets Installed

ComponentLocationPurpose
AGENTS.md directiveProject rootTells the assistant to check graph
HookCodex/OpenCode hook configFires before tool calls

Manual Setup

Add to your AGENTS.md:

markdown
## Graphify Knowledge Graph

This project has an active Graphify knowledge graph at `graphify-out/graph.json`.

Before answering architecture questions:
1. Check `graphify-out/GRAPH_REPORT.md` for key nodes and communities
2. Use `graphify query "..."` to find relevant nodes before reading files
3. Use `graphify explain "NodeName"` for node details

Uninstalling

bash
graphify codex uninstall

Verification

bash
# Build a graph
/graphify .

# Verify Codex uses it
# Ask Codex: "What are the main architectural components of this codebase?"
# Expected: Codex references GRAPH_REPORT.md and names specific nodes