Pygg

v0.1.0-dev.9
io.github.nambean/pygg Checked 3 days ago Published 11 days ago

Hand coding subtasks to cheaper agents in Git worktrees, checked before you keep them.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

pygg_run_task

Hand a self-contained coding subtask to other agents (OpenCode, Codex CLI, Claude Code, Gemini CLI), each with its own sign-in, cheapest first. Pygg runs it in a separate Git worktree of this repository, checks the result with the checks the user approved for it, and moves to the next agent when a check fails. Your working tree is never changed: a result becomes a branch only when you keep it. Describe the change completely: the agent does not see this conversation.

ParameterTypeDescription
prompt *stringThe full task: what to change, where, and what done looks like.
allow_shellbooleanLet the agents run shell commands in their copy (default false).
stepsarrayThe agents to try, in order. Default: the installed agents in the strategy's order.
strategystringWhich agents go first when steps are not given. Default free_first.
titlestringA short title, also used for the branch name.
wait_secondsintegerSeconds to wait for the task to finish before answering (default 50; raise it only if your client allows tool calls that long).
workspacestringA folder in the repository. Default: the folder this server runs in.

pygg_task_status

The state of a task, its attempts and why each failed. Waits while it runs.

ParameterTypeDescription
task_id *stringThe task id returned by pygg_run_task.
wait_secondsintegerSeconds to wait for the task to finish before answering (default 50; raise it only if your client allows tool calls that long).

pygg_task_diff

The changes of a finished task's result, as a unified diff.

ParameterTypeDescription
task_id *stringThe task id returned by pygg_run_task.

pygg_task_brief

A task as a brief to continue it elsewhere: the goal, where it started, each attempt and why it stopped, the checks that define done, and where it stands.

ParameterTypeDescription
task_id *stringThe task id returned by pygg_run_task.

pygg_keep_result

Keep a finished task's result as a new branch of the repository (your checkout is not changed). Returns the branch name, which you can merge or check out. A result no check vouches for (pygg_task_status says NOT READY) is refused unless accept_unchecked is true.

ParameterTypeDescription
task_id *stringThe task id returned by pygg_run_task.
accept_uncheckedbooleanKeep a NOT READY result anyway: only after you read its whole diff with pygg_task_diff and judged it yourself, since no check confirmed it. Say so to the user.
titlestringCommit message and branch title. Default: the task's title.

pygg_check_result

Run the workspace's approved checks on a result that is NOT READY because no check ran (after the user approved one in the Pygg app), without running the agent again. Returns the task's new state.

ParameterTypeDescription
task_id *stringThe task id returned by pygg_run_task.

pygg_discard_result

Discard a finished task's result.

ParameterTypeDescription
task_id *stringThe task id returned by pygg_run_task.

pygg_stop_task

Stop a running or waiting task.

ParameterTypeDescription
task_id *stringThe task id returned by pygg_run_task.

pygg_list_tasks

Tasks you started, newest first.

pygg_agents

The agents installed on this computer that tasks can use.

pygg_brainstorm

A brainstorm pygg/brain made for you (ask for the model pygg/brain with a requirement to start one): its state, planner, open questions and cards with the model Pygg picked for each. Approval happens in the Pygg app, never here.

ParameterTypeDescription
brainstorm_idstringThe id in the brain's reply (b_…). Default: your newest brainstorm.

pygg_board

The Kanban board of a workspace: your brainstorms' cards by column (discovery, ready, running, checking, blocked, review, done), each with its task's state. Paid steps are approved in the Pygg app, never here.

ParameterTypeDescription
workspace_id *stringThe workspace's id (pygg_brainstorm shows it once a brainstorm was approved).

pygg_board_move

Move one of your cards between Discovery and Ready: to ready releases a held card, to discovery holds it. Nothing else moves by hand; the engine moves the rest.

ParameterTypeDescription
card_id *stringThe board card id (bc_…).
to *string

pygg_model_facts

The user's connected models ranked for a role (plan, code, test, review) from Pygg's model facts feed: each with the public benchmark it ranks by, its place and date, or its tier when no fact applies.

ParameterTypeDescription
rolestringDefault code.