Codex & OpenCode Integration
FreshOverview
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 codexWrites to AGENTS.md and installs a compatible hook.
OpenCode
bash
graphify codex installOpenCode uses the same AGENTS.md integration path as Codex.
What Gets Installed
| Component | Location | Purpose |
|---|---|---|
| AGENTS.md directive | Project root | Tells the assistant to check graph |
| Hook | Codex/OpenCode hook config | Fires 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 detailsUninstalling
bash
graphify codex uninstallVerification
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