Harold Moses

Poly-Glot AI - AI-generated code comments built for RAG, GEO โ€” instantly

byโ€ข
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.

Add a comment

Replies

Best
Harold Moses
Maker
๐Ÿ“Œ

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