Skip to content

Instantly share code, notes, and snippets.

View mehdimashayekhi's full-sized avatar
🎯
Focusing

Mehdi Mashayekhi mehdimashayekhi

🎯
Focusing
View GitHub Profile

Building OpenClaw From First Principles

A deep dive into personal AI assistant architecture

This tutorial teaches you how persistent, tool-using AI assistants actually work by building one from scratch. We'll start with a basic chatbot and incrementally add features until we understand every major component of OpenClaw's architecture.

What you'll learn:

  • How to give AI assistants persistent memory across conversations
  • How tool calling works and why it's powerful
  • How to build a gateway that connects multiple messaging platforms
@mehdimashayekhi
mehdimashayekhi / min-char-rnn.py
Created January 26, 2017 19:43 — forked from karpathy/min-char-rnn.py
Minimal character-level language model with a Vanilla Recurrent Neural Network, in Python/numpy
"""
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy)
BSD License
"""
import numpy as np
# data I/O
data = open('input.txt', 'r').read() # should be simple plain text file
chars = list(set(data))
data_size, vocab_size = len(data), len(chars)