Skip to content

Instantly share code, notes, and snippets.

View joelmoss's full-sized avatar

Joel Moss joelmoss

View GitHub Profile
@aarondfrancis
aarondfrancis / audit-your-codebase.md
Created August 14, 2026 15:20
A read-only, agent-orchestrated codebase audit prompt for data structures, state modeling, algorithms, and ownership.

Audit this entire codebase for materially useful simplifications in its data structures, state representation, control flow, algorithms, and ownership.

This is an audit-only exercise. Do not edit files, run tests, implement recommendations, commit, or push. Read-only inspection commands are allowed.

You are the coordinator. Continue until the complete codebase has been reviewed and the final audit is validated.

  1. Establish the coverage contract

Inspect the repository and inventory every identifiable subsystem.

@iannuttall
iannuttall / agentos-blueprint.md
Created August 14, 2026 12:10
AgentOS blueprint — reconstructed from Danny Postma's Agent SDK talk so an agent can build the system

AgentOS — Product Spec & Implementation Blueprint

Reconstructed from Danny Postma's talk How I Built My Own AgentOS on Claude's Agent SDK (So You Can Too) (2026). This document is both a product spec for a human and an implementation prompt for an AI coding agent. Build exactly this system. Do not invent features that are not specified here.

Role contracts and prompts in this file are reconstructed from the talk, not his verbatim files. Mark every reconstructed prompt in code comments and docs as such.


1. Goal and non-goals

---
name: plan-exit-review
version: 2.0.0
description: |
Review a plan thoroughly before implementation. Challenges scope, reviews
architecture/code quality/tests/performance, and walks through issues
interactively with opinionated recommendations.
allowed-tools:
- Read
- Grep
# frozen_string_literal: true
require "fileutils"
# Helper for Git worktree-aware behavior
class GitWorktree
PROJECT_ROOT = File.expand_path("..", __dir__)
def self.instance = new
def self.name = instance.name
@KonnorRogers
KonnorRogers / signals.html
Created August 6, 2025 21:41
Lite Signals
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Signals</title>
</head>
<body>
<button id="decrement">
-
@pksunkara
pksunkara / config.toml
Last active July 4, 2026 12:46
Sample of jj config file (Example jj/config.toml) (Place them in $XDG_CONFIG_HOME/jj)
'$schema' = 'https://jj-vcs.github.io/jj/latest/config-schema.json'
[user]
name = 'Pavan Kumar Sunkara'
email = 'pavan.sss1991@gmail.com'
username = 'pksunkara'
[ui]
default-command = 'default'
editor = 'nvim'
require "digest"
require "rack"
# This class encapsulates a unit of work done for a particular tenant, connected to that tenant's database.
# ActiveRecord makes it _very_ hard to do in a simple manner and clever stuff is required, but it is knowable.
#
# What this class provides is a "misuse" of the database "roles" of ActiveRecord to have a role per tenant.
# If all the tenants are predefined, it can be done roughly so:
#
# ActiveRecord::Base.legacy_connection_handling = false if ActiveRecord::Base.respond_to?(:legacy_connection_handling)
@DavidWells
DavidWells / run-tests-for-file.bash
Created February 20, 2025 18:41
Bash for VSCode* to run tests in current file. E.g. Inside file.js will run file.test.js, inside file.test.js it runs itself
#!/bin/bash
if [[ "${relativeFile}" == *.test.js ]]; then
FILE="${relativeFile}"
elif [ -f "${fileDirname}/${fileBasenameNoExtension}.test.js" ]; then
FILE="${fileDirname}/${fileBasenameNoExtension}.test.js"
elif [ -f "${fileDirname}/$(basename "${fileDirname}").test.js" ]; then
FILE="${fileDirname}/$(basename "${fileDirname}").test.js"
else
FILE="${relativeFile}"
# frozen_string_literal: true
# For now, run like this: `ruby --rjit --rjit-disable fjit.rb`
#
# Once RJIT is removed, the extra flags will not be necessary
require "fiddle"
require "ffi"
require "jit_buffer"
require "hacks"
# config/initializers/phlex_template_handler.rb
require "action_view"
require "phlex"
# Intercept unknown "capitalized" method calls (e.g., PageView(...)) in templates,
# look up a Phlex component class, instantiate it, and render it.
# Crucially, we re-bind the user’s block so that `self` is the component, not the ActionView context.
module PhlexDynamicMethodCalls
def method_missing(name, *args, **kwargs, &block)
# Only intercept method calls starting with an uppercase letter (e.g. "PageView", "MyComponent", etc.)