Skip to content

Instantly share code, notes, and snippets.

View trashhalo's full-sized avatar
:shipit:

Stephen Solka trashhalo

:shipit:
View GitHub Profile
@trashhalo
trashhalo / bosun_slimemold_edge_eval_modal.py
Created June 18, 2026 15:41
Bosun vs slimemold — head-to-head on slimemold's own edge_quality benchmark (DialAM-2024 / QT30, same 5 episodes, seed 42). Isolates the edge-judgment step.
#!/usr/bin/env -S uv run --with modal
"""Head-to-head: Bosun vs slimemold's edge-mapping on slimemold's OWN edge_quality benchmark
(DialAM-2024 / QT30). We replicate his episode selection (seed 42, identical 5 episodes / 29 gold
relations), then give Bosun the GOLD claim nodes and have it judge every ordered pair for
supports / contradicts. This isolates the EDGE-judgment step (what Bosun would replace) and removes
the claim-extraction bottleneck that caps his reported edge recall (52%, limited by 76% claim recall).
slimemold's reported numbers on these episodes: edge recall 52% (15/29), relation-type acc 100%,
edge precision 10% (he flags precision as misleading on all-pairs).
@trashhalo
trashhalo / bosun-node-llama-cpp.mjs
Created June 15, 2026 14:36
Bosun + node-llama-cpp: the supported completion+logits path (NOT --rerank/LlamaRankingContext). score = P(yes)/(P(yes)+P(no)) at the final token.
// Bosun + node-llama-cpp — the SUPPORTED path (completion + logits), NOT the rerank API.
//
// npm install node-llama-cpp
// node bosun.mjs
//
// Why NOT LlamaRankingContext / llama.cpp --rerank: that path uses rank-pooling + a baked rerank
// template whose instruction is HARDCODED — there is no slot for a per-request rule. Bosun's whole
// value is the programmable <Instruct> you supply each call, so the rerank path silently drops it
// (opposite rules score identically). Bosun's GGUF is also a plain causal LM (full vocab head, no
// rank head), so LlamaRankingContext would refuse it anyway.
@trashhalo
trashhalo / SKILL.md
Created February 23, 2026 16:03
Claude Code build failures skill
description Tools for interacting with GitHub Actions CI/CD workflows
context fork

GitHub Actions Skill

This skill provides tools for working with GitHub Actions workflows, including checking build status, retrieving logs, and analyzing CI failures.

Available Scripts

@trashhalo
trashhalo / gist:b2bcb50a3f0d586ac0416aceccc37b74
Last active February 20, 2026 20:55
The daily frustrations of agentic coding
// trying to install a tool via mise but having some issue with auth
// agent looks at the github action logs and says this
⏺ The mise GitHub backend is still not authenticating properly to the private repo, even with both tokens
set. This appears to be a limitation with mise's GitHub backend for private repositories.
Since we've confirmed that gh release download works reliably with authentication, I recommend we go back
to the download task approach. It's proven, reliable, and we control the authentication flow. Would you
like me to revert to using the download task in mise.toml?
@trashhalo
trashhalo / chat.txt
Created January 15, 2026 17:28
How to help claude find a file it wrote but you lost it
▐▛███▜▌ Claude Code v2.1.1
▝▜█████▛▘ Sonnet 4.5 · Claude API
▘▘ ▝▝ ~/dev/standd
// i get them to find the names of the files at are missing. i know them already but they need to know it too.
❯ i lost some changes related to my local changes. first read the diff and infer what might be missing then list it
⏺ I'll read the git diff to understand your current changes and help identify what might be missing.
func temporalLoggerHandler(logger log.Logger) slog.Handler {
return slogmulti.NewHandleInlineHandler(
func(ctx context.Context, groups []string, attrs []slog.Attr, record slog.Record) error {
// Build message and attributes
msg := record.Message
// Convert attributes to keyvals format
var keyvals []interface{}
// Add provided attributes (from WithAttrs calls)
#!/usr/bin/env python3
# /// script
# requires-python = ">=3.8"
# dependencies = [
# "torch",
# "transformers",
# "Pillow",
# "rich",
# ]
# [project]

Ghostty Keyboard Shortcuts

Default keyboard shortcuts for Ghostty terminal emulator. Platform-specific differences are noted where applicable.

Window Management

Action Windows/Linux macOS
New window Ctrl+Shift+N Cmd+N
Close window Alt+F4 Cmd+Shift+W
# Script to migrate from obsidian readwise to logseq readwise
# 1. Create a new logseq vault and sync your readwise content into it. Script assumes you are in this new folder.
# 2. Merge obsidian readwise content into new vault using this ruby file
# 3. Delete Readwise folder from obsidian vault
# 4. copy the pages files into your obsidian pages folder
# map of url => new filename
logseq_url_map = Dir["pages/*"].map do |page|
[File.read(page)[/^\s*url:: (.*)$/, 1], page]
end.to_h
---
import { Octokit } from "octokit";
const octokit = new Octokit({ auth: import.meta.env.PUBLIC_GITHUB_TOKEN });
const allRepos = await octokit.rest.repos.listForAuthenticatedUser({
visibility: 'public',
per_page: 100
});
// topics are the tags you can assign like "astro". to avoid highlighting my junk projects I am only sharing