Sign in

    workgraph-codex-cli

    Native Codex CLI integration for workgraph

    agent
    codex
    graph
    moonbit
    Download zip
    Author
    Version
    0.1.3
    License
    MIT
    Last updated
    2 months ago
    Downloads
    29

    #workgraph-codex-cli

    workgraph-codex-cli implements the workgraph-core coding-agent contract with the native Codex CLI SDK.

    #Package

    import {
    "totto2727/workgraph-codex-cli"
    }

    The module supports and prefers the native target.

    #Example

    The example uses the local Codex CLI authentication and runs a read-only prompt in the current workspace.

    moon run --target native package/workgraph-codex-cli/src/examples/basic

    CodexAdapterError

    pub suberror CodexAdapterError {
    SessionClosed
    } derive(
    Debug
    )

    Raised when execution is requested after a session has closed.

    CodexAgentOptions

    pub struct CodexAgentOptions {
    codex_path_override :
    Path
    ?
    base_url : String?
    api_key : String?
    config : Map[String,
    CodexConfigValue
    ]?
    resume_thread_id : String?
    model : String?
    sandbox :
    SandboxMode
    ?
    skip_git : Bool?
    reasoning :
    ModelReasoningEffort
    ?
    web_search :
    WebSearchMode
    ?
    }

    Configuration shared by every Codex session opened by this adapter.

    CodexAgentOptions::CodexAgentOptions

    fn CodexAgentOptions::CodexAgentOptions(codex_path_override? :
    Path
    , base_url? : String, api_key? : String, config? : Map[String,
    CodexConfigValue
    ], resume_thread_id? : String, model? : String, sandbox? :
    SandboxMode
    , skip_git? : Bool, reasoning? :
    ModelReasoningEffort
    , web_search? :
    WebSearchMode
    ) -> CodexAgentOptions

    Creates Codex adapter options with the SDK's defaults.

    codex_agent

    Creates a coding agent backed by the pinned Codex SDK.

    Source Files

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io