Skip to content

Instantly share code, notes, and snippets.

@elit8888
elit8888 / you_couldve_invented_openclaw.md
Created March 17, 2026 11:09 — forked from dabit3/you_couldve_invented_openclaw.md
You Could've Invented OpenClaw

See more of my writing here.

In this post, I'll start from scratch and build up to OpenClaw's architecture step by step, showing how you could have invented it yourself from first principles, using nothing but a messaging API, an LLM, and the desire to make AI actually useful outside the chat window.

End goal: understand how persistent AI assistants work, so you can build your own (or become an OpenClaw power user).

First, let's establish the problem

When you use ChatGPT or Claude in a browser, there are several limitations:

@elit8888
elit8888 / cursor.reg
Created June 26, 2025 03:06
Cursor right click context menu registration, assuming cursor installed globally
Windows Registry Editor Version 5.00
; Open files
[HKEY_CURRENT_USER\Software\Classes\*\shell\Open with Cursor]
@="Edit with Cursor"
"Icon"="C:\\Program Files\\cursor\\cursor.exe,0"
[HKEY_CURRENT_USER\Software\Classes\*\shell\Open with Cursor\command]
@="\"C:\\Program Files\\cursor\\cursor.exe\" \"%1\""
; This will make it appear when you right click ON a folder
; The "Icon" line can be removed if you don't want the icon to appear
[HKEY_CURRENT_USER\Software\Classes\Directory\shell\cursor]
@elit8888
elit8888 / sudoku.py
Created June 2, 2020 15:23
Solve Sudoku (backtrack)
import unittest
from typing import List, Tuple, Set
class Solution:
def solve(self, puzzle: List[List[int]]) -> List[List[int]]:
self.columns = [set() for _ in range(9)]
self.rows = [set() for _ in range(9)]
self.squares = [[set() for _ in range(3)] for _ in range(3)]
self.res = [row[:] for row in puzzle]
@elit8888
elit8888 / vim_misc.md
Created November 1, 2019 09:30
Vim - some useful keystroke

vimdiff

do  # apply diff from other pane
dp  # push diff to other pane
]c  # jump to next change
[c  # jump to previous change

vim

"""Try to make python code py2 py3 compatible.
However, in the near future, python2 support will be ended.
"""
# py2
print 'Hello World!'
# py3
print('Hello World!')
@elit8888
elit8888 / res_adjust.md
Last active February 1, 2024 23:16
Use keyboard shortcut to adjust resolution higher or lower in MacOS

Resolution Adjustment Shortcut Setup

This note illustrates how to adjust resolution using keyboard shorcut using built-in app automator. After setting up, I can use two actions:

  • Switch to Highest resolution
  • Switch to Default resolution

I'm new to apple script, so the rule is very simple.

References: