Skip to content

Instantly share code, notes, and snippets.

View atharrison's full-sized avatar

Andrew Harrison atharrison

  • Austin, TX
  • 06:37 (UTC -05:00)
View GitHub Profile
@behindthegarage
behindthegarage / OPENCLAW-OPERATING-SYSTEM.md
Created February 14, 2026 20:40
The OpenClaw Operating System: A Layered Guide — How to build a complete AI collaboration system, from foundation to advanced patterns. Built through partnership, not configuration.

The OpenClaw Operating System: A Layered Guide

How to build a complete AI collaboration system — from foundation to advanced patterns

The Core Insight

These aren't separate tools to adopt. They're an evolved system where each layer depends on the one below it.

Layer 1 is the unlock. Without the right AI behavior — autonomous execution, collaboration over reminders, prototype-first — nothing else works. You can't have effective workflow if your AI waits for permission on every file. You can't have group primers if your AI doesn't maintain docs automatically.

@wetmore
wetmore / cosine-sim.js
Created July 30, 2012 03:52
Cosine similarity calculator
var _ = require('underscore');
var freqVector = function(word, letters) {
var freq = _.groupBy(word.split(''), function(l) {return l;});
return _.map(letters, function(l) {
return freq[l] ? freq[l].length : 0;
});
};
var dot = function(v1, v2) {