Skip to content

Instantly share code, notes, and snippets.

class BackgroundPrefetchDurableJobProcessorTest {
private val PROCESSOR_KEY = "processor_key"
private val CONSTRAINT_NAME = "constraint_name"
private val UUID = "Test"
private val submittedTime = 100000L
private val delta = 1000L
private val runTime = submittedTime + TimeUnit.MINUTES.toMillis(1) + delta
private val processRuntime = runTime + delta
private val delayMins = 1L
#!/bin/bash
set -e
set -x
echo "--- Starting Robust Setup Script from Gist ---"
# STEP 1: Install Ollama
echo "--- Installing Ollama ---"
curl -fsSL https://ollama.com/install.sh | sh
ollama serve &
@jleechan2015
jleechan2015 / workshop_demo.cast
Created February 26, 2026 02:52
Claude Code Workshop Demo
{"version":3,"term":{"cols":80,"rows":24},"timestamp":1772073972,"command":"bash scripts/demo-video.sh","env":{"SHELL":"/bin/bash"}}
[0.012, "o", "╔════════════════════════════════════════════════════════════╗\r\n║ CLAUDE CODE WORKSHOP - PROOF OF COMPLETION DEMO ║\r\n╚════════════════════════════════════════════════════════════╝\r\n\r\n"]
[0.004, "o", "📦 Project: dev-agent-workshop-starter\r\n"]
[0.000, "o", "📍 Location: /Users/jleechan/projects/dev-agent-workshop-starter\r\n"]
[0.000, "o", "\r\n"]
[0.000, "o", "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\r\nPHASE 1: PROJECT STRUCTURE\r\n"]
[0.000, "o", "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\r\n\r\n📁 Project Structure:\r\n"]
[0.004, "o", "./frontend\r\n./frontend/src\r\n./tests\r\n./.claude\r\n./scripts\r\n./src\r\n"]
[0.000, "o", "\r\n📜 CLAUDE.md:\r\n"]
[0.002, "o", "# Product Inventory Tracker\r\n\r\n## Build & Run\r\n\r\n```bash\r\n# Backend\r\nuv sync --all-extras # Install all dependencies\r\nuv
Single smartest addition to the plan right now:
Add a closed-loop “Value Router” (autonomous work allocator) that scores backlog items by expected merge value per agent-hour, then dynamically spawns/pauses/
resumes sessions based on live outcomes.
Why this is the highest-leverage gap:
- You already have backlog auto-claim and decomposition, but it is mostly label/FIFO + fixed capacity (MAX_CONCURRENT_AGENTS = 5) in services.ts.
- You already collect rich telemetry (success/failure, reasons, durations) in observability, but it is not yet feeding scheduling decisions
(observability.md).
@jleechan2015
jleechan2015 / value-router-merge-value.md
Created March 13, 2026 03:36
Value Router proposal and merge-value scoring for Agent Orchestrator

Value Router Proposal for Agent Orchestrator

Single Smartest Addition to the Plan Right Now

Add a closed-loop Value Router (autonomous work allocator) that scores backlog items by expected merge value per agent-hour, then dynamically spawns/pauses/resumes sessions based on live outcomes.

Why This Is the Highest-Leverage Gap

  • You already have backlog auto-claim and decomposition, but it is mostly label/FIFO + fixed capacity (MAX_CONCURRENT_AGENTS = 5) in services.ts.
  • You already collect rich telemetry (success/failure, reasons, durations) in observability, but it is not yet feeding scheduling decisions (observability.md).
@jleechan2015
jleechan2015 / gamma-slides.md
Created March 21, 2026 02:06
jleechanclaw + agento presentation (v10) — for Gamma

jleechanclaw + agento

From idea to merged PR — autonomous AI-powered development


The Problem

  • AI coding tools are powerful, but operationally noisy
  • Every task requires manual handoffs: chat → code → CI → review → fix → repeat
@jleechan2015
jleechan2015 / mcp-mail-gist-proof.json
Created March 27, 2026 08:02
AO lifecycle MCP mail global inbox proof — heartbeat + session lifecycle messages to global:jleechanclaw
{
"description": "AO lifecycle worker MCP mail global inbox proof — heartbeat, session start, and session end messages flowing to global:jleechanclaw inbox",
"proof": {
"test": "MCP mail global inbox poll + heartbeat for AO workers",
"date": "2026-03-27T08:01:45Z",
"mcp_server": "http://127.0.0.1:8765/mcp",
"project_key": "jleechanclaw",
"agent": "jc938prtest",
"messages_sent": [
{
@jleechan2015
jleechan2015 / gist-mcp-mail-proof.md
Created March 27, 2026 08:05
MCP Agent Mail — AO Worker Global Inbox Proof: heartbeat + session start/end messages flowing into global:jleechanclaw

MCP Agent Mail — AO Worker Global Inbox Proof

Test date: 2026-03-27 MCP server: http://127.0.0.1:8765/mcp/ Project key: jleechanclaw Agent: jc938prtest

Workflow

  1. register_agent(project_key="jleechanclaw", agent_name="jc938prtest", program="agent-orchestrator", model="claude")
@jleechan2015
jleechan2015 / pr340-repro.md
Created April 2, 2026 03:08
PR340 repro: evidence bundle v2 policy + tmux proof

PR 340 Repro Bundle — Evidence policy hardening

Repo + branch

Reproduce locally

git clone https://github.com/jleechanorg/agent-orchestrator.git
cd agent-orchestrator

bd-d0la — worktree phase-2 repro

Context

findRepoPathForWorktree phase-2 scans git worktree list from the workspace path upward to / when phase-1 does not find a .git directory (gitfile worktrees).

Verify locally

pnpm --filter @jleechanorg/ao-core exec vitest run src/__tests__/worktree-git.test.ts