Skip to content

Instantly share code, notes, and snippets.

@simbo1905
simbo1905 / SKILL.md
Created December 4, 2026 07:13
Step 5 durable session logbook skill
name step-5-logbook
description Use only when the user explicitly asks to read, create, or update Step 5's durable session logbook. Maintains session-scoped Markdown records under ~/.local/share/opencode/logbooks/<org>/<repo>/<YYYY-MM>/ and keeps tickets short by linking to detailed handover state.

Step 5 Logbook

This skill maintains durable, session-scoped engineering logbooks for Step 5. It is explicitly user-invoked. Do not auto-load it for unrelated work.

A logbook is orientation and recovery state, not authority. Git history, tickets, tests, and the current user instruction always take precedence. If a logbook is stale, say so and verify before acting.

@simbo1905
simbo1905 / rust-build-version.md
Created November 30, 2026 12:54
Compile release versions into Rust binaries with generated source

Compile the release version into Rust without maintaining it in Cargo.toml

A released binary should report the release that produced it. A Cargo package version serves a different purpose: dependency resolution and registry publication. Keeping the product release number in both places creates a manual synchronisation step, and the first forgotten bump ships a binary that reports the wrong release.

Cargo only requires the package name. A package that is not published to a registry can omit version and set publish = false:

@simbo1905
simbo1905 / README.md
Last active November 25, 2026 13:24
Stop your global git config becoming alice@example.com: a git shim that refuses --global behind a loud env var, plus chmod ug-w on the file as a backstop with no override. Most folks never change the settings, yet when developing a tool like git-veil one might switch around for testing; if things accidentally leak into your global settings you a…

Stop your global git config becoming alice@example.com

Most folks never change the settings, yet when developing a tool like git-veil one might switch around for testing; if things accidentally leak into your global settings you are going to find alice@example.com is all over many of your commit repos!

Two layers, in this order.

1. A git shim on PATH, with a loud env-var override

@simbo1905
simbo1905 / README.md
Created November 25, 2026 08:21
git-guard: a PATH shim that stops agents, scripts and LLMs from rewriting your global git identity, with a 32-assertion POSIX sh test suite

git-guard: stop an agent, a script or an LLM from rewriting your git identity

Symptom: you commit as yourself, and an hour later a chunk of the history is authored by Alice <alice@example.com> or Test Owner <owner@example.com>.

Cause, almost always: test tooling decided it "needed" a predictable identity and typed

git config --global user.email alice@example.com
@simbo1905
simbo1905 / leanstral-runpod-signpost.md
Last active November 24, 2026 23:03
Leanstral 1.5: AI-assisted Lean proofs on a single RunPod H200

Run Leanstral 1.5 on a single H200: an AI agent for machine-checked proofs

Leanstral brings AI assistance to formal verification. Mistral's open-weight Lean 4 model can help turn precise specifications into proofs, propose proof steps, and work through errors reported by Lean. That makes it useful for mathematics and for reasoning about software properties, including security invariants.

The powerful part is the feedback loop: Leanstral proposes a proof, then Lean checks it. A successful kernel check gives evidence for the exact theorem stated; the quality and relevance of the specification still matter. With an agent connected to Lean tooling, the model can iterate on the proof and compiler feedback.

Leanstral 1.5 is a 119B-parameter mixture-of-experts model with 6.5B active parameters per token, released under Apache 2.0. Its model card describes a 256k-token context and recommends no more than 200k; this run configured 8,192 tokens. We brought the current weights up on RunPod and got a Lean-checke

@simbo1905
simbo1905 / pow-tarpit-public.md
Last active November 24, 2026 00:13
The tar-pit form endpoint: memory-hard proof-of-work instead of a database

The tar-pit form endpoint: proof-of-work instead of a database

The problem

You have a public, unauthenticated form — "register your interest", "join the waitlist", "send feedback" — that writes a tiny record somewhere. It attracts bots. The usual answers are a captcha, a rate limiter, or an account system. Each costs you something: a vendor, a proxy to run, a login you don't want, and a database you now have to keep alive, patch, back up and defend.

@simbo1905
simbo1905 / pow-tarpit-gist.md
Created November 23, 2026 22:54
PoW tarpit spec for interest endpoint

PoW tarpit for the interest endpoint — the simple version

Goal: anyone can POST an interest row, but each POST must cost the sender real work (memory-hard), so bulk spam is expensive for them and ~free for us.

The pieces, in plain words

  • Nonce (challenge): 32 random bytes the server hands out with each GET /challenge. Random = cannot be precomputed or reused from yesterday.
  • Argon2id: a memory-hard hash (RFC 9106). Unlike SHA-256, GPUs/ASICs get
@simbo1905
simbo1905 / README.md
Created November 22, 2026 08:43
vibe skill: make a GitHub Pages mdBook site LLM-friendly and SEO-friendly (llms.txt, sitemap.xml, robots.txt, plain.txt single-file book, print page, MathJax math that survives lynx and no-JS readers via the W3C noscript pattern, canonical + Open Graph, docker preview, cached CI). Fully worked MIT example: git-veil.

Make your docs site readable by LLMs, lynx and search engines - as a build step

A skill for coding agents and a recipe for humans. Turn an ordinary mdBook documentation site published on GitHub Pages into:

Capability What ships
LLM-friendly llms.txt (llmstxt.org v2) + plain.txt: the whole book as one plain-text file, build-generated so it can never drift
SEO-friendly robots.txt (RFC 9309), sitemap.xml (sitemaps.org 0.90, absolute URLs), per-page canonical link, meta description, Open Graph tags
@simbo1905
simbo1905 / standdown_gist.md
Last active November 14, 2026 15:08
git-backup stand-down: vibe takeover tickets 41-46 pending work + the sign_release.tl v-prefix bug (fix + sweep)

git-backup takeover — STAND-DOWN handover (vibe session vibe-20261112-gitbackup-takeover, abandoned 2026-11-13)

The vibe ticketing DB (~/.config/mistral-vibe/...) carries tickets 41-46 under rollout vibe-20261112-gitbackup-takeover. This gist is the working memory of what was in flight when the session stood down.

THE URGENT BUG FOUND AT STAND-DOWN (fix FIRST)

just release-sign 0.20261113.2 failed: gh release download v0.20261113.2 — tooling/lib/sign_release.tl fetch() prepends v to the version to make a tag name. THIS REPO HAS NO v PREFIX ANYWHERE: tags are the bare 0.YYYYMMDD[.N] semver-ish scheme (tags on origin: 0.20261112.9, 0.20261113, 0.20261113.2, 0.20261114).

  • Fix tooling/lib/sign_release.tl (the fetch in the SignRelease.fetch function, around line 59-66) to download from the tag AS-NAMED (gh release download 0.20261113.2 ...).
  • SWEEP THE WHOLE REPO for the same bug class: any other tooling that fabricates a v<version> tag/release/asset name (search `
@simbo1905
simbo1905 / gist_mistral_models.md
Created November 1, 2026 07:52
Switching OpenCode default build/plan models to Mistral (tested on OpenCode v2.2.1)

Switching OpenCode default build/plan models to Mistral (tested on OpenCode v2.2.1)

Tested on OpenCode v2.2.1.

Prerequisites

You must add the Mistral provider and supply an API key before these model IDs resolve. In OpenCode, run /connect, choose mistral, and enter your Mistral API key (or set MISTRAL_API_KEY in your environment). Without this, mistral/... model IDs will not appear in opencode models.