Skip to content

Instantly share code, notes, and snippets.

View chriscz's full-sized avatar
🍎
vs 🍊

Chris Coetzee chriscz

🍎
vs 🍊
  • Tactivion
View GitHub Profile
@chriscz
chriscz / pi-subagents-fireworks-bug-report.md
Created June 3, 2026 05:18
pi-subagents Bug w Fireworks

acceptance schema rejected by Anthropic-compatible providers (Fireworks): "JSON Schema not supported: could not understand the instance {'required': ['criteria']}"

Disclosure: This report was generated end-to-end by an AI agent — specifically Claude Opus 4.7 (model ID claude-opus-4-7), running inside Claude Code. The human user reported the symptom and pointed the agent at the relevant source trees; the investigation, root-cause analysis, version gathering, suggested fixes, and the prose of this report were all produced by the model. A human has not independently verified every claim — please treat file/line references and the suggested patch as a starting point and confirm against the current repo state before acting on them.

Summary

pi-subagents registers a subagent tool whose input schema embeds an AcceptanceOverride block defined via Type.Unsafe(...). That block uses allOf: [{ anyOf: [{ required: ["criteria"] }, ...] }] to express a "set at least one of these properties"

@chriscz
chriscz / gpg_user_guide.md
Created March 8, 2026 09:21 — forked from johnfedoruk/gpg_user_guide.md
A simple GPG user guide

GPG User Guide

Author: John A. Fedoruk <johnny@johnfedoruk.ca>
Key ID: 8937446102D51067EB90DB6AB229A6E87086AD48
Date: 2019-07-03

Overview

@chriscz
chriscz / dodgetocat_v2.png
Created January 20, 2026 07:36 — forked from cben/dodgetocat_v2.png
Is there an easy way to link image in a GIST ?
dodgetocat_v2.png
@chriscz
chriscz / Notion Numbered Headings-2025-10-06.user.js
Last active January 20, 2026 07:38
Userscript for Numbered Notion Headings
// ==UserScript==
// @name Notion Numbered Headings
// @namespace http://tampermonkey.net/
// @version 2025-10-06
// @description Add hierarchical numbering to Notion headings (H2-H4 + bold-only as H5) using almost only CSS
// @author chriscz (https://github.com/chriscz)
// @match https://www.notion.so/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=notion.so
// @grant none
// ==/UserScript==

Built on-top of phusion/baseimage

Application is mounted at /app

  1. update-app-ids.sh
#!/bin/bash
set -eou pipefail
@chriscz
chriscz / conventional-commits-cheatsheet.md
Created August 15, 2024 05:09 — forked from qoomon/conventional-commits-cheatsheet.md
Conventional Commits Cheatsheet

Conventional Commit Messages

See how a minor change to your commit message style can make a difference.

Tip

Have a look at git-conventional-commits , a CLI util to ensure these conventions, determine version and generate changelogs

Commit Message Formats

Default

@chriscz
chriscz / ascript.sh
Last active July 22, 2024 04:22
Emoji QuickReference
# We generate a quick reference within a code block that can then be moved into your LogSeq
(echo '```' > quickref.md && curl -s https://raw.githubusercontent.com/DailyBotHQ/universal-emoji-parser/main/src/lib/emoji-lib.json | jq 'to_entries | .[] | "\(.key) -> \(.value.keywords | join(", "))"' -r >> quickref.md; echo '```' >> quickref.md)
@chriscz
chriscz / active_record_unpersisted_has_one_fix.rb
Created February 16, 2024 10:15
Fix for unpersisted has_one's through being inaccessible in Rails.
# FIXME Rails has-one through is nil on unpersisted objects (bug)
# https://github.com/rails/rails/issues/33155
module ActiveRecordUnpersistedHasOneFix
extend ActiveSupport::Concern
# Define utility methods
class << self
# @return [Array<String>, nil]
def association_path(model_class, association)
path = []
@chriscz
chriscz / vagrant-ssh-fast.sh
Created September 30, 2023 00:44
Bash script for speeding up vagrant ssh
#!/bin/bash
SOURCE=${BASH_SOURCE[0]}
while [ -L "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
DIR=$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd )
SOURCE=$(readlink "$SOURCE")
[[ $SOURCE != /* ]] && SOURCE=$DIR/$SOURCE # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
done
SCRIPT_DIR=$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd )