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 / INSTALL.md
Last active February 5, 2026 15:38
Claude Code loop functions for automated batch execution with file locking

Claude Code Loop Functions - Installation

Copy this entire file and paste it to Claude Code (or any AI coding agent) to install these functions.


Install Prompt

Install the Claude Code loop functions from this gist: https://gist.github.com/johnlindquist/cec1a33079189767d2f14203ed1306ca
@johnlindquist
johnlindquist / gist:1d2775b4948e88e0b7fd02155c6eee7f
Last active February 1, 2026 00:57
Claude Memory: Advanced Claude Code Plugin - Fork Tournaments, Persistent Memory, Output Airlock, Evidence Packs, MCP Data Firewall
# Claude Memory Plugin
A Bun/TypeScript implementation of 5 powerful but rarely-used Claude Code capabilities.
## Features Built
### 1. Fork Tournament (`src/fork-tournament/`)
Parallel exploration with auto-dossiers and winner selection.
**Files:**
@johnlindquist
johnlindquist / funced.zsh
Created January 30, 2026 19:31
funced - Edit zsh functions in your editor at the definition line
funced () {
[[ -z "$1" ]] && {
echo "Usage: funced <function_name>"
return 1
}
local func="$1"
[[ $(whence -w "$func" 2>/dev/null) != *function* ]] && {
echo "'$func' is not a function"
return 1
}
@johnlindquist
johnlindquist / demo13-diagram.md
Created January 29, 2026 03:00
Vercel-Native Agent Hub (Demo 13) - Architecture diagram showing 15 specialized agents orchestrating TDD-based Vercel app development with quality gates

Vercel-Native Agent Hub (Demo 13) - Architecture Diagram

This diagram illustrates the complete flow of the Vercel-Native Agent Hub system, which orchestrates 15 specialized agents to build Vercel-native applications using a TDD workflow with quality gates.

System Overview

  • 15 Total Agents: 1 PM Hub + 7 Core Advisors + 2 Optional Advisors + 5 Builders
  • Capability Scoping: Each agent has specific tool permissions (no dangerously-skip-permissions)
  • Quality Gates: Architect Gate, QA Gate, and GitOps verification
  • TDD Workflow: Tests are written first, then implementation, then verification
@johnlindquist
johnlindquist / agent-hub-flow.md
Created January 29, 2026 01:28
Agent Hub Flow Diagram - Multi-agent orchestration system from 12-agent-hub.ts

Agent Hub Flow Diagram

This diagram illustrates the multi-agent orchestration system from 12-agent-hub.ts.

Main Flow Diagram

flowchart TB
    subgraph User["User Input"]
        U[("User")]
@johnlindquist
johnlindquist / workflow-oidc-auth-report.md
Created January 26, 2026 23:39
Vercel AI Gateway OIDC Authentication Failure in Workflow DevKit - Root Cause Analysis

Vercel AI Gateway OIDC Authentication Failure in Workflow DevKit

Executive Summary

When using the Vercel AI SDK with Workflow DevKit, AI Gateway authentication fails with GatewayAuthenticationError even when VERCEL_OIDC_TOKEN is present in the environment. The root cause is that the @vercel/oidc package requires Node.js fs module for token validation/refresh, which is not available in the workflow sandbox.

Environment

  • AI SDK Version: 6.0.50 (also tested with 5.0.76)
  • @ai-sdk/gateway: 3.0.23
@johnlindquist
johnlindquist / OIDC-DEBUG-REPORT.md
Created January 26, 2026 22:08
Vercel AI Gateway OIDC Authentication in Workflow DevKit - Debugging Report

Vercel AI Gateway OIDC Authentication in Workflow DevKit

Problem

When using the Vercel AI SDK with Workflow DevKit and vercel dev, OIDC authentication fails with:

GatewayAuthenticationError: Unauthenticated request to AI Gateway.

To authenticate, set the AI_GATEWAY_API_KEY environment variable with your API key.
@johnlindquist
johnlindquist / 14-correct-quick-announcement.md
Last active January 22, 2026 00:51
Workflow Custom Serialization: Complete Guide with Real Tests

Twitter Thread: Correct - Quick Announcement (ACCURATE)

Tweet 1 (Hook)

Workflow v4.0.1-beta.49: Custom class serialization.

Pass an Order to start() - arrives as a real Order. Return an Order from a step - workflow receives it with all methods.

Your business logic stays in classes, not scattered across plain objects.

@johnlindquist
johnlindquist / custom-serialization-blogpost.md
Last active January 21, 2026 23:16
Custom Class Serialization in Workflow v4.0.1-beta.49 - Before & After Guide + Real vs Simulated Tests

Custom Class Serialization in Workflow v4.0.1-beta.49

The Problem: Losing Your Domain Logic

Before Workflow v4.0.1-beta.49, building durable functions meant making a painful choice: either flatten your domain objects to plain JSON, or manually reconstruct them in every step.

Before: The Manual Approach ❌

class Order {
@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