I made a CLI to stop manually copy-pasting code into LLMs

1 AntonioBeltuono 1 9/2/2025, 11:55:36 AM github.com ↗

Comments (1)

AntonioBeltuono · 1d ago
Hi HN,

I'm David. I built Aicontextator to scratch my own itch. I was spending way too much time manually gathering and pasting code files into LLM web UIs. It was tedious, and I was constantly worried about accidentally pasting an API key.

Aicontextator is a simple CLI tool that automates this. You run it in your project directory, and it bundles all the relevant files (respecting .gitignore ) into a single string, ready for your prompt.

A key feature I focused on is security: it uses the detect-secrets engine to scan files before adding them to the context, warning you about any potential secrets it finds. It also has an interactive mode for picking files , can count tokens , and automatically splits large contexts. It's open-source (MIT license) and built with Python.

I'd love to get your feedback and suggestions.

The GitHub repo is here: https://github.com/ILDaviz/aicontextator