Skip to content

Instantly share code, notes, and snippets.

@jsl
jsl / rpotd_anthropic.md
Created October 22, 2026 10:30
Routing Policy of the Day - Anthropic

Subagent routing (owner policy, 2026-10-22)

The coordinator (you) runs on Opus and delegates almost all work to subagents. Pick each subagent's model and effort by what the task needs:

Model and effort Use it for
Sonnet 5.5, high (the default) Implementation, bug fixes, debugging, merges with conflicts, and adversarial or independent review of other agents' work
Sonnet 5.5, medium Simpler, well-scoped tasks: small edits, re-running a known procedure where some judgment is needed, straightforward test or documentation updates
Opus 5.5, medium Design, specification and high-level reasoning: architecture or engine design, choosing between approaches, writing a spec or proposal
Haiku Purely mechanical work: running a fixed command list and reporting
@swannodette
swannodette / gist:3217582
Created July 31, 2012 14:52
sudoku_compact.clj
;; based on core.logic 0.8-alpha2 or core.logic master branch
(ns sudoku
(:refer-clojure :exclude [==])
(:use clojure.core.logic))
(defn get-square [rows x y]
(for [x (range x (+ x 3))
y (range y (+ y 3))]
(get-in rows [x y])))
@mchampine
mchampine / pwprot.clj
Created March 13, 2011 19:13
Strong password hasher/verifier for Clojure - incorporating salt and iterations
(ns pwprot
(:import (java.security MessageDigest Security)))
;;generate n random chars
(defn gensalt [n]
(let [charseq (map char (concat
(range 48 58) ; 0-9
(range 97 123)))] ; 0-z
(apply str
(take n
@plentz
plentz / gist:863523
Created March 10, 2011 03:20
easy way to get a ruby segmentation fault
~/Projects/opensource $ rails -v
ruby Rails 3.0.5
~/Projects/opensource $ ruby -v
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin10.6.0]
~/Projects/opensource $ rails new foo
create
create README
...
create vendor/plugins/.gitkeep
~/Projects/opensource $ cd foo/