Discover and explore top open-source AI tools and projects—updated daily.
muratcankoylanPrompt optimization system adapting to AI provider nuances
Top 97.2% on SourcePulse
The Rosetta Prompt is an agentic system designed to automatically optimize user prompts for various AI providers by leveraging provider-specific documentation. It targets developers and researchers seeking to maximize prompt effectiveness across different LLM platforms, offering a dynamic and autonomous approach to prompt engineering that adapts to evolving AI provider guidelines.
How It Works
The system employs an Orchestrator Agent that manages parallel Optimizer Agents, each acting autonomously within a ReAct (Reason → Act → Observe → Repeat) loop. These Optimizer Agents use tools like list_provider_docs and read_provider_doc to dynamically discover and selectively read documentation (over 12K characters per document) from a local docs/ knowledge base. They then apply learned provider-specific patterns to transform prompts, reporting structured results with a changelog. The architecture supports adding new providers simply by adding their documentation to the docs/ directory.
Quick Start & Requirements
rosetta_prompt/, install dependencies (pip install -r requirements.txt), and set OPENROUTER_API_KEY in a .env file. Run the FastAPI server with uvicorn main:app --reload --port 8000.ui/, install dependencies (npm install), and start the development server (npm start).rosetta_prompt/docs/ directory.Highlighted Details
logs/*.log), capturing full execution traces and timings./optimize, /providers) built with FastAPI for programmatic integration.updater/) that periodically scrapes provider documentation and synthesizes updates to the local knowledge base using Claude Opus and Firecrawl.Maintenance & Community
The project includes an updater/ directory with an agent designed for autonomous documentation updates, suggesting a proactive maintenance approach. Adding new providers is facilitated by simply adding their documentation to the docs/ directory. No specific community links (e.g., Discord, Slack) are provided in the README.
Licensing & Compatibility
The project is released under the MIT License, permitting commercial use and integration into closed-source projects.
Limitations & Caveats
Operational functionality is contingent on valid API keys for OpenRouter, Anthropic, and Firecrawl, which may incur costs beyond free tiers. The frontend utilizes React and Three.js, which may require specific development expertise for customization or integration. The system's effectiveness is directly tied to the quality and completeness of the provider documentation available in the docs/ directory.
5 months ago
Inactive
letta-ai
TransformerOptimus
Significant-Gravitas