Regan Muthomi (@regan_codes) header
Regan Muthomi (@regan_codes) profile picture

💥 Software Engineer 💥 Writer 💥 Python 🐍 TypeScript 🌐 Medium: https://teapaw.org/t.co/raNNUhYn83 LinkedIn: regan-muthomi Building: https://teapaw.org/t.co/kpgr3pIYJE

Nairobi
Joined April 2013
Photo by Regan Muthomi (@regan_codes)Photo by Regan Muthomi (@regan_codes)Photo by Regan Muthomi (@regan_codes)Photo by Regan Muthomi (@regan_codes)Photo by Regan Muthomi (@regan_codes)Photo by Regan Muthomi (@regan_codes)Photo by Regan Muthomi (@regan_codes)Photo by Regan Muthomi (@regan_codes)Photo by Regan Muthomi (@regan_codes)Photo by Regan Muthomi (@regan_codes)
Contabo peeps - imagine, just build a homelab, and self host at a very low cost. For context, i run over 32 servers in my lab, KPLC ndio wananichenganga sometimes but, the bill is just an extra 500 bob of electricity. Cloudflare tunnels keep winning, and your infra is safe and scalable. Build that homelab 😌
32
74
3
360
13,311
Yoh Xtain Are you building a Christmas tree? Punguza animations.
...wadau.. homepage tu, inaweza ama haiwezi? na ujue everything on that bongopoints.com/ homepage is 100% CODE. I vibe coded every animation, every ripple, every wave, i pictured it in my mind first, then brought it to life with code.
1
168
Regan Muthomi retweeted
I'm sharing with you one of the best papers I've read on Harness Engineering it takes apart Claude Code (Opus 5.5), Codex, Gemini CLI and more, and boils all of them down to one line: agent = model + harness what you take away: > what a harness is, in plain terms > how modern coding agents are built under the hood > the patterns they all share > the direction the whole field is moving > a checklist for building your own the model collects the applause the harness decides whether the agent actually works loop and graph engineering come next, and that part lives in my article below
53
210
9
1,613
108,704
Regan Muthomi retweeted
I built a mini Claude Code in ~160 lines of Python, no frameworks. Here’s the full tutorial, step by step, so you can see what’s really going on under the hood. It’s way simpler than you think. Timestamps: 00:00 Overview 00:30 What is an Agent 02:52 The Three Steps 03:21 Step 1: Calling an API 13:15 Step 2: Conversation History 17:08 Step 3: Tool Calling 28:09 Full Agent Build
5
7
1
56
2,196
Regan Muthomi retweeted
Anthropic engineer, Addy Osmani (ex-Google): "Google hired me at $500K–$1.2M a year because I know how to make AI agents write code that doesn’t break." In this 41-minute workshop he shows exactly how to build that system from scratch. Prompts → Agent Skills → Harness → Agents That Ship Without You step 1 → Refine the idea - drop in a vague thought, the agent interviews you and comes back with 3 directions step 2 → Write the spec - success criteria, stack and open questions locked before a single line of code step 3 → Plan in small tasks - each one gets acceptance criteria and a list of files it's allowed to touch step 4 → Build test-first - red to green, slice by slice, so nothing that already works breaks step 5 → Verify and review - the agent opens the app in a browser, checks security and simplifies its own code He open-sourced all 24 skills, and the repo is close to 100K stars Google calls this "agentic engineering" Most people spend weeks building this by hand You don't have to Bookmark it and watch it tonight Then read the full Opus 5.5 harness engineering guide below ↓
Stop letting unfinished Opus 5.5 runs eat your budget Set up the harness before your next long task Save progress, verify results, reuse the workflow The full 7-layer setup below ↓
33
258
9
2,280
204,371
Regan Muthomi retweeted
Andrej Karpathy dropped a 2-hour masterclass on everything he knows. It covers: - Agents - Harnesses - Loops - Graphs. This is a must-watch. Bookmark this post
18
93
2
776
57,107
Regan Muthomi retweeted
THIS IS A PURE F*CKING GOLDMINE Anthropic just shared one of the best tips for Claude Code. The idea: stop dumping 500 lines into CLAUDE.md and let Opus 5.5, Sonnet 5.5, Haiku 5.5 and Fable 5.1 manage a self-pruning memory tree. Zero context bloat, path-scoped rules that load only when touched, and persistent learnings that never drift into hallucination. You just inspect and steer your memory like this: /memory here's how it splits: → Opus 5.5 locks enduring architecture rules and approves permanent memory commits → Sonnet 5.5 writes modular .claude/rules/*.md with frontmatter path globs so rules only load for matching files → Haiku 5.5 indexes MEMORY.md at 340 tok/s and sweeps transient scratchpads into topic files → Fable 5.1 acts as the memory adversary, catching contradictions between ~/.claude/CLAUDE.md and ./CLAUDE.md Fable 5.1 only steps in at three moments: → before a rule writes: does this directive contradict existing project memory or inject false constraints? → when auto-memory hits the 200-line cap: prune stale debugging notes and purge hallucinated assumptions → before session commit: audit memory diffs so transient scratchpad noise never pollutes future turns Opus 5.5 locks. Sonnet 5.5 scopes. Haiku 5.5 indexes. Fable 5.1 curates JEV engineering is the same move one layer down: the forks that need no thinker (path glob matching, auto-memory threshold check, cache hit resolution) resolve in code in 16ms, and frontier models only wake up when memory rules actually conflict the full tree > Opus 5.5 on high runs the main session and enforces zero-regression memory standards > Sonnet 5.5 drafts path-scoped rules in .claude/rules/ with frontmatter globs > Haiku 5.5 indexes MEMORY.md at 340 tok/s and offloads deep context to topic files > Fable 5.1 on call audits rule drift and eliminates contradictory directives > ~/.claude/projects/<repo>/memory/ shares hardened learnings across all Git worktrees > JEV routes path glob matches and cache lookups in milliseconds paste the tree and this prompt into Claude Code ↓ "Reconfigure my Claude Code memory architecture around this tree: 1. Audit ~/.claude/CLAUDE.md and ./CLAUDE.md to eliminate contradictory instructions and strip out stale rules 2. Split monolithic project guidelines into modular .claude/rules/*.md files with YAML frontmatter path globs 3. Delegate MEMORY.md index maintenance and 200-line threshold pruning to Haiku 5.5 at 340 tok/s 4. Set Fable 5.1 as the adversary to audit any new memory entry before it commits to disk 5. Reserve Opus 5.5 for high-level architecture decisions and permanent memory sign-off 6. Route deterministic path matching and cache checks through JEV Show me every change as a diff first. No edits until I say go" ↳ code.claude.com/docs/en/memo… save it, you'll use this every single day
17
16
170
23,145
Regan Muthomi retweeted
This is f*cking insane. Anthropic engineer: “99% of people still use Opus 5.5 like Google. The top 1% are building harnesses that let swarms of Claude agents work, coordinate, and improve on their own. I run 50+ agents inside one harness — Chief and PM agents manage the entire system.” In this 26-minute workshop, he reveals how to get maximum output from Claude Code at minimum cost. Model → Tools → Harness → Closed Loops → Self-Improving System Worth more than every $1,000 vibe-coding course combined. Watch it today. Then read the full Harness, Loops and Graphs guide bellow ↓
Your agent loop is probably a cron job with your credit card Researchers checked 36,487 repos. Nearly all loops had a trigger. Far fewer had a check, state or an exit What's missing across the harness, the loop and the graph ↓
13
22
1
256
27,757
Regan Muthomi retweeted
This is f*cking insane. Andrej Karpathy spent 8 years at OpenAI and Tesla Last week, he put everything he learned into one free 2-hour lecture Agents → Harness → Loops → Graphs Some bootcamps charge $15K and teach you less than this You might not have 2 hours right now Bookmark it and watch before it gets buried in your feed Then read the guide below and build your first agent harness ↓
57
510
12
3,532
632,485
The update is the easy part. What we chase for every client is the follow-through: the reboot, the password change, the check that it actually worked. Shared our checklist from this week below, free to use.
Patch notices pile up fast, so here are the three from last week we'd deal with first: FortiGate: update FortiOS, then change admin and VPN passwords Node.js: move to 22.23.4, 24.22.1 or 26.12.1 Linux: install the new kernel and reboot Checklists for each are in the cards.
59
Regan Muthomi retweeted
Anthropic engineer: "You're not supposed to prompt Opus 5.5 You're supposed to build a system that prompts itself. At Anthropic, 90% of our engineers have already built such systems" In 30 minutes she shows exactly how Anthropic builds agents that remember, fix their own mistakes and get sharper with every run. This beats any $1000-$2000 course on agents I've seen. Watch it, then read the article below ↓
29
139
2
1,908
429,098
Regan Muthomi retweeted
Developers, this is for you. please take your payment callbacks seriously. 🔐 Yesterday, out of curiosity, I tested an M-Pesa integration on a critical live system. To my shock, I was able to submit a crafted payload that resulted in a payment being marked as successful. Never trust a payment callback blindly. Best practices: - Verify callbacks against the payment provider. - Validate the Merchant Request ID and transaction details. - Verify payment status independently where possible. - Restrict callback access by IP where supported. - Make callbacks idempotent to prevent duplicate processing. - Never mark a payment as successful based on an unverified payload. One weak payment integration can undermine the integrity of an entire system. Security is not just about protecting your APIs. It's about protecting the business logic behind them. 🔒
24
129
15
537
31,184
AI helped dig up a decade-old PHP flaw. Attackers had exploits running before the patch even shipped. If your sites run PHP and you haven't updated yet, today's the day. Here's what to do 👇
🚨 Security alert: "PHP2Shell" Two critical flaws in PHP let attackers take over a web server with one request. No login needed. Most WordPress sites are affected. Update PHP itself to 8.2.35, 8.3.36, 8.4.27 or 8.5.12 today, then restart your server. 🧵 What to do 👇
89
Regan Muthomi retweeted
As someone who has spent years trying to create a dignified market for Kenyan developers, I think we should be celebrating founders who are building their own products using AI. Look at what Mbiti has done with Aluta. Why should he spend KSh 500,000 or even KSh 3 million hiring developers to build something he hasn't validated? Having a working product doesn't guarantee sales. Many of us have built technically brilliant applications that nobody wanted to pay for. By building it himself, Mbiti has saved money that he can now spend on marketing, acquiring customers and validating the business. And what many devs don't seem to get is that if Aluta succeeds, Mbiti will eventually face technical challenges that require experienced engineers. But instead of asking investors for KSh 10 million to build an untested idea, he can now say, "We have 10,000 paying customers, our infrastructure can't keep up, and I need KSh 10 million to hire engineers who can help us scale and cut server costs by 50%." That's a much better problem to have, and a more compelling case for investment. I think developers need to appreciate this. Let founders who understand their markets validate their ideas as cheaply as possible. Our opportunity comes when those ideas succeed and need SERIOUS ENGINEERING EXPERTISE Mimi hapa, I'm positioning Reduzer to support founders like Mbiti and Kairo as they grow. Because one successful founder could end up creating two or three dignified, well-paying jobs for Kenyan developers for years.
36
211
13
1,077
30,019
Government of kenya is commiting public land and public funds through the NIF into the refinery. In return the government gets equity. Ndii we agreed wajinga waliisha bana.
Replying to @GanjaFelix
Its a private business. Would you approve of us posting your bank accounts here?
1
1
86
Why can't you guys in government disclose all the agreements if there nothing to hide? All Kenyans want is full disclosure of any agreements entered on their behalf.
We have attracted over $7b FDI over the last three years. Which other investors have been asked to make these disclosures?
65
Regan Muthomi retweeted
Investors speak: Ruto, you can't rig reality.
95
1,320
46
2,706
57,933
That is why vertical slums are being built all over the country by force, with our own money.
Is this the plan? 1. Kill agriculture 2. Kill the informal economy 3. Kill SMEs 4. Defund education and health 5. Kill the people 6. Share land and loot with foreign corporates.
55
Every Kenyan talks about devolution. Few remember the man who died for it. In September 2003, Prof. Crispin Odhiambo Mbai was shot dead at his home, just as his work on devolution was shaping the new constitution. He never lived to see it. Continue resting in peace, Prof. 🕊️
1
59