polis-protocol
Fungsinya
Mengoordinasikan beberapa agent AI agar bekerja bersama sebagai tim yang belajar. Sebuah 'router' cerdas memutuskan agent mana yang paling cocok untuk setiap tugas berdasarkan performa sebelumnya. Aturan tim juga bisa diubah oleh para agent itu sendiri.
Kapan dipakai
- βSaat beberapa agent AI (dari penyedia yang berbeda) mengerjakan sebuah proyek.
- βSaat Anda ingin tim menjadi lebih baik seiring waktu dengan belajar dari hasil pekerjaan.
- βSaat Anda membutuhkan catatan yang jelas tentang siapa mengerjakan apa dan aturan mana yang telah berubah.
Link skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/skills/polis-protocol/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βBagaimana tim AI bisa memutuskan agent mana yang paling baik untuk menerjemahkan dokumen ini?β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Setiap agent memiliki profil yang merinci kemampuannya. Ketika sebuah tugas diterima, sistem cerdas akan memilih agent dengan rekam jejak terbaik untuk jenis pekerjaan tersebut. Sistem belajar dari setiap tugas yang selesai untuk memperbaiki pilihan di masa depan.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Polis Protocol β a team of agents that develops
Overview
Most agent coordination is a passive board: claim a task, do it, mark it done. It records, but it never gets smarter, and its rules are frozen. Polis Protocol is the active alternative β a folder of markdown where each agent is a "citizen" with a capability card, work is routed by a learning bandit to whoever has the best track record on the task's tags, settled work files lessons that update the routing, and citizens can propose and vote on amendments to the protocol itself. It is vendor-agnostic: Antigravity, Claude, Codex, and Gemini agents can all share one _polis/.
In Antigravity specifically, this turns Manager View's fixed pipeline into a team that learns who is actually best at each kind of work, instead of running the same roles in the same order every time.
When to Use This Skill
- Use when 2+ agents (especially across vendors) work on one project and "who should do this" is a real question.
- Use when you want the team to measurably improve over time β routing that adapts from outcomes, not static role labels.
- Use when you need a durable, git-auditable record of who did what, what was learned, and which rules changed.
- Use when Antigravity's default orchestration is too rigid and you want routing + governance on top of it.
How It Works
Step 1: Found a polis
Use a reviewed checkout by default so the scaffolder code is pinned before it writes into the project:
git clone https://github.com/yehudalevy-collab/polis-protocol.git
cd polis-protocol
git checkout <reviewed-commit-sha>
python3 scripts/init_polis.py \
--project-root . \
--agent-id gemini-antigravity-yourproject \
--vendor google --model gemini-3 --tool antigravity
If you prefer the published PyPI package, install an exact version after reviewing that release, for example pipx install polis-protocol==<reviewed-version>. Do not invoke the package through an unpinned uvx or "latest" workflow for automated setup.
This writes _polis/ plus the skill into .agents/skills/ (the path Antigravity reads), and bridge pointers (GEMINI.md, AGENTS.md) that point every tool at _polis/CONSTITUTION.md. Tip: add --dry-run to preview every file before anything is written; init never overwrites existing files, and polis init --repair restores missing ones.
Step 2: Register citizens and open contracts
Each agent publishes a capability card under _polis/citizens/. Work is opened as a contract with required_tags, not assigned to a fixed role.
Step 3: Route by track record
polis route --polis-root _polis \
--contract _polis/contracts/open/your-task.md --explain
The router prints a score breakdown (history / self-rating / cost / availability / applied lessons) and recommends the citizen with the strongest record on the task's tags. Agents can also reserve files (polis reserve src/auth --as <citizen>) so two agents never edit the same path at once β overlapping claims are rejected with the holder named.
Step 4: Settle, learn, and amend
polis contract settle <contract-id> --quality 5
polis reconcile --polis-root _polis
A settled contract files a lesson; accepted lessons carry a bounded routing_effect the router reads β and names in --explain β on the next similar task. Failures become guardrails (polis guardrail add β¦) that future contracts on those tags inherit as must-pass acceptance criteria. When a rule stops working, a citizen proposes an amendment and the others vote. Reproduce the learning claim yourself: polis bench --mode learning.
Examples
Example 1: See the team learn (no install, 30 seconds)
git clone https://github.com/yehudalevy-collab/polis-protocol.git
cd polis-protocol
git checkout <reviewed-commit-sha>
bash scripts/demo.sh
The router recommends Gemini for a Spanish-translation contract β because settled work taught it she has the best record on that tag, not because anyone reassigned it.
Example 2: Explain any routing decision
python3 scripts/route_contract.py --polis-root examples/research-team/_polis \
--contract examples/research-team/_polis/contracts/open/parent-newsletter-issue-3.md --explain
Notes
- No server, no runtime, no database β the whole protocol is markdown plus two small Python scripts.
- Vendor-agnostic by design; a Claude or Codex agent can join the same polis an Antigravity agent created.
β¦
Pertanyaan umum
Apa itu 'citizens'?
Ini adalah agent AI yang menjadi bagian dari tim. Setiap agent memiliki 'capability card' yang menjelaskan apa saja yang bisa dilakukannya.
Bagaimana aturan tim berubah?
Agent dapat mengusulkan perubahan aturan dan memberikan suara terhadap usulan tersebut, sehingga tim bisa beradaptasi dan berkembang.
Apakah saya perlu memasang sesuatu yang rumit?
Tidak, sistem ini bekerja dengan file teks sederhana (markdown) dan beberapa skrip kecil, tanpa perlu server atau database yang kompleks.
Detail
Deskripsi asli dari pembuat
Coordinate multi-vendor AI agents as a self-improving team β a learning router assigns work by track record and citizens can amend the protocol's own rules.
Popularitas
- Bintang GitHub
- 48k
- Peringkat
- #6290
- Lisensi
- MIT
- Diperbarui
- 15/10/2026
Komentar
- β¦
Skill lain dari repositori ini
00-andruia-consultant
48kMembantu agent Anda memulai atau meningkatkan proyek AI. Agent menganalisis kode, menyarankan tools, dan membuat rencana aksi dalam bahasa Spanyol.
007
48kMemungkinkan agent Anda melakukan audit keamanan dan threat modeling. Berguna untuk melindungi proyek dari serangan dan celah keamanan.
10-andruia-skill-smith
48kMembantu agent Anda membuat atau meningkatkan tools AI. Agent mendefinisikan cara kerja tools, menulis dokumentasi, dan memvalidasi strukturnya.
20-andruia-niche-intelligence
48kMemungkinkan agent Anda membuat ringkasan industri tertentu. Berguna untuk memahami konteks, aturan, pola penggunaan, dan risiko proyek dengan sumber terpercaya.
Skill serupa
add-model-provider
394kMemungkinkan agent Anda menghubungkan penyedia model AI baru ke OpenClaw dengan perintah pengaturan yang aman, menjaga kunci API tetap di luar teks biasa, dan menjalankan uji langsung.
acp-router
394kMembantu agent Anda mengirim tugas ke asisten pemrograman seperti Claude Code atau Cursor lewat OpenClaw, sehingga pekerjaan dijalankan di alat tersebut.
browser-automation
394kMengajari agent Anda mengendalikan halaman web langkah demi langkah, termasuk login, tab, dan pemulihan saat halaman berhenti merespons.