Skip to content

Instantly share code, notes, and snippets.

@remorses
remorses / single-server-multi-directory.md
Created March 7, 2026 16:13
How OpenCode uses one server process for all repositories via x-opencode-directory header

Single Server, Multiple Directories

How OpenCode uses one server process for all repositories instead of spawning a separate server per project.

The problem

If you spawn a new opencode serve per repository, you end up managing N server processes, N ports, N health checks — and the client needs to track which server maps to which project. This doesn't scale.

How OpenCode solves it

@remorses
remorses / ralph-loop.md
Created March 7, 2026 09:26
Claude Code ralph-loop markdown from anthropics/claude-code via opensrc
description argument-hint allowed-tools hide-from-slash-command-tool
Start Ralph Wiggum loop in current session
PROMPT [--max-iterations N] [--completion-promise TEXT]
Bash(${CLAUDE_PLUGIN_ROOT}/scripts/setup-ralph-loop.sh:*)
true

Ralph Loop Command

Execute the setup script to initialize the Ralph loop:

@remorses
remorses / multi-bundler-rsc-abstraction.md
Created March 6, 2026 18:17
Spiceflow: Multi-bundler RSC abstraction plan (Vite + Parcel)

Multi-Bundler RSC Abstraction Plan

Abstract spiceflow's React Server Components implementation so it works with both Vite and Parcel (and potentially other bundlers in the future).


Current State: Where Vite is Coupled

The spiceflow RSC implementation has 3 layers of Vite coupling:

@remorses
remorses / platform-abstraction-plan.md
Last active March 6, 2026 12:53
Kimaki Platform Abstraction Plan — Discord + Slack

title: Platform Abstraction Plan — Discord + Slack description: | Plan for abstracting Discord-specific APIs into a platform-independent KimakiAdapter interface that supports both Discord and Slack. prompt: | Explored all 48 files with discord.js imports across discord/src/. Read the chat SDK source (opensrc/repos/github.com/vercel/chat/packages/chat) including types.ts, chat.ts, thread.ts, channel.ts, and index.ts. Compared chat SDK's Adapter interface with Kimaki's needs.

@remorses
remorses / profano-help.txt
Created March 4, 2026 19:35
profano --help output
profano/0.0.1
Usage:
$ profano <files...>
Commands:
<files...> Analyze .cpuprofile files and print top functions by self-time
@remorses
remorses / profano-output.txt
Created March 4, 2026 19:23
profano: CPU profile analysis of kimaki e2e test (kimaki-digital-twin)
Duration: 15.65s
Samples: 1231 active / 10157 total (87.9% idle)
Samples %Active Function Location
─────── ─────── ────────────────────────────────────────── ────────────────────────────────
133 10.8% readFileUtf8 (native)
79 6.4% prepare nm/libsql/index.js:125
74 6.0% internalModuleStat (native)
55 4.5% read (native)
49 4.0% compileSourceTextModule esm/utils:343
@remorses
remorses / event-listener-runtime-migration-plan.md
Created March 1, 2026 21:54
Kimaki event listener runtime migration plan

title: Event Listener Runtime Migration Plan description: >- Detailed migration blueprint for moving Kimaki Discord session handling to one long-lived OpenCode event listener per thread runtime with centralized Zustand state updates. Hardened with feasibility review, concrete code snippets, file-by-file refactor map, and staged acceptance criteria. prompt: | [38m since last message | UTC: 2026-03-01 15:39:12 UTC | Local

@remorses
remorses / gtui-relaxed-snapshot.txt
Created February 12, 2026 21:12
gtui (zele) email client with List spacingMode='relaxed'
> Search emails... All Accounts ▾
Today
›○ Re: Export Framer components as React? │ Re: Export Framer components as React? ▲
Tommy D R <tommy@unframer.co> │ █
@remorses
remorses / relaxed-mode-snapshot.txt
Created February 12, 2026 21:08
termcast List spacingMode='relaxed' snapshot
Relaxed Mode ─────────────────────────────────────────────────────────────
> Search...
With Icons
›▯ Report [Draft]
Q4 financial summary
@remorses
remorses / 01-list-view.txt
Created February 10, 2026 18:02
zele termcast TUI - email extension screenshots
> Search emails... All Accounts ▾
Today ▲
›▲ Cancellation reason info@notaku.site █│ Cancellation reason
▲ New Notification for Built with Opus 4.6: █│