{"id":50984319,"url":"https://github.com/atasoglu/prompt-judge","last_synced_at":"2026-06-19T17:33:49.339Z","repository":{"id":363909550,"uuid":"1265511450","full_name":"atasoglu/prompt-judge","owner":"atasoglu","description":null,"archived":false,"fork":false,"pushed_at":"2026-06-10T21:17:32.000Z","size":45,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-06-10T23:04:37.910Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/atasoglu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-10T20:56:11.000Z","updated_at":"2026-06-10T21:17:36.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/atasoglu/prompt-judge","commit_stats":null,"previous_names":["atasoglu/prompt-judge"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/atasoglu/prompt-judge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atasoglu%2Fprompt-judge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atasoglu%2Fprompt-judge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atasoglu%2Fprompt-judge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atasoglu%2Fprompt-judge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atasoglu","download_url":"https://codeload.github.com/atasoglu/prompt-judge/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atasoglu%2Fprompt-judge/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34542025,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-19T02:00:06.005Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-19T17:33:48.758Z","updated_at":"2026-06-19T17:33:49.331Z","avatar_url":"https://github.com/atasoglu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# prompt-judge\n\nIteratively compress a prompt while preserving semantic fidelity.\n\nMultiple summarizer agents compress the prompt in parallel using different strategies (*extractive*, *abstractive*, *structure-preserving*, *role-preserving*). A judge agent scores each candidate against the original, and the best result becomes the input for the next iteration.\n\n## Installation\n\n```bash\nuv sync\n```\n\n## Usage\n\n```bash\n# Pass prompt as argument\nprompt-judge \"Your long prompt here...\"\n\n# Or pipe from stdin\ncat prompt.txt | prompt-judge\n\n# Custom model and base URL (Ollama, vLLM, OpenRouter, …)\nprompt-judge \"...\" --model llama3 --base-url http://localhost:11434/v1\n\n# Save full JSONL log\nprompt-judge \"...\" --output log.jsonl\n```\n\n## Options\n\n| Flag | Default | Description |\n|------|---------|-------------|\n| `--model` | `gpt-4o-mini` | Summarizer model |\n| `--judge-model` | same as `--model` | Judge model |\n| `--embed-model` | — | Embedding model for cosine similarity check |\n| `--base-url` | — | OpenAI-compatible endpoint |\n| `--api-key` | `$OPENAI_API_KEY` | API key |\n| `--iterations` | `10` | Max compression iterations |\n| `--threshold` | `0.85` | Min similarity score to continue |\n| `--strategies` | all | Summarizer strategies to use |\n| `--instructions` | — | Extra instructions for summarizers |\n| `--output`, `-o` | — | Write JSONL log to file |\n| `--quiet`, `-q` | — | Suppress progress output |\n\n## Requirements\n\n- Python 3.11+\n- `openai` SDK\n- Any OpenAI-compatible API endpoint\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatasoglu%2Fprompt-judge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatasoglu%2Fprompt-judge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatasoglu%2Fprompt-judge/lists"}