Skip to content

Instantly share code, notes, and snippets.

View gjtorikian's full-sized avatar
🙃

Garen Torikian gjtorikian

🙃
View GitHub Profile
@gjtorikian
gjtorikian / harness_engineering.md
Last active March 11, 2026 23:07
harness_engineering

harness_engineering

Harness Engineering & Multi-Context Agent Workflows

A synthesis of OpenAI's harness engineering report, Anthropic's long-running agent research, Anthropic's prompting best practices docs, and lessons from workos/case (a production harness orchestrating AI agent work across multiple repositories).

Core thesis: the bottleneck in agent performance is environment design, not model intelligence. Or as OpenAI put it: "The horse is fast. The harness is everything."


Check out the YouTube link for additional help: https://youtu.be/MoZtlB06yys

  1. Go to https://vax4nyc.nyc.gov/patient/s/vaccination-schedule
  2. Fill out all your personal details
  3. Copy this script above
  4. In your browser, open up Developer Tools
  5. Paste this script into the console
  6. Sit back and wait for an appointment you like to appear. This usually takes about ten minutes.

If the page stops refreshing (because it found an appointment), but you don't like the time or location, just type:

@gjtorikian
gjtorikian / pro-up.rb
Last active January 7, 2021 17:01
Is there new info on MacRumors yet
#!/usr/bin/env ruby
require 'nokogiri'
require 'open-uri'
model = 'MacBook_Pro_16'
url = "https://buyersguide.macrumors.com/\##{model}"
doc = Nokogiri::HTML(URI.open(url))
@gjtorikian
gjtorikian / main.go
Created October 13, 2020 15:43
Heroku chat sample
package main
import (
"encoding/json"
"io"
"log"
"net/http"
"os"
"github.com/go-redis/redis"
@gjtorikian
gjtorikian / querying_for_files.graphql
Last active February 22, 2019 14:24
sample GQL query for fetching files via GitHub GQL API
{
# get a list of files off the tree entries
repository(owner: "gjtorikian", name: "html-proofer") {
ref(qualifiedName: "refs/heads/master") {
target {
... on Commit {
tree {
entries {
object {
__typename
@gjtorikian
gjtorikian / extract.rb
Last active May 27, 2018 17:43
Geocities extraction script
require 'pty'
def run_cmd(cmd)
begin
PTY.spawn( cmd ) do |stdout, stdin, pid|
begin
# Do stuff with the output here. Just printing to show it works
stdout.each { |line| print line }
rescue Errno::EIO
puts "Errno:EIO error, but this probably just means " +
{
repository(owner: "facebook", name: "mention-bot") {
object(expression: "master") {
... on Commit {
blame(path: "cookieJar.js") {
ranges {
startingLine
endingLine
age
commit {
@gjtorikian
gjtorikian / routes.rake
Created March 15, 2016 02:44
Rake task to show Sinatra routes within a Rails app
namespace :api do
# Sample output is a header (listing the class name) followed by
# the verb + endpoint. For example:
#
# ### Within Api::Git
#
# GET /repositories/:repository_id/git
desc "List all the API endpoints with their verbs."
task :routes => :environment do
@gjtorikian
gjtorikian / sinatra.diff
Created January 14, 2016 20:22
sinatra.diff
diff --git a/lib/sinatra/base.rb b/lib/sinatra/base.rb
index 3b07ab0..b76ef47 100644
--- a/lib/sinatra/base.rb
+++ b/lib/sinatra/base.rb
@@ -2,6 +2,7 @@
require 'rack'
require 'tilt'
require 'rack/protection'
+require 'forwardable'
@gjtorikian
gjtorikian / convert_to_backticks.rb
Created November 20, 2015 06:49
indent to backticks
Dir.glob('content/**/*.md') do |file|
content = File.read(file)
content = content.gsub(/{:.terminal}\n[\s\S]*?^$/) do |match|
lines = match.lines
lines = lines[1..-1].map do |line|
line[4..-1]
end
lines.unshift("``` command-line\n")
lines << "```\n"