Ehsan Ahmadi (@ehsanahgh) header
Ehsan Ahmadi (@ehsanahgh) profile picture
Istanbul, Turkey
Joined November 2013
Ehsan Ahmadi retweeted
asked Claude to visualize my software factory 😄 share yours below to compare and learn from each other
56
25
4
661
50,630
Ehsan Ahmadi retweeted
Introducing TanStack Oracles 🔮 An early preview of a framework for defining how software should behave and testing real implementations against those requirements. It helps coding agents find bugs and strengthen the checks as they learn more about your code. Try it: tanstack.com/blog/introducin…
28
98
40
1,307
146,506
Ehsan Ahmadi retweeted
New harness-audit command in Claude Code Run: /claude-api harness-audit It audits your agent harness to: - Identify code designed for older models - Review loop limits, subagents, and context management - Detect unnecessary workarounds and injected reminders - Identify parameters that need recalibration - Propose fixes as code diffs - Generate a verification plan The entire audit is read only, it doesn't execute or modify your project code
36
33
5
508
41,633
Ehsan Ahmadi retweeted
here's a prompt you can try Audit all unstructured agent-facing text in this repo (AGENTS.md, skills, cursor rules, architecture/spec markdown docs) and replace as much of it as possible with executable code, types, lints, and tests. Then prove empirically what text actually earns its context window. 1. Inventory: list every doc, rule, and skill file, its byte size, and classify each claim into: - Restates code or types (delete) - Mechanically enforceable (convert into a linter, compiler check, typed API, or test, then delete the prose) - Irreducible judgment call (candidate to keep, only if concise) 2. Prune and enforce: move enforceable rules into CI/lints/tests first, delete the dead prose, and shrink root instructions to only what automated checks cannot catch. 3. Run a blinded ablation eval before keeping any remaining instructions/skills: - Pick 1 to 2 representative real tasks from this repo with an objective rubric and stress tests. - Pre-register a prune rule before running (for example: drop the larger text set unless its median beats the smaller set by at least 2 points). - Run 3 fresh isolated replicates per condition on clean commits that differ ONLY in the text under test: - A: full current instructions/skills - B: domain-only instructions - C: minimal root instructions only (0 skills/extra docs) - Audit transcripts for leaks (verify which files were actually opened vs just sitting in the system prompt). - Grade blinded diffs + built artifacts only (strip branch names, SHAs, and notes) using a separate judge model + automated probe tests. 4. Report the scorecard, which docs/skills were never opened, where extra text hurt or helped, and delete everything that fails the pre-registered prune rule. Turn any recurring failure modes into tests or lints, not new prose.
240
619
136
9,448
657,733
Ehsan Ahmadi retweeted
increasingly feel like most if not all of the unstructured text you have in your codebase is a liability if you're being disciplined about it you should run evals. you may be surprised to see that it can hurt model performance much better to make it obvious in code so no text is needed
303
272
115
6,632
587,003
Ehsan Ahmadi retweeted
Meet Rex, now publicly available. Make any machine in the world feel like localhost. Clients on macOS/iOS (Windows/Linux still in testing), servers for Linux, FreeBSD, and Windows. superlogical.com/rex
434
1,092
434
10,749
740,215
Ehsan Ahmadi retweeted
We've been tuning our software factory for a few months now based on our team's usage habits, agentic self-improvement, and benchmarks against our own data. This is what our pipeline looks like today, defined as code in a factory.yaml file and visualized as a state diagram. First, the stages: research, triage, design exploration, spec, implementation, security-check, and code review. Research is an optional starting phase that uses a lightweight model (Luna series) to answer questions about the codebase. It completes in a separate, read-only worker to collapse findings into a small report. For actual code changes, we hand off to our task worker, which handles the majority of work in a single context window. "Start" is the first stage here. It lets the agent route a task based on the user's ask: • If asked to mock something out, go to the "design exploration" stage • If asked for a plan, go to "spec" • If given a trivial assignment, go to "implement" • If asked to review a PR, go to "review" • If the ask is ambiguous, or the scope of the task is unknown, go to "triage." All of these branches are defined as "transitions" in our factory, paired with human-in-the-loop checkpoints at key decisions. Agents declare when they're transitioning from one stage to the next, and can use their judgment on what happens during that stage (including arbitrary subagent swarms or other orchestration strategies). For tasks that land in "triage," the agent will track work on our taskboard (Linear) and investigate the scope to decide what to do next. It may ask the user questions about design requirements, recommend a spec before building, and proceed to implementation once open questions are resolved. From here, we have our verification checks. "Review" is an interesting stage, because it's a code review step the agent can decide to skip on low-risk changes. Most teams seem to require adversarial code review on all PRs, but in our own benchmarking, we found the quality gains on obvious changes were marginal compared to the added token cost on every PR. Review is the default, but the agent can skip it when a change's full effect is obvious on sight (copy tweaks, flag flips, or config changes). We've also added "security-check" recently, which runs a dedicated pass whenever a diff touches security-sensitive surfaces, and can escalate to human review with proposed changes. We'll report how this affects code quality the more we test it. We also have verification baked into the "implement" stage, notably end-to-end UI verification. We include a skill on how to sandbox our application, and let the agent click around what it built using computer use. This is included as a default subagent for anyone using Warp Factories. Outside of this software factory chain, we've also been experimenting with a second agent graph for QA. This defines a set of steps for agents to review our app holistically, waking up on a cron schedule to spot bugs that snuck into our frontend.
52
36
8
599
64,834
Ehsan Ahmadi retweeted
We just shipped "bring your own sandbox" in @rakazobot with Boat. Sign in to your Boat account and your bots run on your own sandbox instead of ours. Why it matters: - It's yours. The machine and its files live in your account. Leave Rakazo and they stay with you. - One machine, many agents. Reach the same sandbox from Claude Code or Codex. - It doesn't use your Rakazo computer hours. Most AI products try to lock you in. We'd rather you own your data, and we're glad to have @boatdotdev and @AniC_dev with us on this. Try it out: rakazo.com Star the repo: github.com/elie222/rakazo Rakazo is the #1 Grok Bot alternative and fully open source.
introducing sign in with boat.dev add it to your product, like "sign in with github": - your users connect their boat account to your product - they choose what it can do: what permissions, which organization, what sandboxes - standard OAuth 2 with PKCE - set up from the dashboard or the CLI the 3 coolest projects using this I will have seen on X before demo day on Dec 2 get 5k in boat credits docs.boat.dev/oauth-apps
32
19
7
68
17,288
Ehsan Ahmadi retweeted
I'm honestly starting to think people should completely throw away their review step and put more effort upfront in creating validation/review gates on the actual work -> manually test it -> provide feedback and repeat The code is solved, verify with actual using the output
37
14
9
246
29,433
Ehsan Ahmadi retweeted
Hell yes! Think: what proof would you need so that you feel comfortable merging something without looking at the code? Then ask the agent to provide the proof. It might need to build some tooling before, but it's so worth it.
I'm honestly starting to think people should completely throw away their review step and put more effort upfront in creating validation/review gates on the actual work -> manually test it -> provide feedback and repeat The code is solved, verify with actual using the output
55
16
7
310
26,535
Ehsan Ahmadi retweeted
The biggest enabler for us to ship hundreds of PRs per day per engineer and stop reading any code was to go all-in on headless e2e tests with digital twins. Unit tests mostly became useless, current agents are good enough to not get some local logic wrong. But if your tests test only user level behavior in a deterministic and fully realistic environment, you can make it very difficult for your agents to ever break anything in production. Headless e2e tests means that you give your agents a way to control the product in a programmatic way without needing to use UI. You still need a lot of additional tests with UI, but these are typically slower, and much more flaky. Digital Twins are fully functioning mock versions of all the services you integrate with. For us this is Stripe, Slack, Gmail and hundreds more. We have per test an fastapi web server running, that mirrors all the api routes of all these services. i.e /slack/messages/… And the app during testing then just swaps the base urls. They get seeded with the initial state the test needs and are fully statefull (i.e if you send a slack message to it, it will later be visible in the search endpoint). This means we never have to worry about a flaky google oauth process in tests or about difficult to test race conditions with stripe. It’s honestly now very easy to build all this in a day and instantly make it very difficult to break anything. Just give above as prompt to your agents.
91
55
16
1,241
130,818
Ehsan Ahmadi retweeted
“You want to own businesses that get better as the models get smarter.” - Brad Gerstner Can you think of examples that aren’t already selling models and harnesses?
26
2
1
33
9,750
Ehsan Ahmadi retweeted
Added a model-based testing skill to Stately Skills 🧪 Your agent models app flows as state machines, then Playwright tests *every* path through it > "test the checkout flow with model-based testing" > "replace our onboarding E2E tests with MBT" github.com/statelyai/skills/…
20
23
1
252
9,220
Ehsan Ahmadi retweeted
Small, specialized models are way cheaper and faster than using a general model for every task. These guys have built 5 of these models: 1. Classify - Assign labels to text 2. Extract - Pull structured fields from text 3. Summarize - Turn long text into a short summary 4. Compress - Trim context before an LLM call 5. Toolcall - Pick a function and fill in its arguments 200x faster inference 467x lower cost
We're giving everyone free AI for all of December to celebrate our $5M pre-seed led by @MenloVentures Every ScaleDown Constrained Decoding Model (CDM) is built specifically for one task, with outputs constrained to the input context If you're using LLMs today, you can now: • cut your AI bill by up to 467x • make your agents up to 200x faster • get results that are 15% more consistent • answer correctly 13% more often scaledown.ai
28
21
1
222
31,966
Ehsan Ahmadi retweeted
We're giving everyone free AI for all of December to celebrate our $5M pre-seed led by @MenloVentures Every ScaleDown Constrained Decoding Model (CDM) is built specifically for one task, with outputs constrained to the input context If you're using LLMs today, you can now: • cut your AI bill by up to 467x • make your agents up to 200x faster • get results that are 15% more consistent • answer correctly 13% more often scaledown.ai
326
280
218
3,550
1,599,026
Ehsan Ahmadi retweeted
your prompts should feel a little delusional • make this 100x faster • delete half the codebase without breaking anything • turn every bug we've ever fixed into a property test • find all implicit invariants, formally prove them or find counterexamples
1,127
2,165
813
36,632
4,122,348
Ehsan Ahmadi retweeted
Some prompts are worth running often. So, I schedule these: 1. Improve CI speed 2. Find and fix technical debt 3. Improve codebase architecture 4. Fix comments/conflicts on my PRs For 1-3, I use a cloud routine, GitHub action, or cron. For 4, I use Claude Desktop's scheduled tasks since it's personal.
36
7
2
211
15,384
To a vibe-coder, software is one prompt: "Claude, build me an app." To a developer, it's dozens of decisions before the first real user logs in. Look at the left side of this image. That's what "build me an app" really means: → Requirements and a domain model, so you build the right thing → API and database design, so it can change next month → Auth, security and secrets, so it isn't the next breach → Logging, tracing and monitoring, so you know when it breaks → Tests, code review and CI/CD, so it doesn't break twice → Caching, concurrency and idempotency, so it survives real traffic → Backups, on-call and cloud cost, so it stays alive after launch AI writes code fast. Claude can write a login page in 5 minutes. How JWT tokens get stored, refreshed and revoked is still your decision. A vibe-coded app looks great in the demo or for 100 users. Then the first 1000 real users show up. What would you add to the left side?
22
9
69
3,465
Ehsan Ahmadi retweeted
The /stately skill now uses @mattzcarey's `everystate` automatically if installed: fast, Rust-based TLA+ model checker. There's also a built-in XState checker if you want to quickly check your statecharts directly & skip TLA+ Try it out! github.com/statelyai/skills/…
I wanted to try out @tobi's advice on finding the implicit state machines in a codebase and using a TLA+ model to find bugs. I handed my agent @mattzcarey's new everystate, a TLA+ model checker built in Rust (not Java). It found 8 bugs in a personal repo, including one that leaked Durable Object containers forever. The checks all run in under a second. Matt cooked. github.com/mattzcarey/everys…
12
27
1
488
20,157