Skip to content

Instantly share code, notes, and snippets.

@nichoth
nichoth / gist:dcfe7289b2da8557c8ea67ec9ebe0cc1
Created June 23, 2026 22:11 — forked from sjennings/gist:6ae7d58d847e2f23873c7fc3b255f03d
Polytoken coding facet w/adversarial review
---
name: lum-execute
polytoken:
tools:
- ask_user_question
- file_read
- file_edit_search_replace
- file_write
- glob
- grep
---
name: code-review
description: Review a pull request (or the current branch) with TWO parallel reviewer subagents on gpt-5.5(high) — a standard reviewer and an adversarial reviewer. Merge their findings only after both return; deliver an in-chat summary always and post to the PR only with consent. When reviewing your own branch, iterate on the feedback and re-invoke until no findings remain.
disable-model-invocation: false
tags:
- productivity
polytoken: true
---
# Code Review
@nichoth
nichoth / CODEX.md
Created May 30, 2026 23:00 — forked from DMontgomery40/CODEX.md
Ralph audit loop: Codex CLI read-only code audit runner

Ralph Audit Agent Instructions (OpenAI Codex)


Safety Notice (Customize)

If this codebase is production, handles money, or touches sensitive data: treat this audit loop as a high-risk operation. Run with least privilege, avoid exporting long-lived credentials in your shell, and keep the agent in read-only mode.


{
"did": "did:plc:s53e6k6sirobjtz5s6vdddwr"
}
@nichoth
nichoth / random.sh
Created May 17, 2026 08:06
random string
openssl rand -base64 32
@nichoth
nichoth / README.md
Last active May 17, 2026 11:36
Cloudflare + images

CF + Images

Use a blurry placeholder for images. It's a little bit harder when the images are unknown in advance, so we generate the blurhash string at runtime, and use several caches for the HTML and blurhash string.

Blur-Up

We use the @substrate-system/blur-hash web component to do the blur-up technique.

@nichoth
nichoth / artificial-productivity.md
Last active August 9, 2026 16:35
artificial productivity

Artificial Productivity

How to use these tihngs.

Like most people, I have had success with splitting things into a planning stage followed by an implementation stage. The implementation phase can be kind of synchronous/interactive, or can be a fully auto Ralph loop.

1. The Plan

# Conformance suites: what they are, when they help, how to build one
A conformance suite is a third axis of testing — distinct from unit tests
and integration tests. Where unit tests prove that a function does what
its body says, and integration tests prove that subsystems compose, a
conformance suite proves that **what the public API claims it does
matches what it actually does, against an external ground truth**.
This document explains the pattern, when it earns its keep, and how to
set one up. The case study is ferrotorch (a pure-Rust PyTorch
@nichoth
nichoth / ralph.md
Last active April 25, 2026 04:27
ralph loop

ralph loop

With "reasoning" escalation.

Bash Script

#!/bin/bash
set -o pipefail  # catch CLI failures
@nichoth
nichoth / fonts.md
Created April 21, 2026 22:05
fonts