Skip to content

Instantly share code, notes, and snippets.

View johnlindquist's full-sized avatar
💭
Educating 👨🏻‍🏫

John Lindquist johnlindquist

💭
Educating 👨🏻‍🏫
View GitHub Profile
@johnlindquist
johnlindquist / macos-key-repeat.md
Created January 20, 2026 06:13
Fast key repeat settings for macOS

Fast Key Repeat Settings for macOS

These settings make keys repeat much faster than the default System Preferences allows.

Current Settings

# Key repeat rate (lower = faster, default is 2)
defaults write NSGlobalDomain KeyRepeat -int 1
@johnlindquist
johnlindquist / bsp-split-standalone.sh
Last active March 3, 2026 21:38
WezTerm + Claude Code: Multi-Session Workflows with BSP Layouts
#!/bin/bash
# BSP Split: Find largest pane IN CURRENT TAB and bisect it
# Get current pane from environment (set by WezTerm for shells running in panes)
if [ -n "$WEZTERM_PANE" ]; then
CURRENT_PANE="$WEZTERM_PANE"
else
# Fallback: use the pane passed as argument
CURRENT_PANE="$1"
fi
@johnlindquist
johnlindquist / wezterm-config-showcase.md
Created January 12, 2026 21:16
WezTerm Power User Config - Features & Highlights

WezTerm Power User Config

A modular WezTerm configuration that combines the best of tmux, Zellij, and iTerm2.

Highlights

Zellij-Style Auto-Layouts

No more manual splitting decisions. Set a layout mode and let WezTerm figure out the rest.

| Key | Action |

@johnlindquist
johnlindquist / CLAUDE.md
Created January 12, 2026 21:14
WezTerm Power User Config - Zellij-style layouts, Smart Pickers, External Triggers, Session Persistence

WezTerm Power User Guide

A guide to WezTerm workspaces, pane management, and productivity tricks for users coming from iTerm2.

Modular Config Structure

The config is split into logical modules for maintainability:

~/.config/wezterm/
@johnlindquist
johnlindquist / opencode-plugin-logging.md
Created January 12, 2026 02:20
OpenCode Plugin Logging Infrastructure - What we learned

OpenCode Plugin Logging Infrastructure

What We Did

Added comprehensive session-based file logging to all 8 OpenCode plugins in .opencode/plugin/. Each plugin now logs every hook invocation, whether it triggered an action or was skipped.

Files Created/Modified

  1. .opencode/lib/logger.ts - Shared logging utility
  2. All 8 plugins - Added logTriggered() and logSkipped() calls to every hook
@johnlindquist
johnlindquist / opencode-plugins-guide.md
Created January 11, 2026 20:10
OpenCode Plugins Guide - Complete reference for writing plugins with hooks, custom tools, and event handling

OpenCode Plugins Guide

A comprehensive guide to writing plugins for OpenCode that extend agent behavior with hooks, custom tools, and event handling.

Quick Start

  1. Create a TypeScript file in .opencode/plugin/ (project) or ~/.config/opencode/plugin/ (global)
  2. Export a named plugin function
  3. Restart OpenCode
@johnlindquist
johnlindquist / claude-zsh-functions.md
Last active January 23, 2026 05:26
Loading ZSH Functions into Claude Code

Loading ZSH Functions into Claude Code

Make your shell functions and aliases available to Claude Code's Bash tool.

Setup

1. Create the Shell Init Script

Create ~/.claude/shell-init.sh:

@johnlindquist
johnlindquist / claude-hidden-flags.md
Last active January 31, 2026 09:18
Claude Code CLI Hidden Flags (v2.1.1)

Claude Code CLI Hidden Flags (v2.1.1)

These flags are hidden from claude --help but are available in the CLI. Found by searching the compiled binary source.

Hidden Flags

Flag Description
-d2e, --debug-to-stderr Enable debug mode (to stderr)
@johnlindquist
johnlindquist / gastown-vs-swarm-tools.md
Created January 8, 2026 04:25
Gas Town vs Swarm-Tools: Multi-Agent AI Orchestration Compared

Gas Town vs Swarm-Tools: Multi-Agent AI Orchestration Compared

Two ambitious open-source projects tackling the same fundamental problem: how do you coordinate multiple AI coding agents to work together effectively?

TL;DR

Aspect Gas Town Swarm-Tools
Author Steve Yegge Joel Hooks
Language Go TypeScript/Bun
@johnlindquist
johnlindquist / OPENCODE_SHORTCUTS.md
Created December 31, 2025 17:31
OpenCode Keyboard Shortcuts Reference

OpenCode Keyboard Shortcuts

A comprehensive reference for OpenCode keyboard shortcuts.

Leader Key: Ctrl+X (used as <leader> prefix for many shortcuts)

Quick Reference - Most Used

Action Shortcut