Help us shape the future of Go! Take the 2026 Go Developer Survey

codex

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2026 License: MIT Imports: 10 Imported by: 0

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

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

func (Adapter) Detect(env install.Env) bool

Detect implements adapters.Agent: the Codex config directory exists or a codex executable is on PATH.

func (Adapter) InstallPlan

func (Adapter) InstallPlan(env install.Env, opts adapters.InstallOptions) (install.Plan, error)

InstallPlan implements adapters.Agent.

func (Adapter) Name

func (Adapter) Name() hookapi.Agent

Name implements adapters.Agent.

func (Adapter) Notes

func (Adapter) Notes(env install.Env) []string

Notes implements adapters.Agent.

func (Adapter) ParseEvent

func (Adapter) ParseEvent(event hookapi.Event, raw []byte, env []string) (hookapi.HookEvent, error)

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).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL