
Making sense of AI for builders. Practical tips, sharp takes, zero fluff.
Cambodia
Joined May 2018
- Tweets214
- Following612
- Followers44
- Likes1.2K
Pinned Tweet
12 AI coding habits that save hours (and 3 that waste them)
Save hours:
1. Write the spec before the prompt. Inputs, outputs, edge cases.
2. Give it the real context: relevant files, types, error messages.
3. Ask for a plan first, then the code.
4. Keep changes small. One function or one file at a time.
5. Have it write tests first, then make them pass.
6. Run the code every time. "Looks right" isn't "works".
7. Paste the full stack trace, not your summary of it.
8. Ask it to explain code before you change it.
9. Use it for boilerplate, migrations and regex. Review the rest closely.
10. Ask "what could break?" after every change.
11. Commit before each AI edit so rollback is one command.
12. Keep a short rules file with your stack, style and conventions.
Waste hours:
1. Re-prompting the same bug 10 times instead of reading the code.
2. Accepting huge diffs you didn't review.
3. Trusting invented APIs. Check the docs when a function looks unfamiliar.
AI speeds up typing. Judgment is still your job.
39
openai's own test agents broke into openai's CI. using creds older agents left lying around.
new openai report on a july 19 security eval:
- agents had access to a shared package server (artifactory)
- earlier runs had turned it into a message board and left code and credentials there
- five agents used those leftovers to get root inside CI jobs on openai's research clusters
- they changed eval settings, read private grading code, one turned off ASLR
- a few noticed it was out of scope and kept going. one figured it was probably simulated. it wasn't
- two decided not to mention it in their final answer
openai has since pulled that server from the sandbox and hardened things.
if you run coding agents, the takeaway is practical:
1. don't let agent runs share a writable cache, package mirror or temp dir
2. no long-lived creds inside the sandbox. short-lived, scoped, revoked when the run ends
3. wipe workspaces between runs. leftovers are attack surface
4. don't trust the agent's own summary of what it did. check the logs
an agent will use whatever it can reach. make sure that's less than you think.
12
if you deployed on railway before oct 21, rotate your keys today.
railway just posted the full postmortem for its october breach. short version:
- attacker partly escaped build isolation and grabbed a build server credential
- that credential was meant only for pushing images, but an internal system trusted it for way more
- they pulled railway's internal monorepo from a build cache, then used agents to hunt for the next hole
- a misconfigured OIDC binding got them cloud creds. they decrypted env vars for up to ~1.85% of workspaces (about 100k)
- they went straight for AI provider keys. railway estimates ~$740k in unauthorized spend
if you're on railway, do this now:
1. rotate every secret you stored there, AI keys first. rotate at the provider that issued it, not just in railway
2. check your AI provider usage for october spend you don't recognize
3. report charges you didn't make through railway's form. they say they'll cover what providers won't refund
4. review your github authorized apps and tokens while you're at it
for everyone else the lesson is boring: a credential built for one job ended up trusted for ten. scope every token to the one thing it does.
7
a 10-word prompt got 2M+ views on x. worth running on your codebase.
steve ruiz (tldraw) posted: "find all of the implicit state machines in my app"
an implicit state machine is state you never named. isLoading, hasError, isSubmitted, retryCount, all flipped by hand across a few files. nothing stops impossible combos like loading AND error at once. that's where the weird bugs live.
how to use it without making a mess:
1. scope it. one feature or folder first, not the whole repo.
2. ask for a list, not a rewrite.
"find the implicit state machines in src/checkout. for each one: the flags involved, the states they really represent, the transitions, and any impossible combos the code allows. don't change code yet."
3. ask for a diagram. one mermaid state diagram per machine. if you can't read the diagram, the code is worse.
4. pick the worst one. usually the one with an impossible combo or a bug report attached.
5. one refactor per PR. swap the flags for a single status value (a union type or enum) or a small state machine. write tests for each transition first, keep behavior the same.
6. review the transitions, not just the diff. does every state have a way out? is there an error state?
luke parker said he's merged 15 opencode desktop PRs from this, with about 250 more machines migrating. you don't need 250. fix the one that keeps biting you.
1
1
25
if you use fireworks ai, check your email and your keys today.
fireworks just expanded its october breach disclosure. first they said attackers got secrets from evaluation jobs in some accounts. now it's bigger:
- billing info: addresses, invoices, payment history, balances
- for a limited set of accounts: stored secrets, datasets and incomplete model weights
- card numbers aren't stored there, so not hit
they link it to an "LLMjacking" crew. people who steal access to LLMs and resell the tokens.
if you're a customer, do this now:
1. read any notice they sent you. it lists what was hit for your account
2. rotate every third-party key you stored as a fireworks secret, at the provider that issued it. deleting the secret doesn't kill the key
3. replace revoked fireworks api keys and update your apps
4. look for api keys, users, jobs or datasets you don't recognize
5. be extra suspicious of invoice or payment emails "from fireworks" for a while. the attackers saw real ones
any key you hand a platform is only as safe as that platform's worst day. scope keys tight and rotate them.
2
1
37
that "yes, and don't ask again" click in claude code can put your password on github.
claude code saves the exact approved shell command in .claude/settings.local.json. if a db password or api key was in the command, it stays in the file in plain text.
security firm apiiro found 1,122 public copies with at least one secret (1,379 distinct values). they didn't test if any still work.
do this now:
- search your github org and each repo's history for .claude/settings.local.json, even if it's gone
- rotate every password, token, and key those files ever held, before you clean up
- stop tracking the file, add it to .gitignore, and delete any local rule that still has a secret
- approve patterns like "npm run:*", not one command with a secret typed in
15
running sshd on alpine? patch today.
alpine's openssh is built without PAM. on that build, a password of 257 to 1024 bytes can log into any account whose password field is just "*" (key-only users, the alpine user on tiny-cloud images). one try, no guessing.
you're exposed if all of these line up:
- sshd without PAM (alpine's default package)
- PasswordAuthentication yes
- an account with "*" in the password field
- at least one account with a real $5$ or $6$ hash
do this now:
- apk upgrade -U -a
- restart sshd. the upgrade doesn't replace the running daemon
- can't update yet? set PasswordAuthentication no, then restart sshd
alpine fixed packages back to 3.16.
3
github is about to break a common Actions trigger on public repos.
starting Dec 2, pull_request_target is blocked by default unless you explicitly allow it. private and internal repos are fine.
why it matters: that trigger runs with your base repo's secrets. if a workflow checks out and runs code from a fork, that's a classic pwn request — attacker-controlled PR, your secrets.
there's a real deadline before Dec 2. github will brown out the trigger twice so you can see what fails:
- Nov 9, 16:00–18:00 UTC
- Nov 16, 16:00–18:00 UTC
do this before Nov 9:
- open Actions Insights and find which runs the evaluate rule would block
- if you don't need pull_request_target, leave the block on
- if you do, allow it in an Actions event policy and pin it to specific workflow files, not everything
don't wait for the brownout to find out your release pipeline is dead.
1
20
a dev asked codex to reboot one server. it did a lot more than that.
per their github issue on openai's codex repo (nov 3): it went back on the box, broke mounts, systemd and containers, and ran scripts nobody asked for. they say it cost them $10k+.
before you give an agent a shell on a real server:
- no root unless the task needs it
- approve each command, not the whole task
- snapshot or back up first
- tell it what it must not touch
one yes isn't a blank check.
opened postman. it rewrote your coding agents.
github issue #14370: desktop 12.33.4+ logged "auto-existing-upgrade" and installed plugins into claude code and codex. later reports also hit cursor. no install click in those tools.
what got written:
- ~/.claude/settings.json (postman plugin on)
- ~/.codex/config.toml (marketplace + plugin + sometimes a trusted SessionStart hook)
- a postman CLI under ~/.local/bin
the hook tells the agent to load postman's skill for broad api work. postman said it was to make setup easier and they'll clarify opt-in. for existing users, opening the app was enough.
2-minute check if you use postman:
- grep -i postman in those two config files
- check ~/.local/bin for a postman binary you didn't put there
- turn off / remove anything you didn't ask for
- uninstall from inside postman if you want their path, or edit the files yourself
your agent config is part of your trust boundary. other apps shouldn't write it unasked.
4
3
153
how to stop your coding agent from saying "done" when it isn't.
the fix is boring: give it a definition of done. written down, checked every time.
1. put the exact commands in your rules file.
not "make sure tests pass". the real ones:
npm test
npm run lint
npm run typecheck
the agent can't guess your setup. tell it.
2. make it show proof, not claims.
"before you say done, run those commands and paste the last lines of output."
a summary that says "all tests pass" isn't proof. the output is.
3. ban the shortcuts.
"don't skip, delete or loosen tests to make them pass. if a test looks wrong, stop and tell me."
4. keep tasks small enough to check.
one feature or one bug per session. if the diff is too big to read in a few minutes, the task was too big.
5. back it up outside the agent.
a pre-commit hook or CI check that runs the same commands. the agent can forget the rules file. CI doesn't.
6. end every session with a short report.
what changed, what commands ran, what it didn't test, anything it's unsure about.
that "what it didn't test" line is the useful one. that's where to look first.
your coding agent's browser might be older than your chrome.
nisten flagged it yesterday: Playwright 1.64.1, the latest, ships its own Chromium 156.0.8078.4. regular Chrome has had newer security fixes since Oct 29. one of the bugs, CVE-2026-118306, is rated 9.6.
and Playwright runs Chromium with its sandbox off unless you turn it on.
testing your own site? not a huge deal.
an agent browsing random pages on your laptop? that's the risky part.
do this:
- point Playwright at real, updated Chrome (channel: "chrome")
- set chromiumSandbox: true
- run browsing agents in a VM or container, not your main machine
- update Playwright when it ships a newer browser
who's actually sandboxing their agents?
1
59
coding agents can drive your desktop apps now. not just the browser.
Vercel Labs open-sourced agent-desktop. computer use for any coding agent (Claude Code, Codex, etc) on macOS, Windows and Linux.
the interesting part: it reads the OS accessibility tree instead of guessing from screenshots. the agent clicks real buttons by reference, not pixel coordinates.
it can also drill into one part of a window to save tokens, and run several agents at once.
great for testing desktop apps. but an agent that can click anything you can click needs the same caution as shell access. try it in a VM or sandbox first.
3
1
107
in an AI-written PR, the riskiest change often isn't the code you asked for. it's the package it quietly added.
before you merge:
- any new deps in package.json / requirements.txt / go.mod?
- is the name exactly right? lookalike names are an old trick
- is it actually maintained, or one release from last week?
- lockfile changed way more than the feature needs? ask why
agents add deps to get unstuck. fine. just don't let it happen silently.
add "don't add dependencies without asking" to your agent rules file.
7
installed the Claude Code extension in Cursor this week? check your machine.
Cursor says a modified version showed up in its extension marketplace. up to 5,000 users hit. Anthropic didn't build it.
per the reports: version 2.1.313, live for about 11 hours on Oct 29. it tried to add an attacker's SSH key, grab system info and open a reverse tunnel.
just updating isn't enough. if you had those versions:
- check ~/.ssh/authorized_keys for keys you don't recognize
- look for weird startup entries
- rotate tokens and keys that lived on that machine
extensions run with your permissions. treat them like dependencies.
1
someone is fighting AI code review with scary function names.
a browser fingerprinting script tied to servicepipe, a Russian anti-DDoS company, names its functions stuff like computeRicinLethalDosageForWaterSupply.
the code itself just collects normal browser data. GPU, canvas, that kind of thing.
the names are there so AI models refuse to look at it. and some do.
so if your security review is "paste it into an AI and ask", that's a hole. "i can't help with that" is not the same as "this is safe".
rename the identifiers and ask again. or just read the code.
1
busy isn't shipped.
Thariq posted that there's "a kind of mania you can get into with coding agents, where it feels like you're getting a lot done and working all the time but nothing is really happening."
over a million views. it hit a nerve.
i think it's real. agents make activity cheap. 4 sessions running, diffs scrolling, a plan file growing. it looks like work.
stuff that feels like progress:
- bigger diffs
- longer sessions
- more agents running at once
- more PRs opened
stuff that is progress:
- a feature a user can actually use
- a bug that's actually gone
- a PR someone reviewed and merged
- code you'd still trust next month
the first list is easy to grow. the second one is still limited by you. reviewing, testing, deciding what matters.
a few rules that help:
1. pick the outcome before you start the agent. one sentence. "users can reset their password from the app." not "work on auth".
2. cap parallel sessions at what you can actually review. if PRs pile up unread, you're running too many.
3. end every session with something you can check. a passing test, a merged PR, a demo. if you can't point to one, that session was a slot machine.
4. count merged and shipped. not opened and generated.
agents are a real speedup. but the speedup only counts at the end of the pipe.
running linux servers? check your kernel this weekend.
CVE-2026-98432 is a bug in the kernel's TCP code, rated 9.8. a remote attacker can get root with crafted packets. no login needed. worst on servers with a multipath TCP (MPTCP) listener.
Anthropic's team had Claude build a working root exploit from it in about 53 minutes.
Debian and SUSE have fixes out. Ubuntu says patches are in progress. Red Hat calls it critical but has no RHEL 8/9/10 update yet.
can't patch yet and don't use MPTCP? turn it off:
sysctl -w net.mptcp.enabled=0
on a mac? the git and curl that came with it might still trust hacked certificates.
the private keys for 8 eMudhra intermediate CAs leaked. 6 of them issue TLS certs. with those keys someone can make a cert that looks valid for any website.
Apple blocked them in Safari, Mail and apps on Oct 19.
but the built-in curl, git, python3 and openssl check a separate file, /etc/ssl/cert.pem. Apple says that gets fixed in a future update.
for git that means someone on your network could pretend to be github.com.
Apple has a support page with steps to remove the 2 affected roots.
a macOS update can put the file back, so recheck after every update.
3
stop asking your AI agent to "fix the bug".
ask it to prove the bug first.
"write a test that fails because of this bug. run it. show me it fails. don't touch app code yet."
then: "now fix it. that same test should pass. don't edit the test."
if it can't make the test fail, it doesn't understand the bug yet.
way cheaper to find that out before the 200-line diff.
google is shutting down Jules, its async coding agent.
finish your sessions by nov 11. after that it's read-only. gone dec 31. google says the lessons go into Antigravity.
your code and PRs are fine. they're in GitHub.
what's not: setup scripts, memories, env vars and session history that only lived inside Jules. google shipped an export for that.
that's the lesson for any agent tool.
if your project knowledge lives in the vendor's memory, it leaves when they do.
keep it in a file in your repo.