Skip to content

Instantly share code, notes, and snippets.

View DMontgomery40's full-sized avatar

David Montgomery DMontgomery40

View GitHub Profile
@DMontgomery40
DMontgomery40 / README.md
Created March 13, 2026 23:33
codex-local-rag: local-first Codex history hybrid RAG index

codex-local-rag

codex-local-rag builds a local hybrid search index over Codex history so you can ask things like:

  • "Where did I debug that nginx reverse proxy issue?"
  • "How did I fix a failing GitHub Actions workflow last month?"
  • "What command did I use when I recovered that SQLite database?"

It is designed for real Codex artifacts, not generic chat logs. Instead of slicing everything into arbitrary chunks, it reconstructs turns, keeps tool output separate when it gets large, and combines sparse plus dense retrieval for better recall on both conceptual questions and exact technical strings.

@DMontgomery40
DMontgomery40 / SKILL.md
Created March 13, 2026 09:27
Frontend review loop skill bundle
name description
frontend-code-review
Use when the user wants a frontend-focused, bug-first review of UI code or tests, especially in TypeScript or JavaScript React and Vite apps, with light Streamlit coverage. Focus on concrete correctness issues in rendering, state, interactions, async flows, accessibility, visual behavior, and fake or weak frontend tests.

Frontend Code Review

When To Use

Use this skill when the user asks for any of these:

@DMontgomery40
DMontgomery40 / SKILL.md
Created March 13, 2026 09:27
Thorough code review loop skill bundle
name description
thorough-code-review
Use when the user wants a serious, bug-focused code review of a repo, branch, PR, or diff and explicitly wants more than the default handful of findings. Focus on correctness, regressions, missing tests, fake or gamed tests, security, portability, cleanup, and operational risk.

Thorough Code Review

When To Use

Use this skill when the user asks for any of these:

@DMontgomery40
DMontgomery40 / SKILL.md
Created March 13, 2026 09:27
PR loop skill bundle
name description
pr-loop
Run the full GitHub pull request loop for the current branch, including review waits, fix and amend cycles, merge, and post-merge verification.

PR Loop

Overview

Run the whole PR lifecycle without dropping the follow-through steps. Use this skill when the user wants a repeatable "open PR, wait, inspect review, fix, recheck, merge, verify deploy" loop for the current branch.

@DMontgomery40
DMontgomery40 / codex-automation-hardening-2026-03-10.md
Last active March 10, 2026 10:29
Ragweld Codex automation hardening incident report (March 10, 2026)

Ragweld Codex Automation Hardening Report

Last updated: March 10, 2026

Incident summary

This report documents why the existing Codex Desktop automation path for ragweld was treated as unsafe, what concrete failures we observed, what we changed locally to stop the lying/fake-green behavior, what we changed in the repo to harden the worker lanes, and what still remains open.

Primary trigger session:

@DMontgomery40
DMontgomery40 / README.md
Last active March 11, 2026 16:30
Step 0 before trying to fix your vibe slop

Step 0 before trying to fix your vibe slop

Important: this is not about writing prettier logging copy. The point is to make operatorHint act like a tiny implementation diagnosis that has already done some of the debugging work for the next AI agent. The strongest mode is not supposed to produce vague junk like look at notifications. It is supposed to produce a compact root-cause note, more like PATCH /notifications -> parseNotificationPatchBody(); missing body.text guard before schema parse or RunPage reconnect effect opens a new EventSource before cleanup. In other words: route, function, boundary, missing guard, broken invariant, likely culprit. Not decorative logging.

Weak vs Strong

These are real runs against the same tiny repo, same file, same error path.

Weak:

@DMontgomery40
DMontgomery40 / CODEX.md
Last active March 14, 2026 19:24
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.


@DMontgomery40
DMontgomery40 / PROMPT.md
Last active January 30, 2026 15:00
DOCX ↔ PDF round-trip normalization

DOCX ↔ PDF Round-Trip Normalization Prompt

For use with GitHub Copilot, Claude, or other AI coding assistants


Objective: Eliminate DOCX ↔ PDF round-trip layout drift through deterministic normalization.

Normalization Pipeline:

This file will be replaced.
const os = require('os');
const { execSync } = require('child_process');
const mo = await mediaManager.createMediaObjectFromUrl('https://user-images.githubusercontent.com/73924/230690188-7a25983a-0630-44e9-9e2d-b4ac150f1524.jpg');
const image = await mediaManager.convertMediaObject<Image & MediaObject>(mo, 'x-scrypted/x-scrypted-image');
const detectors = [
'@scrypted/openvino',
// Uncomment other detectors if available
// '@scrypted/coreml',
// '@scrypted/onnx',