Skip to content

Instantly share code, notes, and snippets.

Inside the Claude Code source

Anthropic's Claude Code CLI source code leaked onto GitHub recently. All of it. About 1,900 files and a lot of TypeScript.

I read through the key modules. What follows is a breakdown of the surprising parts: how the system actually works, where Anthropic made clever engineering choices, and where their approach diverges from OpenAI's Codex in ways you wouldn't guess from using either tool.

Lifecycle of a request

Here's what happens when you type a message into Claude Code:

https://github.com/redpanda-data/redpanda
@caot
caot / ida-analysis.py
Created October 15, 2025 13:53 — forked from geekman/ida-analysis.py
simple IDAPython script for scripting automated binary analysis
#
# ida-analysis.py
# a simple IDAPython binary analysis script
# 2020.05.24 darell tan
#
# invoke with:
# idat64 -c -A -S"ida-analysis.py $HOME/analysis.txt" <file.bin>
#
import sys
@caot
caot / vita-clion.md
Created October 7, 2025 03:35 — forked from DionKill/vita-clion.md
CLion setup for PlayStation Vita development using VitaSDK on Linux

immagine immagine

How to setup CLion for PS Vita development

Someone else did this before me, but I can't find the gist anymore so I'll make another one. I'm going to be using this for my personal projects in the future, including this one. This is going to be a Linux tutorial, and for now I've been using Fedora, but it should be cross-distro compatible. Actually this is for CLion, but looking at it once more, I think it is applicable to other IDEs, as well as just manually doing it on your own. But I won't help you with that!

Get and install VitaSDK

@caot
caot / Tech prefs.md
Created September 15, 2025 23:01 — forked from CTimmerman/Tech prefs.md
Technology preferences / tech prefs.

My Technology Preferences

For those who don't bother to remember.

Hardware

Personal Computer

A laptop/notebook with 16+ GB RAM, Nvidia GPU for stability (hardware manufacturers seem notoriously bad at software, but Nvidia is relatively good if you ignore the Experience app that demands your data, and training AI needs 50 GB VRAM nowadays but 80 GB is 10x the price of 24 GB so the 1+k USD cheaper AMD or Apple 128GB are better), Linux and Wine and/or Windows 10 > expensive, hard-to-customize MacBook with MacOS (needs Spectacle and HyperSwitch to almost be as good as Windows 10), flimsy adapter wire and too many proprietary connectors. Preferably a 14+" matte Full HD (UHD is only useful at 23+" or equivalent in VR) [Supe

Swimming Glossary # https://www.google.com/url?sa=t&source=web&rct=j&opi=89978449&url=https://www.teamunify.com/asassc/__doc__/Swimming%2520Glossary.doc&ved=2ahUKEwi7i-r1tfGNAxUzRjABHcrgAD8QFnoECBYQAQ&usg=AOvVaw0ggC2iFMdhMLOBSmFTVnCx

Circle Seeding - A method of seeding where the fastest swimmers are seeded in the center lanes of the fastest 3 heats. Circle Seeding is only only used in meets during the preliminaries of a Prelims-Finals format meet.

Club – Adirondack Swimming is comprised of member clubs. Swimmers belong to individual clubs and meets are hosted by these clubs.

Deck - The area around the swimming pool reserved for swimmers, officials, and coaches. Parents who are not working in an official capacity (e.g., certified official, lane timer) are not allowed on deck during a meet.

Deck Entries - Some meets will allow swimmers to enter an event during the meet. See the Meet Announcement to determine if deck entries are allowed and any fees involved. Note that the swimmer or coach must provide pro

* French Stories for Beginners https://youtu.be/ef6BqM94Rls?list=PL5j0uE8Yg7QIPq1NmREZaCK3tbGA67o1r
* Sports Nutrition For Swimmers https://www.usaswimming.org/docs/default-source/camps/national-select-camp/sports-nutrition-for-swimmers.pdf
* 14 Gym Exercises for Swimmers to Level Up Your Stroke https://www.chicagoathleticclubs.com/blog/gym-workouts-for-swimmers
* 7 Best Strength Training Exercises for Swimmers https://swimswam.com/strength-training-exercises-for-swimmers/
@caot
caot / Server.py
Created February 17, 2025 02:01 — forked from hailangx/Server.py
A simper python http server can handle mime type properly
# -*- coding: utf-8 -*-
#test on python 3.4 ,python of lower version has different module organization.
import http.server
from http.server import HTTPServer, BaseHTTPRequestHandler
import socketserver
PORT = 8080
Handler = http.server.SimpleHTTPRequestHandler