Skip to content

Instantly share code, notes, and snippets.

@remorses
remorses / plan-to-build.ts
Created October 2, 2025 08:50
Opencode plugin to automatically implement GPT-5 agent plan with Opus build agent
// GPT-5 is very good at exploring a code base and creating plans but very bad at actually writing readable code
// Sonnet and Opus are the opposite: very bad at architecture but good at implementing readable and nice code
// this plugin automatically implements plan agent messages using Opus so that you can always use GPT5 Codex in plan mode and have Opus implement the plan autoamtically
import type { Plugin } from "@opencode-ai/plugin";
export const PlanToBuildPlugin: Plugin = async ({ client }) => {
const sessionsWithErrors = new Set<string>();
const processedSessions = new Set<string>();
@remorses
remorses / zed-split-diff.jsonc
Created October 11, 2025 22:01
Add support for split diff view and word highlights to Zed
// ~/.config/zed/tasks.json
[
{
"label": "Critique",
"command": "bunx critique --watch",
"shell": {
"program": "sh"
},
"hide": "on_success",
@remorses
remorses / gemini-antigravity-browser-tools.yaml
Created November 18, 2025 21:57
Google Antigravity browser tools (browser subagent)
$schema: "http://json-schema.org/draft-07/schema#"
title: BrowserSubagentTools
type: object
properties:
capture_browser_screenshot:
type: object
description: >-
Capture a screenshot of the current viewport or specific element by index
of a browser page that is already open in Jetski Browser. This can be
used to understand the state of the page or to create a visual artifact
@remorses
remorses / drift.txt
Last active November 23, 2025 14:24
Cartesia websocket speech to text timestamps drift
Audio Stats:
- Sample Rate: 16000 Hz (Fixed)
- Duration: 192.783 s
- Samples: 3084534
[1/3] Running Batch API (Reference)...
stdout | website/src/lib/cartesia-stt.test.ts > Cartesia STT Timestamp Debugging > compares Batch API vs WebSocket API timestamps
Batch finished. Found 439 words.
@remorses
remorses / changes.patch
Created November 26, 2025 20:37
Patch of current changes vs origin/main
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index ab53460..1265510 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -100,6 +100,11 @@ jobs:
node-version: "24"
registry-url: "https://registry.npmjs.org"
+ - name: Setup Bun
+ uses: oven-sh/setup-bun@v1