frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: How to get Codex to stop coding so defensively?

1•rishabhpoddar•2h ago
I primarily use typescript, and Codex tries and makes all fields in a type optional even though its obvious that optionality is not needed. It also uses tons of try / catches, swallows the errors and returns null / false from functions.

What I want is for it to use asserts instead of optionals, for it to let errors propagate.

What I have tried so far: - Specify my preferences in AGENTS.md file many times, yet it doesnt seem to make any difference in this aspect. - The rest of my code base does use asserts, and does not have unnecessary optionals, and yet it doesn't pick up that pattern.

What does work is that once it's done coding, I specifically tell it to go through the code and remove unnecessary optionals, and add asserts instead of defensive if conditions. But here too, I have to tell it to do so multiple times.

Any ideas to solve this would help. Thanks!

Elephant in Cairo

https://en.wikipedia.org/wiki/Elephant_in_Cairo
1•Eliand•1m ago•0 comments

Computer History Museum unveils comically large Macintosh Plus

https://www.tomshardware.com/pc-components/case-mods/computer-history-museum-unveils-comically-la...
1•rbanffy•3m ago•0 comments

Pa. high school students bloodied, handcuffed during ICE protest

https://www.pennlive.com/crime/2026/02/pa-high-school-students-bloodied-handcuffed-during-ice-pro...
1•bikenaga•5m ago•0 comments

Fast ride, higher bill: Why shared e-mopeds may widen suburban transport costs

https://techxplore.com/news/2026-02-fast-higher-bill-mopeds-widen.html
1•PaulHoule•7m ago•0 comments

Altman on AI energy: it also takes 20 years of eating food to train a human

https://old.reddit.com/r/singularity/comments/1rb2pzf/sam_altman_people_talk_about_how_much_energ...
3•puttycat•9m ago•0 comments

40 Years of Zelda

https://www.polygon.com/zelda-40th-anniversary/
1•throw0101c•10m ago•0 comments

Large-scale online deanonymization with LLMs (including HN users)

https://arxiv.org/abs/2602.16800
1•salkahfi•10m ago•0 comments

Open-AutoGLM: Zhipu AI Open-Sources a Framework for Autonomous Phone Agents

https://theagenttimes.com/articles/open-autoglm-23k-stars-the-phone-agent-framework-from-chinas-a...
1•Ross00781•11m ago•0 comments

Cromemco C-10 Personal Computer – By John Paul Wohlscheid

https://computeradsfromthepast.substack.com/p/cromemco-c-10-personal-computer
1•rbanffy•11m ago•0 comments

Show HN: FounderSDR – AI cold email outreach for B2B SaaS founders ($299/mo)

https://founder-sdr.surge.sh
2•AISDR•12m ago•0 comments

We searched 852K Epstein docs for pizza, ice cream and every food code word

https://twitter.com/EpsteinSecrets/status/2025400741360234503
2•epsteinsecrets•12m ago•0 comments

A monthly dump of the 15,000 most-downloaded packages from PyPI

https://hugovk.github.io/top-pypi-packages/
2•gjvc•12m ago•0 comments

The right time: Leaving Automattic

https://nickdiego.com/the-right-time
2•taubek•12m ago•0 comments

Facing a mental health crisis, NJ school pulls beloved novel from English class

https://www.npr.org/2026/02/20/nx-s1-5708741/junot-diaz-oscar-wao-mental-health-book-bans
2•randycupertino•13m ago•0 comments

SEC Says Probe Involving AppLovin 'Still Active and Ongoing'

https://www.bloomberg.com/news/articles/2026-02-20/sec-says-probe-involving-applovin-is-still-act...
2•1vuio0pswjnm7•17m ago•0 comments

Never leave the home row to navigate tmux panes

https://raine.dev/blog/tmux-navigate-panes-home-row/
2•rane•18m ago•0 comments

Privacy first image converted / copressor

https://twitter.com/_juliushere/status/2025613479248310443
2•gintokinx•20m ago•0 comments

Ask HN: What breaks when you run AI agents unsupervised?

1•marvin_nora•20m ago•1 comments

Nvidia's Stock Is So Stuck Even Blowout Earnings May Not Lift It

https://www.bloomberg.com/news/articles/2026-02-22/nvidia-s-stock-is-so-stuck-even-blowout-earnin...
1•1vuio0pswjnm7•20m ago•1 comments

How AI Is Accelerating Life-Saving Discovery

https://gladstone.org/index.php/news/how-ai-accelerating-life-saving-discovery
1•giuliomagnifico•23m ago•0 comments

Show HN: Stopping Claude Code from wasting 50K tokens/turn in agent spawns

https://github.com/jungjaehoon-lifegamez/MAMA/pull/43
2•jungjaehoon•23m ago•0 comments

How to cut back on your social media addiction

https://nypost.com/2026/02/21/tech/heres-how-to-cut-back-on-your-social-media-addiction/
2•1vuio0pswjnm7•24m ago•0 comments

Should I add this acknowledgement/shoutout by xAI/Grok to my resume?

2•aehsan4004•27m ago•0 comments

Awesome Claws

https://github.com/machinae/awesome-claws
2•il•27m ago•1 comments

The Limits of AI

https://hughhowey.com/the-limits-of-ai/
1•hentrep•30m ago•0 comments

Show HN: I quit MyNetDiary after 3 years of popups and built a calorie tracker

https://calories.today/app.html
2•davemuz•30m ago•0 comments

Show HN: Droneski, an FPV drone ski camera simulator

https://github.com/imjasonh/droneski
2•ImJasonH•32m ago•1 comments

AI System – Is It Your "Cognitive Exoskeleton" or Simply Your Super-Fast Intern?

6•kokhanserhii•32m ago•0 comments

Claws don't need to be complicated

https://justin.abrah.ms/blog/2026-02-21-claws-don-t-need-to-be-complicated.html
1•abrahms•32m ago•0 comments

Amazon, Meta, Alphabet report plunging tax bills thanks to AI and tax changes

https://finance.yahoo.com/news/amazon-meta-and-alphabet-report-plunging-tax-bills-thanks-to-ai-in...
2•epistasis•33m ago•1 comments