Launching today

Poly-Glot AI
AI-generated code comments built for RAG, GEO — instantly
1 follower
AI-generated code comments built for RAG, GEO — instantly
1 follower
Poly-Glot transforms undocumented code into professional JSDoc, PyDoc, Javadoc, KDoc, and Doxygen comments — plus inline why-comments that explain the reasoning behind your code. Free web UI + open source CLI. Supports OpenAI and Anthropic.



Hey Product Hunt 👋
I built Poly-Glot AI because I kept running into the same problem: AI-generated code is fast, but it's almost always undocumented. The code works — but no one (including the AI) knows why it works.
That makes it:
- Hard to search with RAG
- Dangerous to refactor
- Invisible to the next developer (or the next AI agent)
Poly-Glot fixes that in seconds.
Copy and paste, upload your code, or use the custom CLI.
📄 Doc-comments — JSDoc, PyDoc, Javadoc, KDoc, Doxygen, and more. Standardized to your language's exact spec. `@param`, `@returns`, `@throws`, `@example` — all of it, automatically.
💬 Why-comments — Inline comments that explain the reasoning behind your code. Not what the code does — why it was written that way. Trade-offs, gotchas, design decisions, null-safety logic. The stuff that disappears the moment the original developer moves on.
🔁 Both mode — Two sequential AI passes in one command. You get a complete, fully-documented file with doc-blocks at the top and why-comments inline.
The CLI is where it gets serious
You get:
--dry-run — preview every comment before writing anything
--diff — see exactly what changed, line by line
--backup — original file preserved automatically
--dir — document an entire directory in one command
On the day I shipped the --both flag, 922 developers installed the CLI.
Built for AI-era codebases
Well-documented code isn't just good practice anymore — it's infrastructure. Better docs mean:
- 📚 Better RAG retrieval — your AI tools actually find the right code
- 🧠 AI agents understand intent — not just structure
- 🎯 GEO-optimized — your code shows up when it matters
- 🛡️ Context is preserved — across teams, refactors, and model updates
Completely private
Your code and API keys never touch Poly-Glot's servers. Everything runs in your browser or your terminal. You bring your own OpenAI or Anthropic key — you pay fractions of a cent per file directly to the provider.
Why Poly-Glot exists — and why nothing else does what it does:
I researched every tool on the market. Here's the truth:
GitHub Copilot writes code. It doesn't document it. Ask Copilot to explain why a retry uses linear backoff instead of exponential — it can't. It wasn't built for that.
Mintlify generates JSDoc stubs. Clean @param and @returns tags — but that's it. No reasoning, no trade-off explanations, no why-comments. Just formatted headers over undocumented logic.
Sourcery refactors Python. Single language, no documentation mode, no CLI safety flags. Not even close to a documentation tool.
Swimm charges enterprise prices for manual documentation workflows. You write it. You maintain it. You pay $20+/seat for the privilege.
Tabnine and CodeWhisperer are autocomplete engines. Documentation is not their product.
Free to start. Pro when you're ready.
🌐 Web UI — free, no account needed · poly-glot.ai
📦 CLI — open source · npm install -g poly-glot-ai-cli
🔑 Bring your own API key — or upgrade to Pro for managed credits
🚀 Pro: team seats · priority processing · usage dashboard · API access
🌍 12 languages: JavaScript, TypeScript, Python, Java, C++, C#, Go, Rust, Ruby, PHP, Swift, Kotlin