codexacp

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2026 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultAgentName = "codex-acp"

DefaultAgentName is the fallback ACP agent name used when backend identity is unavailable.

Variables

View Source
var DefaultAgentVersion = appversion.String()

DefaultAgentVersion is the fallback ACP agent version used when backend identity is unavailable.

Functions

func RunProxy

func RunProxy(ctx context.Context, workingDir string, opts Options, stdin io.Reader, stdout, stderr io.Writer) error

RunProxy starts the Codex backend and exposes it as an ACP agent over stdio.

Types

type MCPApprovalPolicy

type MCPApprovalPolicy string

MCPApprovalPolicy is the process-wide policy for MCP tool-call approvals.

const (
	// MCPApprovalPolicy controls how the bridge settles MCP tool-call approvals.
	MCPApprovalPolicyAsk   MCPApprovalPolicy = "ask"
	MCPApprovalPolicyAllow MCPApprovalPolicy = "allow"
	MCPApprovalPolicyDeny  MCPApprovalPolicy = "deny"
)

type Options

type Options struct {
	Name               string
	DeferBackend       bool
	MessageStreaming   bool
	ReasoningStreaming bool
	ReasoningThoughts  string
	ReasoningSummary   string
	CodexArgs          []string
	MCPApprovalPolicy  MCPApprovalPolicy
	Sandbox            string
	// contains filtered or unexported fields
}

Options configures Codex bridge backend -> ACP proxy behavior.

func (*Options) SetReasoningStreaming

func (o *Options) SetReasoningStreaming(enabled bool)

Jump to

Keyboard shortcuts

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