Skip to content

Instantly share code, notes, and snippets.

View georgebashi's full-sized avatar

George Bashi georgebashi

  • Yelp
  • San Francisco, CA
  • 20:08 (UTC -08:00)
View GitHub Profile
@georgebashi
georgebashi / AGENTS.md
Created November 10, 2026 20:46
Ref IDs

Item IDs for Referenceable Content

IDs are a shortcut for the user to refer back to any part of a response when giving feedback — so they don't have to quote or describe it. Tag anything the user might plausibly want to point at: tasks and options, but also claims, assumptions, findings, explanations, recommendations, plan steps, code changes, questions, caveats, list entries, sections. Feedback can be about anything (abc wrong, it's X, xyz why?, pfl expand, qrs skip), not just actions.

Rule of thumb: if the user might want to say "about that bit…", it gets an ID. Skip IDs only for very short responses where there's nothing distinct to point at.

Generating IDs

  • 3 lowercase alphanumeric characters (a-z, 0-9), in square brackets: [abc]
  • Mnemonic, derived from the item's content — initials of the key words (people, projects, files, topics, actions) so the user can recall it without scrolling back. Examples:
resource "aws_security_group" "test" {
name = "test"
description = "test"
vpc_id = "vpc-xxxxxxxx"
}
resource "aws_security_group_rule" "test1" {
type = "ingress"
from_port = 1
to_port = 1

Keybase proof

I hereby claim:

  • I am georgebashi on github.
  • I am georgebashi (https://keybase.io/georgebashi) on keybase.
  • I have a public key whose fingerprint is CC21 B40D 5D1E 2C47 D6F0 7B85 6890 FE4E E05E E63C

To claim this, I am signing this object:

function fg-or-run-vim () {
if [[ $#jobstates -eq 0 ]]; then
BUFFER='vim'
zle accept-line
else
BUFFER='fg'
zle accept-line
fi
}
zle -N fg-or-run-vim
source "https://rubygems.org"
gem 'activerecord'
gem 'ar-octopus', require: 'octopus'
gem 'sqlite3'
#!/usr/bin/env bash
if [ ! -z "$@" ]; then
exec tail -f "$@" | $0
fi
TIME="$(date +%s%N)"
while IFS= read -r line; do
NEW_TIME="$(date +%s%N)"
printf "%6.2f %s\n" "$(echo "scale=2;(${NEW_TIME} - ${TIME})/(1*10^09)" | bc)" "$line"
@georgebashi
georgebashi / hello.xml
Created September 5, 2012 08:57
XQuery and XSLT intro
<hello>
<person name="edd" />
<person name="chrisp" />
</hello>
Array.prototype.forEachG = function(f) {
for (var i = 0; i < this.length; i++) {
f(this[i], i, this);
}
}
/*
* GLOW.Compiler
* @author: Mikael Emtinger, gomo.se
* Compiles vertex- and fragementshader, uniforms, attributes and elements into a GLOW.CompiledData
*/
GLOW.Compiler = (function() {
"use strict";
"use restrict";
<?xml version="1.0" encoding="UTF-8"?>
<book xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0">
<chapter>
<title />
<para>test</para>
</chapter>
</book>