Sign in

    workgraph-opencode-cli

    Native OpenCode CLI integration for workgraph

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

    #workgraph-opencode-cli

    workgraph-opencode-cli implements the workgraph-core coding-agent contract with the native OpenCode CLI SDK.

    #Package

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

    The module supports and prefers the native target.

    #Example

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

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

    OpenCodeAdapterError

    pub suberror OpenCodeAdapterError {
    SessionClosed
    } derive(
    Debug
    )

    Raised when execution is requested after a session has closed.

    OpenCodeAgentOptions

    pub struct OpenCodeAgentOptions {
    opencode_path_override :
    Path
    ?
    config : Map[String,
    OpenCodeConfigValue
    ]?
    resume_thread_id : String?
    model : String?
    agent : String?
    variant : String?
    title : String?
    thinking : Bool
    extra_env : Map[String, String]
    }

    Configuration shared by every OpenCode CLI session opened by this adapter.

    OpenCodeAgentOptions::OpenCodeAgentOptions

    fn OpenCodeAgentOptions::OpenCodeAgentOptions(opencode_path_override? :
    Path
    , config? : Map[String,
    OpenCodeConfigValue
    ], resume_thread_id? : String, model? : String, agent? : String, variant? : String, title? : String, thinking? : Bool, extra_env? : Map[String, String]) -> OpenCodeAgentOptions

    Creates OpenCode adapter options with the CLI SDK's defaults.

    opencode_agent

    Creates a coding agent backed by the OpenCode CLI SDK.

    Source Files

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io