Got AI tokens to spare? Point them at the libraries you depend on
A month ago, a stranger opened a pull request on my pull-up timer. Since then, I've had two pull requests merged into mssql , the SQL Server driver for Node.js, and a third is lined up. What got me from one to the other wasn't a clever trick. It was one prompt, and then a better version of it. How

Posted on Dec 2 • Edited on Dec 2 • AI-assisted
A month ago, a stranger opened a pull request on my pull-up timer. Since then, I've had two pull requests merged into mssql, the SQL Server driver for Node.js, and a third is lined up.
What got me from one to the other wasn't a clever trick. It was one prompt, and then a better version of it.
I attempted 2,000 pull-ups in a day, and failed. The next morning I open-sourced the timer I'd built for it, put it on Vercel, and kept using it every week. ( I wrote about that here. )
I tagged a few issues good first issue. Soon after, someone I'd never met opened a pull request with a feature I hadn't thought of: selectable formats for the session summary. It came with tests and a clear description of how they'd checked it. I merged it.
They were clearly using a cloud coding agent to find and fix issues. So I tried the same setup myself, and the thought that stuck with me was: someone spent their spare AI capacity on my project. Where could I spend mine?
I asked ChatGPT Codex (SOL 6.2), running in the cloud:
can you search and suggest 4-5 repositories with good first issues that we can contribute to? based on my stack Enter fullscreen mode Exit fullscreen mode It came back with five repositories that matched my stack (TypeScript, React, Node.js), each with a good first issue and an honest assessment of how hard it was. I picked a small React component library and fixed an accessibility bug in it.
It worked. But something was off. These were repos that looked like mine. I'd never used any of them. I had no real reason to care if they broke.
something that i use on [my project] Enter fullscreen mode Exit fullscreen mode My project is an internal app I build for the school I work at. This time the agent read its package.json and looked for open issues in my actual dependencies. The top of the list was mssql, the driver it uses to talk to SQL Server, every day, for every page.
That changes everything about a contribution:
If you want to try it, here's a cleaner version of what I ended up asking:
Look at the package.json files in this repo. For the libraries my project depends on directly, find open issues labelled "good first issue" or "help wanted". Shortlist 4-5. For each one, tell me why it fits me, whether someone already has a linked PR, and how active the maintainers are. Don't write any code yet. Enter fullscreen mode Exit fullscreen mode
Fig 1 - Same agent, two prompts. Only the second one pointed at code I actually run.
The agent's first two suggestions were mssql issues #1933 and #1935. It flagged, honestly, that it hadn't confirmed whether anyone was already working on them. I checked, and both had related pull requests open.
I pushed back, and it looked again, more carefully. Two better candidates came up:
Remember those four issue numbers. They come back.
I told the agent to go ahead with #1770. It wrote failing tests first, then the fix, then ran the lint and all 286 unit tests. It couldn't fork the upstream repository for me, so I did that myself, and it pushed the branch and opened a draft PR.
The fix is one line in the pool's acquire path:
if ( err instanceof tarn. TimeoutError ) { err. message = `Failed to acquire a connection from the pool: ${err.message}` } Enter fullscreen mode Exit fullscreen mode So the error now reads:
Failed to acquire a connection from the pool: operation timed out for an unknown reason Enter fullscreen mode Exit fullscreen mode The maintainer raised a point I hadn't considered: someone's code out there might be matching on the exact text of that error. We talked it through. The original text is still there, word for word, so a check like message.includes('operation timed out') keeps working.
It was merged on 4 November with a "welcome!", and shipped in mssql 12.7.14.
Fig 2 - Who did what on the first PR. The agent did the typing; the fork, the review and the conversation were mine.
After the merge, I left a comment: I use this library in a self-hosted app at a school, this was my first contribution, and if there's anywhere you'd like me to focus, I'm happy to be steered.
The maintainer pointed me to #1933 and #1935, the same two issues I'd skipped because of the related PRs. With the maintainer's blessing, and the codes they wanted written in the issue, they were no longer a risk of stepping on someone's toes.
Fig 3 - The four issues the agent found turned into my whole roadmap, including the two I skipped.
If you create a Request or PreparedStatement without a connection pool and run it, you got a TypeError: Cannot read properties of undefined from deep inside the library. Not a helpful message, and not something your error handling expects.
The fix makes those cases fail the way the rest of the library does, with a proper error and a code ( ENOCONN ). It came with 13 unit tests and a separate docs: commit for the README.
This one taught me more about working in someone else's codebase:
Merged on 19 November, shipped in 12.7.16.
That leaves the last of the four: the aborted wait when a pool closes. It touches the same code as my first PR, but it's a design decision (which error code? keep the message?), so I've asked the maintainer how they'd like it done before writing anything.
The AI was fast at the parts that used to keep me out of unfamiliar codebases:
The maintainer reviewed every line too. That part doesn't get automated, and it shouldn't.
If you pay for an AI subscription and don't use all of it, point it at the libraries you depend on.
A stranger's pull request started this. Somewhere, a library you use every day has an issue with your name on it.
What's the library you use most that you've never looked inside?