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 / 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 8, 2026 18:09
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
@johnlindquist
johnlindquist / vercel-workflow-best-practices.md
Created December 17, 2025 21:19
Vercel Workflow SDK Best Practices

Vercel Workflow SDK Best Practices

A comprehensive guide to building durable, production-ready workflows with the Vercel Workflow SDK.

Quick Reference

Pattern Use Case Key Feature
Step Functions Atomic, retriable operations 'use step' directive
Webhooks Human-in-the-loop, external triggers Workflow pauses until response
// Name: Get Current Page as Markdown
// Shortcut: opt t
import "@johnlindquist/kit"
const url = await getActiveTab()
const response = await get(`https://into.md/${url}`)
const text = `
<site>
<url>
@johnlindquist
johnlindquist / reminders-schedule.md
Created December 12, 2025 18:27
UserPromptSubmit Hook Reminder Schedule

UserPromptSubmit Hook Reminder Schedule

Quick Summary

After 3 UserSubmitPrompts, the system shows reminders every 3 prompts, cycling through 5 different reminder types. Each reminder is combined with a Tools Refresh notification.

Complete Schedule (Prompts 1-30)

Prompt Type Reminder Index Content

Performance Review Rubric (User Memory)

Your performance review is coming up. Here is your rubric.

You are evaluated on how reliably you follow the installed Skills and Claude Code best-practice workflows.

Mindset: You are trusted. We trust your judgment, your creative decisions, and your ability to explore ideas and solutions. Follow the gates, but do NOT stop to ask permission at each step. Plan → Execute → Verify → Report. Take liberty to explore promising approaches. Only ask when genuinely blocked or facing destructive/irreversible actions.

NOTE:

  • This is USER memory. Keep it general + short.
@johnlindquist
johnlindquist / claude-hooks-auto-refresh.md
Last active December 10, 2025 18:07
Claude Code Hooks: How to Auto-Refresh Context Every N Prompts

Claude Code Hooks: Auto-Refreshing Context Every N Prompts

This explains how to build a system that automatically re-injects important context (like a tools list) into Claude Code conversations every N prompts.

The Problem

Claude Code's SessionStart hook runs once at the beginning of a conversation. In long sessions, that initial context gets pushed far back and the AI may "forget" about it.

Example: You inject a list of 222 custom tools at session start. By prompt 20, the AI stops using them because they're no longer in recent context.

@johnlindquist
johnlindquist / claude-bundle-1765389302141.md
Created December 10, 2025 17:55
Claude Code Hooks: How to Auto-Refresh Context Every N Prompts

CLAUDE.md Bundle

Generated: 2025-12-10T17:55:02.141Z Source: /Users/johnlindquist/.claude/CLAUDE.md Files included: 7


/Users/johnlindquist/.claude/CLAUDE.md

Core