Skip to content

Instantly share code, notes, and snippets.

View kevinold's full-sized avatar

Kevin Old kevinold

View GitHub Profile
@kevinold
kevinold / consultant-model-config.md
Created May 19, 2026 14:00
Setting the model for nicknisi/consultant's gpt5-server MCP

Setting the model for nicknisi/consultant's gpt5-server MCP

The gpt5-server MCP in the nicknisi/consultant plugin does not read a model from an environment variable. It accepts model as a per-call argument, with 'gpt-5' hardcoded as the Zod default and the || fallback in callGPT5.

So you set it one of three ways.

1. Per call (cleanest)

Pass model in the tool args when invoking it directly:

@kevinold
kevinold / overnight-ce.sh
Created March 31, 2026 13:42
overnight-ce.sh — Queue GitHub issues, run each through /slfg overnight. Review PRs over morning coffee.
#!/bin/bash
# overnight-ce.sh — Queue GitHub issues, run each through /slfg overnight.
# Review PRs over morning coffee. ☕
#
# Usage:
# ./overnight-ce.sh # all issues labeled "agent-ready"
# ./overnight-ce.sh --limit 5 # cap at 5
# ./overnight-ce.sh --label "priority" # different label
# ./overnight-ce.sh --dry-run # preview only
#
@kevinold
kevinold / gh-worktree
Created March 17, 2026 01:34
gh-worktree
#!/bin/bash
# gh-worktree - Create or delete a git worktree from a GitHub issue
# Requires: gh CLI (authenticated)
set -e
usage() {
echo "Usage: gh-worktree [-t type] [issue_number] [base_branch]"
echo " gh-worktree -d <issue_number>"
echo ""
@kevinold
kevinold / README.md
Created March 4, 2026 22:32
Claude Code + Compound Engineering GitHub Actions — Label-driven CI agent for automated issue triage, planning, fixing, and resolution

Claude Code GitHub Actions — Label-Driven CI Agent

A set of GitHub Actions workflows that use claude-code-action enhanced with the Compound Engineering plugin to automate issue triage, planning, fixing, and end-to-end resolution — all driven by GitHub issue labels.

Why Compound Engineering?

These workflows go beyond basic Claude Code Action by integrating the Compound Engineering plugin — a set of slash commands that give Claude structured, battle-tested workflows for planning and implementation:

Command What it does Used in
@kevinold
kevinold / trivial_file_upload_service.rb
Created August 8, 2011 15:58
Upload file in Sinatra
require 'rubygems'
require 'sinatra'
require 'fileutils'
# upload with:
# curl -v -F "data=@/path/to/filename" http://localhost:4567/user/filename
# or just go to http://localhost:4567/user/filename with a browser
get '/:name/:filename' do
@kevinold
kevinold / git-flow_test.sh
Created August 19, 2010 16:45
testing git-flow on existing git repo
# In reply to my own question
# (http://jeffkreeftmeijer.com/2010/why-arent-you-using-git-flow/#comment-69995567)
# about using git-flow with existing git repos I experimented with a dummy
# git repo and it appears rather straight-forward
kold@Macintosh-27 $ git init test_git_flow
Initialized empty Git repository in /private/tmp/test_git_flow/.git/
(/tmp)
kold@Macintosh-27 $ cd test_git_flow/
@kevinold
kevinold / ouput.txt
Created February 15, 2025 04:50
Output from successful run of testCompanyNameValidatorAgent.ts
❯ npx tsx scripts/testCompanyNameValidatorAgent.ts
{
role: 'assistant',
content: '{"score":100,"reason":"Apple is a well-known and established technology company famous for its products like the iPhone, MacBook, and Apple Watch. It is widely recognized globally, making it undoubtedly a real company."}',
refusal: null,
tool_calls: [],
parsed: {
score: 100,
reason: 'Apple is a well-known and established technology company famous for its products like the iPhone, MacBook, and Apple Watch. It is widely recognized globally, making it undoubtedly a real company.'
#!/usr/bin/env -S uv run --script
# /// script
# requires-python = ">=3.11,<3.13"
# dependencies = []
# ///
# -*- coding: python -*-
# cd work/crewai-giggs-experiments
# uvx crewai create crew <project-name>
@kevinold
kevinold / safari-open-pages.py
Created September 29, 2023 16:33 — forked from aleks-mariusz/safari-open-pages.py
This script fetches the current open tabs in all Safari windows. Useful to run remotely on your mac when you are at work and want to read a page you have open (remotely) at home but don't remember the url but can log in to your home system on the command line
#!/usr/bin/python
#
# This script fetches the current open tabs in all Safari windows.
# Useful to run remotely on your mac when you are at work and want
# to read a page you have open (remotely) at home but don't remember
# the url but can log in to your home system on the cmmand line
#
import sys

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database