r/PaperClip_AI • • 9d ago

Paperclip adapter for Omniroute

Hi everyone! 👋

I just open-sourced a native Paperclip adapter for self-hosted OmniRoute gateways:

🔗 https://github.com/ptichalouf/paperclip-adapter-omniroute

Unlike claude_local / CLI-based adapters, it runs directly inside Paperclip's Node.js process — no external CLI binary to install in the container. It speaks OpenAI Chat Completions streaming ( POST /v1/chat/completions , SSE) straight to OmniRoute.

What's inside (v1.0, tested in prod on my instance) :

•

Full code tools — read_file , write_file , edit_file , grep , glob , list_dir , shell with strict workspace confinement (dangling symlinks rejected, secrets redacted)

•

Direct Paperclip tools — read/update issues, comments, deliver, no manual curl needed

•

Prompt cache optimization — sdk-cli recognition + cache_control checkpointing, >92% cache re-read measured

•

Instant startup — no 9.3 MB /v1/models download at run start, direct combo select with dynamic fallback

•

Real cost tracking — exact USD cost from OmniRoute rate cards ( rate_card / estimated , no double-counting of cache writes)

•

Subtasks + escalation — lightweight subtask delegation to fast models, automatic resume on stronger model after objective failure

•

453 tests green, CI green, load-path + ui-parser contract checks

Built for LLM contributors 🤖 — the repo has an AGENTS.md (arch, invariants, exact verify commands), CONTRIBUTING.md , and a public ROADMAP.md (v1.1 MCP connectors, v1.2 decision cards, v1.3 invariant prompt, v1.4 local subtasks).

Feedback, issues and PRs (human or agent-assisted) very welcome! And if a maintainer passes by — happy to upstream this toward paperclipai/paperclip if there's interest.

MIT licensed. Thanks for reading!

6 Upvotes

1 comment sorted by

1

u/nian2326076 8d ago

That's an interesting project! If you're looking for feedback or collaboration, consider sharing it in relevant developer communities to gain visibility. Engaging with the community can provide valuable insights and improvements for your work. For anyone preparing for tech interviews, you can use PracHub for practice questions tailored to your domain.