From 94bc6f1567aa62ba1f4c3451727b93f5cdb42beb Mon Sep 17 00:00:00 2001 From: Zdenek Rusek Kotva Date: Mon, 31 Aug 2026 23:52:51 -0400 Subject: [PATCH 1/3] Add a working devcontainer file --- .devcontainer/devcontainer-lock.json | 9 +++++++++ .devcontainer/devcontainer.json | 8 ++++++++ 2 files changed, 17 insertions(+) create mode 100644 .devcontainer/devcontainer-lock.json create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer-lock.json b/.devcontainer/devcontainer-lock.json new file mode 100644 index 00000000..62fb41f0 --- /dev/null +++ b/.devcontainer/devcontainer-lock.json @@ -0,0 +1,9 @@ +{ + "features": { + "ghcr.io/devcontainers/features/git:1": { + "version": "1.3.8", + "resolved": "ghcr.io/devcontainers/features/git@sha256:fd75977de13a9979000e0e78baf949adb0ca71d2398995fa22e0a36d7e7e7fe2", + "integrity": "sha256:fd75977de13a9979000e0e78baf949adb0ca71d2398995fa22e0a36d7e7e7fe2" + } + } +} diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 00000000..cb6d21a6 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,8 @@ +{ + "name": "opencode-dev", + "image": "oven/bun:1.3", + "features": { + "ghcr.io/devcontainers/features/git:1": {} + }, + "postCreateCommand": "apt-get update && apt-get install -y python3 make g++ lcov" +} \ No newline at end of file From 2959e6f66b2eb76e677d9e503f06590f76942a42 Mon Sep 17 00:00:00 2001 From: Zdenek Rusek Kotva Date: Mon, 7 Sep 2026 18:23:16 -0400 Subject: [PATCH 2/3] Add Qlty to devcontainer --- .devcontainer/devcontainer.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index cb6d21a6..6f8e1e1d 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -4,5 +4,8 @@ "features": { "ghcr.io/devcontainers/features/git:1": {} }, - "postCreateCommand": "apt-get update && apt-get install -y python3 make g++ lcov" + "remoteEnv": { + "PATH": "/root/.qlty/bin:${containerEnv:PATH}" + }, + "postCreateCommand": "apt-get update && apt-get install -y python3 make g++ lcov curl xz-utils && curl https://qlty.sh | bash" } \ No newline at end of file From c1bc36016164b5220bd9105a229630a7789c0dcb Mon Sep 17 00:00:00 2001 From: Zdenek Rusek Kotva Date: Mon, 14 Sep 2026 21:43:42 -0400 Subject: [PATCH 3/3] Add a custom /scotty command to OpenCode CLI that prints out an ASCII art of Scotty --- packages/tui/src/app.tsx | 10 ++++ packages/tui/src/component/dialog-scotty.tsx | 51 ++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 packages/tui/src/component/dialog-scotty.tsx diff --git a/packages/tui/src/app.tsx b/packages/tui/src/app.tsx index 57f372ef..4a342110 100644 --- a/packages/tui/src/app.tsx +++ b/packages/tui/src/app.tsx @@ -44,6 +44,7 @@ import { useConnected } from "./component/use-connected" import { DialogMcp } from "./component/dialog-mcp" import { DialogStatus } from "./component/dialog-status" import { DialogDebug } from "./component/dialog-debug" +import { DialogScotty } from "./component/dialog-scotty" import { DialogThemeList } from "./component/dialog-theme-list" import { DialogHelp } from "./ui/dialog-help" import { DialogAgent } from "./component/dialog-agent" @@ -778,6 +779,15 @@ function App(props: { onSnapshot?: () => Promise; pluginHost: TuiPlugi }, category: "System", }, + { + name: "opencode.scotty", + title: "Show Scotty", + slashName: "scotty", + run: () => { + dialog.replace(() => ) + }, + category: "System", + }, { name: "theme.switch", title: "Switch theme", diff --git a/packages/tui/src/component/dialog-scotty.tsx b/packages/tui/src/component/dialog-scotty.tsx new file mode 100644 index 00000000..7078aefe --- /dev/null +++ b/packages/tui/src/component/dialog-scotty.tsx @@ -0,0 +1,51 @@ +import { TextAttributes } from "@opentui/core" +import { For } from "solid-js" +import { useTheme } from "../context/theme" +import { useDialog } from "../ui/dialog" + +const SCOTTY = [ + " __---__", + " _- -_", + " / \\", + " | O O |", + " | __ |", + " \\ |__| /", + " /```-.__________.-'```\\", + " / \\", + " _____/ CARNEGIE MELLON \\_____", + " | |", + " | __ __ __ __ __ |", + " \\_/ \\____/ \\____/ \\____/ \\____/ \\_/", + " | | | | | | | |", + " | | | | | | | |", +] + +export function DialogScotty() { + const { theme } = useTheme() + const dialog = useDialog() + + dialog.setSize("large") + + return ( + + + + Scotty + + dialog.clear()}> + esc + + + + + {(line) => ( + + {line} + + )} + + + Go Tartans! + + ) +} \ No newline at end of file