From efda82696aa45c8beff01b42d7f82b8c1a6bf36a Mon Sep 17 00:00:00 2001 From: Bing Bhakdibhumi Date: Fri, 11 Sep 2026 05:20:06 +0000 Subject: [PATCH 1/2] added devcontainer files for reci activity --- .devcontainer/Dockerfile | 8 ++++++++ .devcontainer/devcontainer.json | 14 ++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 .devcontainer/Dockerfile create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 00000000..b283fbed --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,8 @@ +FROM oven/bun:latest + +# Install Python, build tools for native modules, and Git for Husky +RUN apt-get update && apt-get install -y \ + python3 \ + build-essential \ + git \ + && rm -rf /var/lib/apt/lists/* \ No newline at end of file diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 00000000..9de30c6c --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,14 @@ +{ + "name": "OpenCode Bun Dev", + "build": { + "dockerfile": "Dockerfile" + }, + "customizations": { + "vscode": { + "extensions": [ + "oven.bun-vscode" + ] + } + }, + "postCreateCommand": "bun install" +} \ No newline at end of file From c69d48e2bf3d8bb163ff764df18b0d1b7d10e0b8 Mon Sep 17 00:00:00 2001 From: Harrison Zoccoli Date: Mon, 14 Sep 2026 14:41:25 -0400 Subject: [PATCH 2/2] feat(opencode): add /scotty slash command Co-authored-by: Cursor --- packages/opencode/src/command/index.ts | 11 +++++++++++ packages/opencode/src/command/template/scotty.txt | 1 + 2 files changed, 12 insertions(+) create mode 100644 packages/opencode/src/command/template/scotty.txt diff --git a/packages/opencode/src/command/index.ts b/packages/opencode/src/command/index.ts index 057754cd..30bfe8d1 100644 --- a/packages/opencode/src/command/index.ts +++ b/packages/opencode/src/command/index.ts @@ -9,6 +9,7 @@ import { MCP } from "../mcp" import { Skill } from "../skill" import PROMPT_INITIALIZE from "./template/initialize.txt" import PROMPT_REVIEW from "./template/review.txt" +import PROMPT_SCOTTY from "./template/scotty.txt" import { LegacyEvent } from "@opencode-ai/schema/legacy-event" type State = { @@ -46,6 +47,7 @@ export function hints(template: string) { export const Default = { INIT: "init", REVIEW: "review", + SCOTTY: "scotty", } as const export interface Interface { @@ -86,6 +88,15 @@ const layer = Layer.effect( subtask: true, hints: hints(PROMPT_REVIEW), } + commands[Default.SCOTTY] = { + name: Default.SCOTTY, + description: "print ASCII art of a cute Scottish terrier", + source: "command", + get template() { + return PROMPT_SCOTTY + }, + hints: hints(PROMPT_SCOTTY), + } for (const [name, command] of Object.entries(cfg.command ?? {})) { commands[name] = { diff --git a/packages/opencode/src/command/template/scotty.txt b/packages/opencode/src/command/template/scotty.txt new file mode 100644 index 00000000..e0d33aa9 --- /dev/null +++ b/packages/opencode/src/command/template/scotty.txt @@ -0,0 +1 @@ +Output an ASCII image of a Scottish Terrier named Scotty. Make him as cute as you can.