Skip to content

Instantly share code, notes, and snippets.

@mateu
mateu / commit-profile.md
Created August 19, 2026 15:45
The shape of recent openclaw commits

From July 10–August 19, 2026 (UTC), main contains 15,123 commits. This was overwhelmingly stabilization and engineering-scale work, not just feature delivery.

Type Commits Share
fix 8,833 58.4%
refactor 1,942 12.8%
test 1,609 10.6%
feat 1,081 7.1%
docs 357 2.4%
perf 321 2.1%
@mateu
mateu / omp-vs-codex.md
Created August 14, 2026 21:28
OMP compared to Codex

When comparing omp (oh-my-pi) to Codex (OpenAI Codex CLI / App-Server), the fundamental difference comes down to architecture, execution model, model neutrality, and IDE integration depth.

Here is a direct breakdown of how they compare across key dimensions:


1. Model Ecosystem & Neutrality

  • Codex: Built specifically for and tightly coupled to OpenAI’s frontier models (e.g. GPT-5.4, GPT-5.6 Sol/Luna/Terra). Its prompts, internal tools, tool schemas, and reasoning loops are tuned exclusively for OpenAI's capabilities and response formats.
  • omp: Fully model-agnostic supporting 60+ providers (OpenAI, Anthropic, Google Gemini, Ollama, DeepSeek, Grok, MiniMax, etc.). It optimizes harnesses specifically per model (e.g. tuning prompt strategies and edit formats so cheaper/faster models like Gemini 3 Flash or Grok Fast achieve high benchmark pass rates without diff-patch failures).
@mateu
mateu / gist:6335e2a7f5575ca48722ea7b2fc19aac
Created May 3, 2026 20:09
fix discord for v2026.5.2 of openclaw
I checked memory + session logs. I found a clear Discord fix record, but it’s labeled **Forge**, not clawd. The clawd 2026.5.2 work I found was the git/tag rebuild/restart; I don’t see a separate clawd-specific Discord repair note. So either we reused the same fix on clawd, or the host label got fuzzy in the chat.
The Discord fix we documented was:
1. **Installed the official Discord plugin**
```bash
openclaw plugins install @openclaw/discord --pin
```
ClawHub didn’t have an installable version, so direct npm/plugin install worked.
@mateu
mateu / dump.txt
Created May 3, 2026 17:33
KeyError: '0 is not registered'
Welcome to Hermes Agent! Type your message or /help for commands.
A legacy OpenClaw directory was detected at ~/.openclaw/.
To port your config, memory, and skills over to Hermes, run `hermes claw migrate`.
If you've already migrated and want to archive the old directory, run `hermes claw cleanup` (renames it to ~/.openclaw.pre-migration — OpenClaw will stop working after this).
This tip only shows once.
✦ Tip: hermes chat -t web,terminal enables only specific toolsets for a focused session.
⚠ tirith security scanner enabled but not available — command scanning will use pattern matching only
Goodbye! ⚕
@mateu
mateu / agent-mode.md
Created March 27, 2026 16:56
My agents's take on the article "Thoughts on Slowing the Fuck Down"
@mateu
mateu / netdata-update.log
Created November 21, 2025 15:53
Netdata Update Confusion
[/tmp/netdata-kickstart-mX5vyiV2mG]# test -x //usr/libexec/netdata/netdata-updater.sh
OK
[/tmp/netdata-kickstart-mX5vyiV2mG]# //usr/libexec/netdata/netdata-updater.sh --interactive --not-running-from-cron
Fri Nov 21 08:31:03 AM MST 2025 : INFO: netdata-updater.sh: Checking if a newer version of the updater script is available.
Hit:1 https://cli.github.com/packages stable InRelease
Hit:2 http://repository.netdata.cloud/repos/stable/debian bookworm/ InRelease
Hit:3 http://deb.debian.org/debian bookworm InRelease
Hit:4 https://download.docker.com/linux/debian bookworm InRelease
Get:5 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
@mateu
mateu / deterministic-split.py
Created August 21, 2025 19:35
Split jsonl in manner that is determistic when the random_seed is fixed.
import orjson # pip install orjson
import hashlib
def deterministic_split_jsonl_orjson(input_file, train_file, test_file,
id_field='id', test_ratio=0.2, random_seed=42):
train_count = 0
test_count = 0
threshold = int(test_ratio * 2**32)
@mateu
mateu / debug-war-crash.log
Created July 31, 2025 21:58
Ways to debug warp terminal crashing on startup on Mac OS
Prompt> How does one debug a crash with warp terminal on startup?
Here are several approaches to debug a Warp terminal crash on startup:
## 1. Check Crash Logs
First, look for crash logs in the system logs:
# Check system logs for Warp crashes
log show --predicate 'process == "Warp"' --last 1h
# Or check Console.app for crash reports
@mateu
mateu / gist:c08f6084c8d1516166b6
Created January 22, 2015 18:14
generate a warning for an incorrect Content-Length header
#!/usr/bin/env perl
use strict 'vars';
use warnings;
use Plack;
use Plack::Test::Agent;
use Socket;
my $server = 'Standalone';
@mateu
mateu / gist:2902025
Created June 9, 2012 18:08
testicle
festival