Skip to content

Instantly share code, notes, and snippets.

View shoemoney's full-sized avatar

Jeremy Schoemaker shoemoney

View GitHub Profile
@shoemoney
shoemoney / claude-code-coproc-claude-websockets-natively-in-bash
Last active August 2, 2026 02:53
Warm, persistent Claude Code sessions over a zsh coprocess — measured: same tokens and cost as repeated `claude -p --resume`, but ~37% faster wall clock
Warm, persistent Claude Code sessions over a zsh coprocess — measured: same tokens and cost as repeated `claude -p --resume`, but ~37% faster wall clock
On June 15 2026, Anthropic moved headless `claude -p` (with the Agent SDK and Claude Code GitHub Actions) out of the subscription pool onto a separate metered credit pool billed at API rates — Pro $20/mo, Max 5x $100, Max 20x $200, no rollover. The flag still works exactly as documented; it just stopped being subsidized.
That made me want to know what a headless turn actually costs, and whether holding one session open is cheaper than launching `claude -p` per question.
**I measured it. It is not cheaper — and I was wrong to assume it would be.**
Five sequential context-dependent turns, MCP disabled, Sonnet. Arm A launches a fresh `claude -p` per question and keeps context with `--resume`. Arm B feeds all five turns to one warm `stream-json` session, which is what the coprocess below does.
@shoemoney
shoemoney / Claude911.sh
Last active August 13, 2025 18:45
Auto-Claude - Never wait for user input! WIP v.01
#!/bin/bash
################################################
# ____ _ _ ___ _ _
# / ___| | __ _ _ _ __| | ___ / _ \/ / |
#| | | |/ _` | | | |/ _` |/ _ \ (_) | | |
#| |___| | (_| | |_| | (_| | __/\__, | | |
# \____|_|\__,_|\__,_|\__,_|\___| /_/|_|_|
# ##############################################
@shoemoney
shoemoney / lua_build_macos.sh
Created August 2, 2025 03:00 — forked from zirkuswurstikus/lua_build_macos.sh
A step by step guide on how to install lua, luajit and luarocks from sources on macOS.
# Build & install Lua on macOS
# We will compile Lua 5.1 because it is compatible with openresty/lapis.
# Replace the variables from line 30 ff to install a diffrent version.
# See: https://www.lua.org/manual/5.1/
# NOTE:
# We create a dedicated directory for the Lua stuff to putt all the stuff in.
@shoemoney
shoemoney / README.md
Created July 8, 2025 00:29 — forked from Artefact2/README.md
GGUF quantizations overview
@shoemoney
shoemoney / agent loop
Created May 22, 2025 20:52 — forked from jlia0/agent loop
Manus tools and prompts
You are Manus, an AI agent created by the Manus team.
You excel at the following tasks:
1. Information gathering, fact-checking, and documentation
2. Data processing, analysis, and visualization
3. Writing multi-chapter articles and in-depth research reports
4. Creating websites, applications, and tools
5. Using programming to solve various problems beyond development
6. Various tasks that can be accomplished using computers and the internet
@shoemoney
shoemoney / $ Bash Magic Spellbook.md
Created March 18, 2025 02:29 — forked from Cynnexis/$ Bash Magic Spellbook.md
✨ Bash Magic Spellbook
@shoemoney
shoemoney / change proxy based on ip
Last active February 28, 2025 11:48
change proxy based on ip
#!/bin/bash
# This is a shebang line that tells the system to use the bash interpreter to execute this script.
# =====================================================================
# macOS Network Monitor Script
# =====================================================================
# Purpose: This script continuously monitors the availability of 192.168.0.15
# and dynamically adjusts proxy and DNS settings based on whether the host
# is reachable.
#

Build Squid 6.10 from source

All next steps are made on Debian 12.5.

Remove older versions

  1. Check if we have older Squid versions.
dpkg -l | grep squid
@shoemoney
shoemoney / proxmox.md
Created September 16, 2024 07:40 — forked from scyto/proxmox.md
proxmox cluster proof of concept

ProxMox Cluster - Soup-to-Nutz

aka what i did to get from nothing to done.

note: these are designed to be primarily a re-install guide for myself (writing things down helps me memorize the knowledge), as such don't take any of this on blind faith - some areas are well tested and the docs are very robust, some items, less so). YMMV

Purpose of Proxmox cluster project

Required Outomces of cluster project

@shoemoney
shoemoney / ! Shell scripts
Created July 12, 2024 08:48 — forked from yohanesgultom/! Shell scripts
Random shell scripts
Random shell scripts