@gaberrb/polypus 0.4.15 → 0.4.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +42 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -207,6 +207,48 @@ worktree (in `bypass` mode, since the worktree is throwaway), and the branches
|
|
|
207
207
|
are merged back sequentially. Conflicting branches are kept for manual
|
|
208
208
|
inspection rather than force-merged.
|
|
209
209
|
|
|
210
|
+
## Autonomous agent — the tool self-improving 🤖
|
|
211
|
+
|
|
212
|
+
Polypus can run **itself** in CI to implement its own issues. Label an issue
|
|
213
|
+
`polypus-go` and the `agent.yml` workflow implements it headlessly, gates on the
|
|
214
|
+
local CI, patch-bumps the version + CHANGELOG, and opens a release-ready PR; when
|
|
215
|
+
you merge it, `auto-release.yml` cuts the GitHub Release and `release.yml`
|
|
216
|
+
publishes the new version to npm. The only human step is the **merge**.
|
|
217
|
+
|
|
218
|
+
```
|
|
219
|
+
issue + label `polypus-go`
|
|
220
|
+
→ agent.yml: implement (cheap model) → secret scan → CI gate → bump + CHANGELOG → open PR
|
|
221
|
+
→ you merge the PR
|
|
222
|
+
→ auto-release.yml → release.yml → npm publish
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
**Setup (one-time):**
|
|
226
|
+
|
|
227
|
+
```bash
|
|
228
|
+
# 1) the trigger label
|
|
229
|
+
gh label create polypus-go --color 5be4b1
|
|
230
|
+
|
|
231
|
+
# 2) the model key
|
|
232
|
+
gh secret set OPENROUTER_API_KEY --body "sk-or-v1-..."
|
|
233
|
+
|
|
234
|
+
# 3) a PAT (repo scope) so the agent can open the PR AND the release can publish
|
|
235
|
+
# (a Release made with the default GITHUB_TOKEN does NOT trigger release.yml)
|
|
236
|
+
gh secret set POLYPUS_PR_TOKEN --body "github_pat_..."
|
|
237
|
+
|
|
238
|
+
# 4) optional: cheap model + per-run budget
|
|
239
|
+
gh variable set POLYPUS_AGENT_MODEL --body "deepseek/deepseek-chat-v3-0324"
|
|
240
|
+
gh variable set POLYPUS_BUDGET_USD --body "0.50"
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
Guard-rails: own-repo only, secret scan on the diff, mandatory CI gate, a spend
|
|
244
|
+
budget, and your merge as the final gate. Without `POLYPUS_PR_TOKEN` nothing
|
|
245
|
+
breaks — the agent still implements and pushes a branch, and comments the branch
|
|
246
|
+
link on the issue instead of failing.
|
|
247
|
+
|
|
248
|
+
📖 **Full guide with a diagram, examples and the `POLYPUS_PR_TOKEN` walkthrough:**
|
|
249
|
+
[the autonomous-agent page](https://gaberrb.github.io/polypus/agent.html)
|
|
250
|
+
(`docs/agent.html`).
|
|
251
|
+
|
|
210
252
|
## Configuration
|
|
211
253
|
|
|
212
254
|
Stored at `~/.polypus/config.json` (override the directory with `POLYPUS_HOME`).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gaberrb/polypus",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.17",
|
|
4
4
|
"description": "Agentic coding harness that makes any AI API (with or without native tool-calling) generate and apply code. OpenRouter, Ollama, and any OpenAI-compatible endpoint.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|