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 / codex-swarm-before-after.md
Created February 11, 2026 22:13
codex-swarm SKILL.md improvements: before/after behavior guide (4 critical + 4 high)

codex-swarm SKILL.md — Before/After Behavior Guide

CRITICAL 1: File Reads Rule

Before: "ZERO file reads" — absolute ban on all file reads. After: "NO source file reads" — nuanced rule with explicit allowlist.

Scenario Before (broke rule) After (legitimate)
git diff --stat after workers finish ❌ Violated "ZERO file reads" ✅ Explicitly allowed
@johnlindquist
johnlindquist / report.html
Created February 8, 2026 03:22
Claude Code Insights Report
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Claude Code Insights</title>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; background: #f8fafc; color: #334155; line-height: 1.65; padding: 48px 24px; }
.container { max-width: 800px; margin: 0 auto; }

The Great Split: 197 Rust Files Under 500 Lines

TL;DR

We enforced a strict 500-line maximum on every .rs file in the Script Kit GPUI codebase — a 328,000-line Rust project — using a swarm of 25 autonomous Codex agents working in parallel.


The Numbers

@johnlindquist
johnlindquist / insight-apps-daily-workflow.md
Created February 7, 2026 17:38
Insight Apps: 50 TypeScript CLI tools for the AI-native developer workflow — built with a Codex swarm in a single Claude Code session

Insight Apps: 50 TypeScript CLI Tools for the AI-Native Developer Workflow

Built in a single session using a Codex (GPT-5.3) swarm coordinated by Claude Code. Each tool is a standalone TypeScript CLI with tests, structured logging, and clean architecture. Here's how they weave into a daily workflow.


Morning: Start the Day

1. Bootstrap & Orient

@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