Nikita Shpilevoy (@nickshpil) header
Nikita Shpilevoy (@nickshpil) profile picture

AI-Native Development Architect Startup creator

Joined September 2019
Photo by Nikita Shpilevoy (@nickshpil)Photo by Nikita Shpilevoy (@nickshpil)Photo by Nikita Shpilevoy (@nickshpil)Photo by Nikita Shpilevoy (@nickshpil)Photo by Nikita Shpilevoy (@nickshpil)Photo by Nikita Shpilevoy (@nickshpil)Photo by Nikita Shpilevoy (@nickshpil)Photo by Nikita Shpilevoy (@nickshpil)Photo by Nikita Shpilevoy (@nickshpil)Photo by Nikita Shpilevoy (@nickshpil)
Hi 👋, if you are intrigued with: 🐍 Python 🤖 Golang 🖥️ Backend 🪄 Data Science 🔨 Career Advice Follow me.✔ I'm planning on using Twitter to share a lot of content, that you won't want to miss. 🎉
10
8
1
52
#MCP spec release candidate: Beta SDKs (Python, TypeScript, Go, C#) are out for the July 28. The biggest protocol revision yet. Key protocol changes: Stateless core - no more initialize handshake or protocol-level sessions; capabilities via server/discover. Any server instance handles any request, so plain round-robin load balancing works. MRTR - tools can return InputRequiredResult to ask the user something mid-call, no long-lived stream needed. Routing headers - Mcp-Method/Mcp-Name on requests so gateways can route without parsing bodies. Auth hardening - iss validation, application_type in DCR (fixes localhost redirects for desktop/CLI clients), scope accumulation, credential binding. Standard error codes - missing resource is now -32602, not custom -32002. Roots, sampling, and logging deprecated (advisory only, still work). P.S. Python v2 renames FastMCP → MCPServer (pip install "mcp[cli]==2.0.0b1"); TypeScript v2 splits into server/client packages, ESM-only, Node 20+, Standard Schema support, with a v1→v2 codemod; Go (v1.7.0-pre.1) and C# (2.0.0-preview.1) keep existing APIs. blog.modelcontextprotocol.io… #aiagents #devtools
1
2
87
Nikita Shpilevoy retweeted
Fable 5 is back.
4,226
10,948
5,015
89,828
17,367,331
Nikita Shpilevoy retweeted
Claude Code creator, Boris Cherny: "Going from agents to loops is as big a jump as going from code to agents." 40 minutes of the head of Claude Code showing exactly how he works now. Loops running his code reviews, his maintenance, his fixes, on their own. Watch it, then read the full breakdown of loops below.
61
167
9
1,393
378,012
When I first started building AI products, I thought the future belonged to fully autonomous agents that handle everything on their own. But after a year of developing and testing #llm-based processes, I've come to almost the opposite conclusion. The systems that work best for me are ones that: - solve a very narrow problem - have clear success criteria - use as few agent loops and interactions as possible - work with structured outputs - keep a human involved at the key decision points Meanwhile, a lot of my experiments with "fully autonomous" agents looked impressive in demos but turned out to be expensive, unpredictable, and hard to maintain in real-world use. What surprised me most was this: A simple process made up of: - finding and pulling the data you need - a single call to the LLM - a layer that checks the results - a human review (when the model's confidence is low) often performed better than far more complex agent architectures. I'm curious: has anyone else run into the same experience?
31
AI won't replace product managers, designers or developers. But it quickly shows where a team lacks trust. AI lowers the barrier to neighboring skills. The old question was who owns this work. The new one is who is best placed right now to move it forward. In strong teams this creates speed. In weak ones it creates fear, and frightened people defend their turf instead of the product. So roles stay valuable but become a base not a fence. The best teams keep deep skills plus enough trust to cross lines when it helps. What matters most is strong judgment, real craft and low ego. The goal isn't to protect your chair. It's to build something worth sitting at the table for. #llm
1
3
46
You probably shouldn’t think of LLM-as-a-judge as a unit test. Unit tests assume determinism: same input, same output, and a clean pass/fail signal. LLM systems don’t behave like that. The model you evaluate is stochastic, and the judge is stochastic too, so any single verdict is just a noisy sample. Once you treat a single judge call as a CI gate, you end up with something closer to a flaky benchmark than a test. Run it again and you may get a different answer. Swap the judge model and the ranking can shift. Even temperature 0 doesn’t fully remove variance, and judges often disagree in ways that are not negligible. There’s also a structural bias problem. Judges tend to reward surface properties like fluency, formatting, verbosity, or familiar stylistic patterns. That means you can improve scores without improving correctness, just by aligning with what the judge “likes”. This is where Goodhart’s law shows up: optimize the score and you drift away from real quality. So the right mental model is measurement, not assertion. You don’t “pass/fail” a single run. You sample, aggregate, compare distributions, and validate against humans when possible. LLM judges are useful, but only when treated as noisy evaluators inside an experiment, not as unit-test replacements. #programming #llm #llmdev #ai
2
1
66
Nikita Shpilevoy retweeted
Karpathy's prediction about RL is coming true now! He called reward functions unreliable and argued that a single reward number is too low-dimensional to teach an agent what "good" means for complex tasks. To solve this, Agents need a knowledge-guided review as a higher-dimensional feedback channel. Every major AI lab trains models with RL today (OpenAI, Anthropic, DeepSeek). And their key bottleneck has always been the reward functions. GRPO by DeepSeek worked well for math and code because the environment gave a binary signal. But for real agent tasks, someone still has to hand-code the scoring function. That takes days and breaks every time the pipeline changes. RULER (implemented in OpenPipe ART, 10k stars) addresses the exact problem Karpathy identified. The reward criteria are defined in plain English, and an LLM evaluates each trajectory against that description to provide feedback for training. I trained a Qwen3 1.4B agent that plays 2048 using GRPO with this exact workflow. In this case, the agent saw the board, picked a direction, and RULER evaluated the outcome, all from this natural language definition. You can see the full implementation on GitHub and try it yourself. Here's the ART Repo: github.com/OpenPipe/ART (don't forget to star it ⭐ ) Just like RLHF replaced manual rankings and GRPO replaced the critic model, natural language rewards are replacing hand-coded scoring functions. RL reward engineering is now prompt engineering. I wrote a full walkthrough on OpenPipe's ART, the agent RL trainer built on GRPO, including how RULER replaces manual reward engineering with automatic LLM-graded rewards. The article is quoted below.
42
167
7
1,257
220,513
Nikita Shpilevoy retweeted
🚨BREAKING: A new open-source multi-agent LLM trading framework in Python It's called TradingAgents. Here's what it does (and how to get it for FREE): 🧵
5
29
1
196
17,483
Sum-product conjecture for real numbers is false: arxiv.org/abs/2605.28781 Given a finite set A ⊆ ℝ, the question was whether either the sumset A+A or the product set AA must be almost quadratic in size, i.e. max(|A+A|, |AA|) ≈ |A|² up to lower order terms. The conjecture said you can’t have strong additive and multiplicative structure at the same time A construction now shows arbitrarily large sets A (built from algebraic integers in number fields of degree about log|A|) where both operations stay small: max(|A+A|, |AA|) ≤ |A|^{2−c} for some absolute constant c > 0. This gives a clean counterexample and suggests other longstanding combinatorial conjectures of similar flavor may also fail. #math #combinatorics
35
It's frustrating to see individuals use the term "artificial intelligence" as if it were magic that could solve problems they don't comprehend.
1
1
70
If you're looking for a language-agnostic analog to Apache #Airflow, meaning an orchestration tool that doesn't assume Python as the primary interface or language for task execution, here are some notable options: 1. Argo Workflows 2. Prefect 3. Temporal 4. Dagster 5. Apache NiFi
1
95
1. Argo Workflows Language: YAML-based + containerized tasks (language-agnostic via Docker) Best for: Kubernetes-native environments Core Concept: Define workflows as Kubernetes CRDs; each step is a container Pros: - Truly language-agnostic (run anything that fits in a contain
38
Tools for Efficient Wrangling For large datasets, manual methods fall short. Tools like Trifacta Wrangler and OpenRefine offer no-code interfaces for data wrangling, while KNIME and Python libraries provide advanced capabilities for those comfortable with coding
51
Data Wrangling ≠ Data Cleaning Data wrangling goes beyond cleaning. It involves transforming raw data into structured formats suitable for analysis—standardizing formats, parsing, merging sources, and enriching datasets.
21
#Python hint: Be Careful with Large dicts and Memory Fragmentation dict is dynamic and may waste memory due to resizing. If you have millions of keys, consider:
39
#Python tip Using """ if key in my_dict: """ is faster than """ if key in my_dict.keys() """ because: 1. Direct Dictionary Lookup `if key in my_dict:` directly checks for key existence using a hash table lookup, which is O(1) on average. 2. Avoids Creating a dict_keys View `my_dict.keys()` creates a `dict_keys` view, which still supports fast membership testing, but it’s an unnecessary method call that adds slight overhead. Let’s test the performance using:
1
1
67
#Python Overuse of Global Interpreter Lock (GIL) in Multi-threading A lot of devs misuse threading in CPU-bound tasks, thinking it will improve performance. It won’t — because of the GIL.
47
Trick: If you can't parse JSON (e.g., it's a dict copied from logs with single quotes), try ast.literal_eval() — it safely converts it into a #Python dict:
42
Russian stock market surges this morning after Trump’s 'peace plan. Congrats, America. You just made Russia great again!
2
5
658