Documentation
¶
Overview ¶
Package codex adapts the OpenAI Codex CLI to graphmaster.
Codex reads user-level configuration from $CODEX_HOME (default ~/.codex): MCP servers from config.toml, lifecycle hooks from hooks.json (the same shape as Claude Code's settings "hooks" object) and global instructions from AGENTS.md. Codex has no dedicated grep/glob tools, so code search is steered by parsing the shell commands it runs.
Index ¶
- type Adapter
- func (Adapter) Detect(env install.Env) bool
- func (Adapter) InstallPlan(env install.Env, opts adapters.InstallOptions) (install.Plan, error)
- func (Adapter) Name() hookapi.Agent
- func (Adapter) Notes(env install.Env) []string
- func (Adapter) ParseEvent(event hookapi.Event, raw []byte, env []string) (hookapi.HookEvent, error)
- func (Adapter) RenderDecision(ev hookapi.HookEvent, d hookapi.Decision) adapters.HookOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct{}
Adapter implements adapters.Agent for the Codex CLI.
func (Adapter) Detect ¶
Detect implements adapters.Agent: the Codex config directory exists or a codex executable is on PATH.
func (Adapter) InstallPlan ¶
InstallPlan implements adapters.Agent.
func (Adapter) ParseEvent ¶
ParseEvent implements adapters.Agent.
func (Adapter) RenderDecision ¶
RenderDecision implements adapters.Agent. Every rendering exits 0: a deny is expressed in JSON, and noop/allow print nothing unless there is context to add. Codex does not support allow/ask overrides or input rewriting, so allow and ask render as "no opinion" (ask never escalates to deny).