Doug Parker 🕸️ on Nostr: I notice that #AI agents are generally pretty bad about writing imports correctly. ...
I notice that #AI agents are generally pretty bad about writing imports correctly. They either forget to import something or import too much and leave extras.
I suspect this is from the fact that you need to "predeclare" your imports long before you're actually using them.
Imagine you're writing a file, and you know what you want, but now you have to write out all your imports in one-shot before actually writing the code. You're definitely gonna miss some stuff.
AI seems pretty good at fixing imports it missed, but tends to leave unused imports in my experience.
Published at
2026-03-13 19:09:36 UTCEvent JSON
{
"id": "f4e1a76407c5af8dc911a807714582a632eac0a3117b0ae075cf92e626d39350",
"pubkey": "bb1742d1b321126a78c9a65acb9b810a49693c1b76b6446ae059fc3ff0cc2bf2",
"created_at": 1773428976,
"kind": 1,
"tags": [
[
"t",
"ai"
],
[
"proxy",
"https://techhub.social/@develwithoutacause/116223441415706537",
"web"
],
[
"proxy",
"https://techhub.social/users/develwithoutacause/statuses/116223441415706537",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://techhub.social/users/develwithoutacause/statuses/116223441415706537",
"pink.momostr"
],
[
"-"
]
],
"content": "I notice that #AI agents are generally pretty bad about writing imports correctly. They either forget to import something or import too much and leave extras.\n\nI suspect this is from the fact that you need to \"predeclare\" your imports long before you're actually using them.\n\nImagine you're writing a file, and you know what you want, but now you have to write out all your imports in one-shot before actually writing the code. You're definitely gonna miss some stuff.\n\nAI seems pretty good at fixing imports it missed, but tends to leave unused imports in my experience.",
"sig": "9093d985284bd6719d4b233d4b9f46d8f10160c999ea21e69fbe8adf63e57b241e90801bbf1e5805be9a27f81b114521ca9123c3f09971a078378d476bb6623b"
}