Skip to content

Instantly share code, notes, and snippets.

View GhostTypes's full-sized avatar
🎯

GhostTypes

🎯
View GitHub Profile

Serverless Claude Code Instances with Persistent Compute

1. Problem

We need a way to give each Discord channel its own persistent "computer" running Claude Code CLI, where:

  • The computer survives across sessions (disk persists)
  • It wakes up fast when a user sends a message (< 10s, ideally < 5s)
  • It costs near-zero when idle
@gastonmorixe
gastonmorixe / feature-flag-bypass-pure.mjs
Created January 26, 2026 08:04
Claude Code Feature Flag Bypass - Enable swarm features with npx
/**
* Pure Feature Flag Bypass Injector (Zero Disk Writes)
*
* Enables swarm features by intercepting fs.readFileSync calls and injecting
* the tengu_brass_pebble feature flag into the returned settings content.
*
* This version:
* - NEVER writes to ~/.claude/ or any global path
* - NEVER writes log files to disk
* - Only modifies data IN MEMORY
@YuriyGuts
YuriyGuts / link-ollama-models-to-lm-studio.py
Last active March 22, 2026 02:55
Expose Ollama models to LM Studio by symlinking its model files. Just run `python3 link-ollama-models-to-lm-studio.py`. On Windows, run it as admin.
# Source: https://superuser.com/a/1201549
function force-mkdir($path) {
if (!(Test-Path $path)) {
#Write-Host "-- Creating full path to: " $path -ForegroundColor White -BackgroundColor DarkGreen
New-Item -ItemType Directory -Force -Path $path
}}
function Takeown-Registry($key) {