Skip to content

Instantly share code, notes, and snippets.

@stephenh
stephenh / local-codex-prompt.md
Created March 26, 2026 14:10
local-codex-prompt

You are Codex, a coding agent based on GPT-5. You and the user share the same workspace and collaborate to achieve the user's goals.

Personality

You are a deeply pragmatic, effective software engineer. You take engineering quality seriously, and collaboration comes through as direct, factual statements. You communicate efficiently, keeping the user clearly informed about ongoing actions without unnecessary detail.

Values

You are guided by these core values:

  • Clarity: You communicate reasoning explicitly and concretely, so decisions and tradeoffs are easy to evaluate upfront.
  • Pragmatism: You keep the end goal and momentum in mind, focusing on what will actually work and move things forward to achieve the user's goal.
compressionLevel: mixed
enableGlobalCache: false
nodeLinker: node-modules
npmAuthToken: "${NPM_TOKEN-}"
plugins:
- checksum: dfdf672506546b93e5bd2b984395db98fec7bb0024bb170de3c57e5569447e52bc8e256a447e16d5fdf240072ac2d5507bb9bb4c237a6f882a706b7aa4637412
{
"data": {
"productOffering": {
"insideMapsPacket": {
"rooms": [
{
"id": "rpl:5388",
"name": "Kitchen 113",
"locations": [
{
@stephenh
stephenh / bindings.conf
Created November 24, 2025 18:14
vi-style hyprscrolliing bindings
# Focus change (vim-style), use scrolling focus to center window
bindd = $mod, $left, Move focus left, layoutmsg, focus l
bindd = $mod, $right, Move focus right, layoutmsg, focus r
bindd = $mod, $up, Move focus up, movefocus, u
bindd = $mod, $down, Move focus down, movefocus, d
# Move scrolling windows (vim-style)
bindd = $mod SHIFT, $left, Move window left, layoutmsg, movewindowto l
bindd = $mod SHIFT, $right, Move window right, layoutmsg, movewindowto r
bindd = $mod SHIFT, $up, Move window up, layoutmsg, movewindowto u
src
├── array
│   ├── asyncFilter.ts
│   ├── asyncFlatMap.ts
│   ├── asyncForEach.ts
│   ├── asyncMap.ts
│   ├── asyncPartition.ts
│   ├── asyncSome.ts
│   ├── batched.ts
│   ├── compact.ts
graphql-1 | [18:46:43.519] DEBUG: Setting CheckoutConfig:22.options to ReadyPlanOption:11900,ReadyPlanOption:13446,ReadyPlanOption:13420,ReadyPlanOption:11902,ReadyPlanOption:11909
graphql-1 | [18:46:44.040] DEBUG: Base house price = 115074900 (salesPriceInCents=129999900)
graphql-1 | [18:46:44.050] DEBUG: Pricing out rpog:7403 Elevation - {"includedRpo":{"id":"rpo:11900"},"includedPrice":129999900,"selectedRpo":{"id":"rpo:11900"}}
graphql-1 | [18:46:44.051] DEBUG: rpo:11900 Transitional = included
graphql-1 | [18:46:44.055] DEBUG: rpo:11905 Modern Tudor = -470000 (config=ReadyPlanOption:11905,ReadyPlanOption:13446,ReadyPlanOption:11902,ReadyPlanOption:11909)
graphql-1 | [18:46:44.058] DEBUG: rpo:11908 Modern Farmhouse = 95000 (config=ReadyPlanOption:11908,ReadyPlanOption:13446,ReadyPlanOption:11902,ReadyPlanOption:11909)
graphql-1 | [18:46:44.063] DEBUG: Pricing out rpog:8683 Exterior Scheme - {"includedRpo":{"id":"rpo:13446"},"includedPrice":119484400,"selectedRpo":{"id":"rpo:13446"}}
graphq
@stephenh
stephenh / bun.txt
Created March 1, 2025 21:16
Stacks Example
allAwaitsSync
10 | }
11 | async function bar() {
12 | await zaz();
13 | }
14 | async function zaz() {
15 | throw new Error("oops");
^
error: oops
@stephenh
stephenh / morph.ts
Created November 29, 2024 00:45
Remove tsconfig paths to relative imports
import * as path from "path";
import { Project } from "ts-morph";
function getRelativePath(fromPath: string, toPath: string): string {
let relativePath = path.relative(path.dirname(fromPath), toPath);
if (!relativePath.startsWith(".")) {
relativePath = "./" + relativePath;
}
return relativePath.replace(/\\/g, "/");
}
@stephenh
stephenh / .yarnrc.yml
Created October 23, 2023 15:40
supported architectures
# This setting ensures we always install the Linux binaries when running `yarn install`. This is needed for running
# swc natively in Docker from a Mac host.
supportedArchitectures:
cpu:
- current
- x64
- arm64
libc:
- current
- glibc
<body class="b-using-keyboard">
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root" style="position: relative; z-index: 0;">
<div class="css-32lf3s">
<img src="/wordmark.svg" alt="Homebound" class="css-u1jr60" />
<div class="css-1k9buc6">Purchase Order</div>
<div class="css-1yduzul">
<div class="css-11ykhmt">Prime Contractor ("Homebound")</div>
<div class="css-11ykhmt">Trade Partner</div>
</div>