opencode

package
v0.0.0-...-e0b29d8 Latest Latest
Warning

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

Go to latest
Published: May 26, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Tool = tools.Tool{
	Name:            "opencode",
	Description:     "OpenCode - AI coding assistant",
	DockerfileStage: dockerfileStage,
	Command: func(home string) []string {
		return []string{home + "/.opencode/bin/opencode"}
	},
	DefaultConfig: func() config.ToolConfig {
		return config.ToolConfig{
			MountsRW: []string{
				tilde.Path(filepath.Join(config.XDGConfigHomeDir(), "opencode")),
				tilde.Path(filepath.Join(config.XDGDataHomeDir(), "opencode")),
				tilde.Path(filepath.Join(config.XDGStateHomeDir(), "opencode")),
			},
			MountsRO: []string{
				"~/.claude",
			},
			Env: []string{
				"OPENCODE_DISABLE_DEFAULT_PLUGINS=1",
			},
		}
	},
}

Tool is the OpenCode tool definition.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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