
Rajiv Shah
OpenHands
Rajiv Shah is a data scientist who works on agent engineering at OpenHands and explains AI to a public audience. He previously worked at Hugging Face and Snowflake and now teaches workshops on how coding agents are designed and how harnesses affect performance.
The record
What Rajiv Shah said and what we reported, by dateDecember 2026
In Part 2 of my Harness Engineering 2.0 talk, Building a Better AI Agent, I cover: * Context window management and compaction. What to load into the model’s context and what to preserve when summarizing a long coding session. * Persistent memory for AI agents. What to save across sessions and how to check whether a saved note still applies after the code changes. * LLM model routing and prompt caching. When to escalate to a stronger model, how switching models can affect cache reuse, and how to measure the cost of getting a result that passes your checks. #harnessengineering #5MinutePlus #TikTokTechContest
In Part 2 of my Harness Engineering 2.0 talk, Building a Better AI Agent, I cover: * Context window management and compaction. What to load into the model’s context and what to preserve when summarizing a long coding session. * Persistent memory for AI agents. What to save across sessions and how to check whether a saved note still applies after the code changes. * LLM model routing and prompt caching. When to escalate to a stronger model, how switching models can affect cache reuse, and how to measure the cost of getting a result that passes your checks.
Start with Jira to PR, code review, and QA. Stitch them together and you’ve got a software factory. Next think about how it’s going to evolve, how you will measure its productivity, and remember to stay flexible. #tiktoktechcontest
Start with Jira to PR, code review, and QA. Stitch them together and you’ve got a software factory. Next think about how it’s going to evolve, how you will measure its productivity, and remember to stay flexible.
Start with Jira to PR, code review, and QA. Stitch them together and you’ve got a software factory. Next think about how it’s going to evolve, how you will measure its productivity, and remember to stay flexible.
Quoting @arjunkmrm: I wrote about the bitter lesson for agent memory. We show that an agent running SQL queries on its own event logs achieves SOTA on all major memory benchmarks, and scales with model intelligence. We also found that dr…
Another lesson that I covered in my harness engineering 2.0 deep dive:
Bash or custom tool? This is one of the workshop examples in my 45-minute Harness Engineering 2.0 talk, Building a Better AI Agent. I gave the same AI model the same task: explain a pull request. With Bash, the agent chose what to fetch. The custom tool bundled the evidence.
Bash or custom tool? This is one of the workshop examples in my 45-minute Harness Engineering 2.0 talk, Building a Better AI Agent. I gave the same AI model the same task: explain a pull request. With Bash, the agent chose what to fetch. The custom tool bundled the evidence.
As AI models get better, what should you still build around them? What can you simplify? That’s the question behind Harness Engineering 2.0, my three-part series on building better AI agents. In Part 1, I give different coding agents the same model and the same bug. Then I walk through how I decide when to give an agent a terminal, a few focused tools, or one tool built for the job. #harnessengineering #aiagents #tiktoktechcontest #5MinutePlus
As AI models get better, what should you still build around them? What can you simplify? That’s the question behind Harness Engineering 2.0, my three-part series on building better AI agents. In Part 1, I give different coding agents the same model and the same bug. Then I walk through how I decide when to give an agent a terminal, a few focused tools, or one tool built for the job.
Quoting @OpenHandsDev: We built an automated CVE remediation workflow for our own software. Now we're showing you how to build one. At OpenHands, we're using AI agents to analyze vulnerability scan results, prioritize fixes, open PRs, and fl…
This is hottest use case for software factories today. I am very busy working with customers that want to own their own CVE software factories. Join the webinar to learn some of our secrets and how you can do this on open source!
November 2026
Could your coding agent get your old API key from your Trash? Let’s talk about running agents in a sandbox, using an MCP gateway to keep keys out of the agent’s hands, and what a credential broker does when the agent needs its own short-lived token.
Could your coding agent get your old API key from your Trash? Let’s talk about running agents in a sandbox, using an MCP gateway to keep keys out of the agent’s hands, and what a credential broker does when the agent needs its own short-lived token.
Could your coding agent get your old API key from your Trash? Let’s talk about running agents in a sandbox, using an MCP gateway to keep keys out of the agent’s hands, and what a credential broker does when the agent needs its own short-lived token.
Quoting @john_ssuh: Agent platform of 2027. This is the end game. This is the blueprint for the one and only application layer software that will exist. Every other software will effectively become databases for this layer, the everythin…
I love this direction. I have been heads down lately @OpenHandsDev, where we are building an open agent platform that anyone can host and run themselves. Pick the agent that fits the job and run it in an environment you control.
What do looped transformers get from running the same layers again? Looped-DiT fixes the spelling on a poster. Thinking Machines’ Inkling research model solves more coding tasks with extra passes. You can try Looped-DiT and Inkling 2 Mini yourself. Both have open weights.
What do looped transformers get from running the same layers again? Looped-DiT fixes the spelling on a poster. Thinking Machines’ Inkling research model solves more coding tasks with extra passes. You can try Looped-DiT and Inkling 2 Mini yourself. Both have open weights.
What do looped transformers get from running the same layers again? Looped-DiT fixes the spelling on a poster. Thinking Machines’ Inkling research model solves more coding tasks with extra passes. You can try Looped-DiT and Inkling 2 Mini yourself. Both have open weights.
Six habits of ineffective AI agents, inspired by Steve Yegge, creator of Gas Town.
Six habits of ineffective AI agents, inspired by Steve Yegge, creator of Gas Town.
Six habits of ineffective AI agents, inspired by Steve Yegge, creator of Gas Town.
Decision models are 🔥 @michellechen’s talk at @aiDotEngineer inspired me to test out decision models with coding agents. A quick test for tool selection: 50 GitHub tools → 3 47% fewer tokens, 22% faster. This is just a taste of how we can reshape coding agents. Thanks John-Mason @OpenHandsDev for adding support to the SDK.
Cloudflare's AI Engineer talk inspired me to try decision models with coding agents. Look at this: 50 GitHub tools → 3, 47% fewer tokens, 22% faster. This was just using a decision models to choose tools, there are so many other ways to use them with decision models. What will you do with decision models?
AI Problem Framing 10 years of experience all laid out for you Book + Videos I am where I am because of open source and so many people sharing information with me. So it feels right to share it with the world. Big book + 4 long videos walking through the key concepts Enjoy! Book: https://aiframer.dev/book Videos: https://www.youtube.com/playlist?list=PLfqKKLgZ_dyA
Quoting @dejavucoder: curious people and people interested in llm evals, benchmarks, high data circles, please wake up. my blog post "SWE-bench Multimodal v2 is not multimodal" is up now.
This has been around forever, in my AI Problem Framing book, I use this example with visual question answering benchmarks. Its why you do ablation analysis as part of your diagnostics.
Weight space programming is one of the wildest AI results I’ve seen this year. Researchers showed AI identifying games from network weights, fixing a stuck simulated car, and writing game-playing networks from scratch. Is this emergent, or as Neel Nanda’s suggests, models are really good at applying familiar interpretability techniques. These are early experiments on small networks, but AI directly programming the internals of other AI is exciting and a little scary.
Weight space programming is one of the wildest AI results I’ve seen this year. Researchers showed AI identifying games from network weights, fixing a stuck simulated car, and writing game-playing networks from scratch. Is this emergent, or as Neel Nanda’s suggests, models are really good at applying familiar interpretability techniques. These are early experiments on small networks, but AI directly programming the internals of other AI is exciting and a little scary.
Weight space programming is one of the wildest AI results I’ve seen this year. Researchers showed AI identifying games from network weights, fixing a stuck simulated car, and writing game-playing networks from scratch. Is this emergent, or as Neel Nanda’s suggests, models are really good at applying familiar interpretability techniques. These are early experiments on small networks, but AI directly programming the internals of other AI is exciting and a little scary.
Model diversity is important! @SemiAnalysis_ new GDPx benchmark tests models on challenging tasks across a wide range of domains. Here are four examples showing how the best model changes with the task. It’s also one reason to make sure your agents are model agnostic 😉 Get all the details and caveats here:
Model diversity is important! SemiAnalysis’s new GDPx benchmark tests models on challenging tasks across a wide range of domains. Here are four examples showing how the best model changes with the task. It’s also one reason to make sure your agents are model agnostic 😉 Get all the details and caveats here: https://newsletter.semianalysis.com/p/gdpx-measuring-frontier-model-capabilities
Covering @poteto pstack Looking forward to seeing her talk next week at @aiDotEngineer
How are people shipping hundreds of PRs with coding agents? Lauren Tan shared her process in pstack: understand the task, reproduce the bug, compare approaches, make the change, challenge it, and show evidence that it works. Here’s a bug fix walkthrough.
How are people shipping hundreds of PRs with coding agents? Lauren Tan shared her process in pstack: understand the task, reproduce the bug, compare approaches, make the change, challenge it, and show evidence that it works. Here’s a bug fix walkthrough.
How are people shipping hundreds of PRs with coding agents? Lauren Tan shared her process in pstack: understand the task, reproduce the bug, compare approaches, make the change, challenge it, and show evidence that it works. Here’s a bug fix walkthrough.
October 2026
Quoting @jdpruettt: Long-context agents · 1/5 There’s a natural intuition to design agent prompts w/ the assumption that human instructions and LLM thoughts take up the context window since that’s how it feels when you watch an agent. But…
Sign of the times. I see this too in my own anecdotal analysis across Agent Canvas and Codex, tool I/O dominates. Agents read files, write patches, and retrieve info. The actual conversation is a small part. @OpenHandsDev @OpenAIDevs
Move over Girl Math, Anthropic is introducing AI Math. Based on Anthropic’s IPO filing, four big questions about what counts as profit, which expenses get left out, when the bills show up, and why buying more chips unlocks more funding.
Move over Girl Math, Anthropic is introducing AI Math. Based on Anthropic’s IPO filing, four big questions about what counts as profit, which expenses get left out, when the bills show up, and why buying more chips unlocks more funding.
Move over Girl Math, Anthropic is introducing AI Math. Based on Anthropic’s IPO filing, four big questions about what counts as profit, which expenses get left out, when the bills show up, and why buying more chips unlocks more funding.
Thanks @_odsc Another great conference, so let me share what I did Below is my movie trailer for my talk :) It links to my slides and workshop exercises. I had a great audience and lots of good feedback. I will be presenting again @MLOpsWorld in Austin next month. Look for some updates on the goals section and context. I think i can improve telling the story for those. (As well as all the new stuff that comes out).
Thanks Open Data Science Conference (ODSC) Another great conference, so let me share what I did Below is my movie trailer for my talk :) It links to my slides and workshop exercises. I had a great audience and lots of good feedback. I will be presenting again MLOps World | GenAI Summit in Austin next month. Look for some updates on the goals section and context. I think i can improve telling the story for those. (As well as all the new stuff that comes out). https://is.gd/odsc2026_harness
Anthropic reminding you not to go crazy with subagents / multi agents https://claude.com/resources/articles/building-agents-when-to-fold-subagents-into-your-main-agent-loop But we all knew that and there were plenty of papers pointing out the cost of the subagent/multiagent frenzy https://arxiv.org/html/2512.08296v1 (And covered in my harness engineering talks early in the year)
Quoting @cherry_mx_reds: Anthropic is now recommending that companies REMOVE unnecessary subagents from their AI systems. This is a pretty significant shift in agent architecture, with their team finding that a single agent equipped with skill…
I am bit surprised at the reaction, we have known for a long time that subagents/multiagent offer a lot of coordination complexity for their payoff. I saw lots of anecdotes and papers like this which push back against the multi-agent frenzy. Towards a Science of Scaling Agent Systems -
Explaining how agents are adapting their harnesses This is for my _odsc workshop this week on the Design of Coding Agents. Hope to see you there! I will share the full slides/presentation/workshop exercises next week.
Explaining how agents are adapting their harnesses This is for my @_odsc workshop this week on the Design of Coding Agents. Hope to see you there! I will share the full slides/presentation/workshop exercises next week.
Letta’s FrontierMemory 1.0 tests whether agents can extract useful lessons from old work logs, save them as instructions or skills, and use them to complete new tasks.
Letta’s FrontierMemory 1.0 tests whether agents can extract useful lessons from old work logs, save them as instructions or skills, and use them to complete new tasks.
For the seven people who like traditional ML interpretability, mechanistic interpretability, and vaguely educational AI skits: this one’s for you. Inspired by @nickcammarata’s Goodfire essay.
Quoting @yb2698: The idea is very simple, what happens if you re-run N times the exact same task using the same model and the same harness? We first observed this behavior by inspecting the variations in the model responses when runnin…
Consistency is a very good thing in a harnesss - @OpenHandsDev
Goodfire’s interpretability research suggests individual neurons have understandable roles in representing concepts and patterns. That’s intriguing. But we know from classic ML that interpretability often gives us a coarse, directional picture. Reliable detail is much harder.
Goodfire’s interpretability research suggests individual neurons have understandable roles in representing concepts and patterns. That’s intriguing. But we know from classic ML that interpretability often gives us a coarse, directional picture. Reliable detail is much harder.
Quoting @dair_ai: // FDE-Gym: Agents as Forward-Deployed Engineers // They found that the best agent configuration fully resolved 14 of 95 real customer-delivery tasks. FDE-Gym tests agents as forward-deployed engineers. Each task come…
FDE-Gym shows how hard it is to solve simulated customer projects (the best models solved 14 out of 95 tasks) This was my motivation for guiding folks to getting a working solution by better framing: (free book)
I'm looking for a small audience to test my Harness Engineering workshop! Hands-on experiments with tools, memory, model choice, goals & multiple agents. Likely Wed, Oct 21, US evening. Come learn, ask questions & help me improve it. DM me for details.
Quoting @SidIntain1: @ShrivuShankar I can attest to this from our experience at Intain. In document diligence for asset-backed finance, we started with CNN-based models before LLMs became mainstream. Till recently, we fine-tuned BERT on our…
This is the reality today of fine-tuning for most companies. It matches what I see.
An Obliviate spell for an LLM? NULLs trains models with source-specific activation patterns, then excludes a source by switching patterns.
An Obliviate spell for an LLM? NULLs trains models with source-specific activation patterns, then excludes a source by switching patterns.
Was Plato onto something? “Shared Geometry as a Rosetta Stone: Cross-Modal Alignment Without Paired Data” shows how separately trained language and vision models can be aligned without paired examples. But agreeing on broad categories doesn’t mean agreeing on the details.
Was Plato onto something? “Shared Geometry as a Rosetta Stone: Cross-Modal Alignment Without Paired Data” shows how separately trained language and vision models can be aligned without paired examples. But agreeing on broad categories doesn’t mean agreeing on the details.
Are you heading to @aiDotEngineer NYC next week? Say hi and lets chat 👐 We have folks from @OpenHandsDev in the city including @gneubig @rohit_malh5 and Clarke Shipley! We are having a small leaders dinner Tuesday, be ready for a deep but fun discussion on agentic software development. A few spots left, so DM me soon if interested!
The biggest performance gains are coming from harnesses, not models. Same models, different harness: 23% → 62%. My hands-on workshop @_odsc tests six common claims: → "Harnesses don't matter, I'll just use a coding agent" → "More tools make a better agent" → "More instructions, skills, and memory improve performance" → "Use the strongest model for every task" → "Give the agent an objective and let it run" → "What you need is a multi-agent system"
Quoting @krishdotdev: This is a great time to be alive. 1. OpenCode 2. OpenCut 3. OpenHands 4. OpenWebUI 5. OpenProject 6. OpenTofu 7. OpenGym 8. OpenObserve 9. OpenScreen 10. OpenBoard
Open is the way
Could text diffusion make AI faster? It starts with uncertain token positions and refines a block of text over several passes. Here’s how that compares with ordinary inference and speculative decoding, and where the speed gains come with quality tradeoffs.
Could text diffusion make AI faster? It starts with uncertain token positions and refines a block of text over several passes. Here’s how that compares with ordinary inference and speculative decoding, and where the speed gains come with quality tradeoffs.
September 2026
Need a primer on retrieval methods? Follow CupidBot as we show when to use Find, BM25, embeddings and RAG, rerankers, GraphRAG, and agentic search. It starts with one urgent question: when did this self-aware bot text “u up?”
Need a primer on retrieval methods? Follow CupidBot as we show when to use Find, BM25, embeddings and RAG, rerankers, GraphRAG, and agentic search. It starts with one urgent question: when did this self-aware bot text “u up?”
Making an AI agent forget sounds like a bad idea. But on long coding tasks, it keeps carrying old tool output into every new call. CliffCompaction trims that history when context fills up, while keeping recent work intact. In the paper’s OpenHands test with GLM 5.1, average cost fell from $1.01 to $0.69 per task, and run time fell from 900 to 592 seconds!
Making an AI agent forget sounds like a bad idea. But on long coding tasks, it keeps carrying old tool output into every new call. CliffCompaction trims that history when context fills up, while keeping recent work intact. In the paper’s OpenHands test with GLM 5.1, average cost fell from $1.01 to $0.69 per task, and run time fell from 900 to 592 seconds!
What does it take for a company to own its software factory? That question has been on my mind with OpenHands Enterprise 0.70. I asked Opus 5.5 to help tell the story in a short video. An agent can take on a task. A team needs to see and manage the work around it.
I expected stronger models to need less prompt text. Anthropic’s published Opus prompts went from 1,714 words in Opus 4 to 4,108 in Opus 5.5. Most of the latest increase is refusal handling. That section grew from 697 to 1,746 words, with more explicit instructions on child safety and other cases. Full analysis: rajivshah.com/blog/system-prompts-dont-get-shorter.html
I expected stronger models to need less prompt text. Anthropic’s published Opus prompts went from 1,714 words in Opus 4 to 4,108 in Opus 5.5. Most of the latest increase is refusal handling. That section grew from 697 to 1,746 words, with more explicit instructions on child safety and other cases. Full analysis: rajivshah.com/blog/system-prompts-dont-get-shorter.html
Better models mean less prompts is what we are told. Opus 5.5's prompt is 4,108 words. Opus 5 was 3,225. New models, prompts 📈 What happened?
Most classification problems do not need a chat model writing JSON one token at a time. Jev takes us back to the encoder side of the Transformer family. State plus typed questions go in, and probabilities come out. No autoregressive output loop. Jev is closed source, but Laya shows one plausible open-weight design using ModernBERT. This approach can classify text, detect prompt injection, triage tickets, and support smaller domain-specific models.
Most classification problems do not need a chat model writing JSON one token at a time. Jev takes us back to the encoder side of the Transformer family. State plus typed questions go in, and probabilities come out. No autoregressive output loop. Jev is closed source, but Laya shows one plausible open-weight design using ModernBERT. This approach can classify text, detect prompt injection, triage tickets, and support smaller domain-specific models.
DraftKings reportedly built an ML system to predict who would gamble more after a promotion.
DraftKings reportedly built an ML system to predict who would gamble more after a promotion.
OpenAI and Anthropic won’t show you this. Xiaomi is livestreaming the post-training RL process for its trillion-parameter MiMo model. You can watch the training steps, costs, data mix, learning signals, and even infrastructure failures. This is the messy process behind the polished benchmark table. Watch it live: https://mimo.xiaomi.com/rl/
OpenAI and Anthropic won’t show you this. Xiaomi is livestreaming the post-training RL process for its trillion-parameter MiMo model. You can watch the training steps, costs, data mix, learning signals, and even infrastructure failures. This is the messy process behind the polished benchmark table. Watch it live: https://mimo.xiaomi.com/rl/
Anthropic is worried about what happens when its most capable models leave the lab: unauthorized access, stolen credentials, coordinated agents, and copies running outside its control. Its response includes tighter safeguards, stronger model-weight security, defenses against distillation attacks, and a push to slow frontier AI development.
Anthropic is worried about what happens when its most capable models leave the lab: unauthorized access, stolen credentials, coordinated agents, and copies running outside its control. Its response includes tighter safeguards, stronger model-weight security, defenses against distillation attacks, and a push to slow frontier AI development.
I tried to fit 24 foundational ideas for AI into one video. This includes probability, data traps, learning theory, and what breaks after deployment. What else did I miss?
I tried to fit 24 foundational ideas for AI into one video. This includes probability, data traps, learning theory, and what breaks after deployment. What else did I miss?
OpenAI just showed what AI agents can do across software, business, and mathematics. Astra reverse-engineered binaries on SRE-Bench, ran a simulated business for a year on Vending-Bench 2, and OpenAI coordinated 10,000 agents on a proposed Navier-Stokes proof.
OpenAI just showed what AI agents can do across software, business, and mathematics. Astra reverse-engineered binaries on SRE-Bench, ran a simulated business for a year on Vending-Bench 2, and OpenAI coordinated 10,000 agents on a proposed Navier-Stokes proof.
I've always loved learning ML by playing with visualizations. I used Astra this weekend to capture all of my favorite visualizations in one place. Go change the data, compare algorithms, and watch how they behave. Clustering, Classification, anomaly detection, RL, and more, all in your browser.
Reinforcement learning makes more sense when you see the connections between algorithms. Q-learning works until the state table breaks. REINFORCE handles continuous problems, but the rollouts are noisy. A2C adds a critic. PPO reuses those expensive rollouts without letting one sample push the policy too far. Try the visualizations: https://rajivshah.com/arcade
Reinforcement learning makes more sense when you see the connections between algorithms. Q-learning works until the state table breaks. REINFORCE handles continuous problems, but the rollouts are noisy. A2C adds a critic. PPO reuses those expensive rollouts without letting one sample push the policy too far. Try the visualizations: https://rajivshah.com/arcade
AI reasoning is getting harder to read. Chain of thought gave researchers a window into what models were doing. Astra can solve much harder problems without writing that reasoning out at all. Reports connect it to looped transformers, where more computation happens inside hidden states before the next word appears.
AI reasoning is getting harder to read. Chain of thought gave researchers a window into what models were doing. Astra can solve much harder problems without writing that reasoning out at all. Reports connect it to looped transformers, where more computation happens inside hidden states before the next word appears.
Abliteration removes an LLM’s tendency to refuse by identifying a “refusal direction” in its internal activations, then projecting it out of the model’s weights. This can unlock legitimate cybersecurity research, but it can also remove a major safety barrier. Here’s how it works and why it matters.
Abliteration removes an LLM’s tendency to refuse by identifying a “refusal direction” in its internal activations, then projecting it out of the model’s weights. This can unlock legitimate cybersecurity research, but it can also remove a major safety barrier. Here’s how it works and why it matters.
Fable 5.1 is #1 on Vals and Anthropic still tells you most workloads should start with Opus.
Fable 5.1 is #1 on Vals and Anthropic still tells you most workloads should start with Opus.
Biography
Rajiv Shah is a data scientist who works on agent engineering at OpenHands. He previously worked at Hugging Face and Snowflake. He explains AI on X, Threads, Instagram and TikTok, where he uses the handle @rajistics.
Views on AI
On October 6, 2026, Shah wrote that the biggest performance gains are coming from harnesses, not models, citing a jump from 23% to 62% with the same models and different harnesses. He has questioned multi-agent systems. On October 25, 2026, he said subagents and multi-agent setups carry heavy coordination complexity for their payoff. On November 2, 2026, he said model diversity is important and a reason to keep agents model agnostic. On November 22, 2026, he described OpenHands as building an open agent platform that anyone can host and run themselves.
Workshops and talks
Shah ran a workshop at ODSC on the design of coding agents in late October 2026 and shared the slides and exercises afterward. He said on October 30, 2026 that he would present again at MLOps World in Austin the following month. On December 2, 2026, he described a 45-minute talk, Building a Better AI Agent, part of his Harness Engineering 2.0 material. In it he gave one model the same task of explaining a pull request, and the agent with Bash chose what to fetch while a custom tool bundled the evidence. He also wrote a free book, AI Problem Framing.
Questions and answers
Who is Rajiv Shah?
Rajiv Shah is a data scientist who works on agent engineering at OpenHands. He previously worked at Hugging Face and Snowflake and explains AI to a public audience.
What has Rajiv Shah said about harnesses and models?
On October 6, 2026, Shah wrote that the biggest performance gains are coming from harnesses, not models. He cited a rise from 23% to 62% with the same models and different harnesses.
What has Rajiv Shah said about multi-agent systems?
On October 25, 2026, Shah said subagents and multi-agent systems offer a lot of coordination complexity for their payoff. He said he had seen many anecdotes and papers that push back against the multi-agent frenzy.
Where does Rajiv Shah post?
Shah uses the handle @rajistics on four platforms: X (2,211 followers), Threads (3,400), Instagram (41,000) and TikTok (31,424).
Working out what this means for your business?
Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.