diff --git a/options.xhtml b/options.xhtml index a434c3483..9ca9adc76 100644 --- a/options.xhtml +++ b/options.xhtml @@ -62444,12 +62444,12 @@ null or package

-

Custom agents for opencode. -The attribute name becomes the agent filename, and the value is either:

+

Custom agents for opencode.

This option can either be:

If an attribute set is used, the attribute name becomes the agent filename, +and the value is either:

If a path is used, it is expected to contain agent files. +The directory is symlinked to $XDG_CONFIG_HOME/opencode/agent/.

Type: -attribute set of (strings concatenated with “\n” or absolute path)

+(attribute set of (strings concatenated with “\n” or absolute path)) or absolute path

Default: { }

@@ -62488,12 +62488,12 @@ attribute set of (strings concatenated with “\n” or absolute path)

-

Custom commands for opencode. -The attribute name becomes the command filename, and the value is either:

+

Custom commands for opencode.

This option can either be:

If an attribute set is used, the attribute name becomes the command filename, +and the value is either:

If a path is used, it is expected to contain command files. +The directory is symlinked to $XDG_CONFIG_HOME/opencode/command/.

Type: -attribute set of (strings concatenated with “\n” or absolute path)

+(attribute set of (strings concatenated with “\n” or absolute path)) or absolute path

Default: { }

@@ -62666,18 +62666,65 @@ containing a SKILL.md. The directory is symlinked
-

Custom themes for opencode. The attribute name becomes the theme -filename, and the value is either:

+

Custom themes for opencode.

This option can either be:

If an attribute set is used, the attribute name becomes the theme filename, +and the value is either:

If a path is used, it is expected to contain theme files. +The directory is symlinked to $XDG_CONFIG_HOME/opencode/themes/.

Set programs.opencode.settings.theme to enable the custom theme. +See https://opencode.ai/docs/themes/ for the documentation.

Type: -attribute set of (JSON value or absolute path)

+(attribute set of (JSON value or absolute path)) or absolute path

Default: { }

+

Declared by:

+ + +
+ +<home-manager/modules/programs/opencode.nix> + +
+
+
+ + programs.opencode.tools + + +
+
+

Custom tools for opencode.

This option can either be:

If an attribute set is used, the attribute name becomes the tool filename, +and the value is either:

If a path is used, it is expected to contain tool files. +The directory is symlinked to $XDG_CONFIG_HOME/opencode/tool/.

See https://opencode.ai/docs/tools/ for the documentation.

+ +

Type: +(attribute set of (strings concatenated with “\n” or absolute path)) or absolute path

+ +

Default: +{ }

+ +

Example:

{
+  database-query = ''
+    import { tool } from "@opencode-ai/plugin"
+
+    export default tool({
+      description: "Query the project database",
+      args: {
+        query: tool.schema.string().describe("SQL query to execute"),
+      },
+      async execute(args) {
+        // Your database logic here
+        return `Executed query: ${args.query}`
+      },
+    })
+  '';
+
+  # Or reference an existing file
+  api-client = ./tools/api-client.ts;
+}
+
+
+

Declared by: