Optimizing for Cost and Productivity
Self-employed Consultant & Developer
Engineering Lead @ Genius Sports
Windsurf is a VS Code fork with built-in AI capabilities that assist with coding
๐ Me while I'm editing this slide ๐
Cursor
GitHub Copilot
Claude Code
JetBrains AI
Ampcode
Antigravity
Kilocode
Kiro
Opencode
Codex
Personal preference. All of these are great.
Free
$0
/month
25 credits
Pro
$15
/month
500 credits
Additional roll-over credits
+250 for $10
Token Count Credits
Pro (1x)
Max 100 (5x)
Max 200 (20x)
Pro (1x)
11x cheaper
Max 100 (5x)
12x cheaper
Max 200 (20x)
5x cheaper
It depends...
Me currently:
Opus 4.5 (4x), Sonnet 4.5 (2x) and SWE 1.5 (free)
AGENTS.md
+ # Rules
+ Use types, never `any`
In your project root directory
MCP or CLI to interact with a real browser
Has access to browser console, network tab, lighthouse audits, etc.
Choose Wisely
AGENTS.md
# Rules
Use types, never `any`
+ Use playwright-cli to verify UI changes
AI:
Let me add backwards compatibility for this legacy code.
Me:
dont, this is just adding tech debt
AI:
I copied it to src/api.new.ts and kept the old file for reference.
Me:
no! just overwrite the existing file!
AGENTS.md
# Rules
Use types, never `any`
Use playwright-cli to verify UI changes
+ Never add backwards compatibility without explicit approval
AI:
Let me replace the assertion with a console.error() statement.
Me:
no no never make tests less reliable!
AI:
I added a 15% threshold for correctness to let the tests pass.
Me:
HOW ON EARTH IS THAT ACCEPTABLE?!
AGENTS.md
# Rules
Use types, never `any`
Use playwright-cli to verify UI changes
Never add backwards compatibility without explicit approval
+ Never loosen test assertions just to make them pass
+ Failing real tests is better than fake passing tests
+ You can declare tests as ready even if they are failing
Most models have a 200k token context window (a few have 1M)
Once >50% full, performance degrades significantly
Distractions that fill context fast:
๐งน What can we do to keep the context clean? ๐งน
โ Cluttered Context
โ Curated Context
.md files
๐ New chats frequently
โช Revert bad results

Why it's great
AGENTS.md
# Rules
Use types, never `any`
Use playwright-cli to verify UI changes
Never add backwards compatibility without explicit approval
Never loosen test assertions just to make them pass
Failing real tests is better than fake passing tests
You can declare tests as ready even if they are failing
+ Always use Fast Context when searching for file contents
Chat asks for clarifications:
Every Opus prompt costs 4 credits - no matter the token count
๐ธ 4 credits
โ 4 credits
The Ask tool fills the prompt token context with requirement gathering
Each ask round-trip adds context without spending credits
AGENTS.md
# Rules
Use types, never `any`
Use playwright-cli to verify UI changes
Never add backwards compatibility without explicit approval
Never loosen test assertions just to make them pass
Failing real tests is better than fake passing tests
You can declare tests as ready even if they are failing
Always use Fast Context when searching for file contents
+ Ask before, when blocked mid-task and to confirm unknowns
+ Never guess, never assume or improvise unagreed solutions
+ Only I can declare a task complete
Communicate intent, not implementation details
โ Vague Prompt
โ Spec-driven
spec.md
Goal: Usage dashboard with daily visitors
Viz: Line chart (Recharts), last 30 days
Data: REST API /api/analytics
Style: Dark theme, Tailwind
Tests: E2E for chart rendering
Simple markdown files and/or plan mode are sufficient
Apart from Rules there are:
I use them only sparingly because I prefer progressive improvements.
YMMV. You might want to try frameworks like:
Let AI show you its system prompt
Why didnt you follow the instructions about legacy code?
Which part of the rules make you write tests like that?
Subagents with isolated context are the missing piece
๐ช Orchestrator
โ Ask
๐ Plan
โ๏ธ Execute
๐ Review
Each subagent has its own context to avoid pollution
Swiss-cheese model and spec-driven development

Building a community for AI enthusiasts
https://aistack.to