Skip to content

v1.13.8

Choose a tag to compare

@github-actions github-actions released this 05 Oct 04:06
d8d0c3c

Changes

Follow-ups from running prompture delegate for real, end to end. A stuck queue no longer blocks every later delegation, and agents that install the Prompture skill now learn to reach for delegation before an external API.

Highlights

  • prompture delegate-stop abandons a stuck or unwanted queue: the running step is cancelled, the run stays in history as stopped, and the next prompture delegate can start right away. The 409 "already running a queue" message now points at it.
  • The bundled agent skill (prompture skill install) teaches delegation: before calling an external LLM/translation API or hunting for a key, run prompture delegate instead — with when not to delegate, the exit-code table and the answer/resume/stop loop.
  • prompture skill install now also targets Kimi Code (~/.kimi-code/skills) and the shared ~/.agents/skills convention, not just ~/.claude/skills — one command covers the agents on a machine.
  • Verified live: a real delegated run through Claude Code completed a translation task unattended and wrote the output file (10.8s, $0.67 API-equivalent), driven entirely by these commands.
Technical changes

Queue abandonment (prompture/cli/delegate_cmd.py)

  • delegate-stop posts /v1/automations/current/stop through the same loopback-only client the other delegate commands use; without a queue it surfaces the companion's 409 detail.
  • Found by live testing: a queue paused on failure made every later delegate fail with 409 and no way out short of a companion app. The 409 message now names both delegate-status and delegate-stop.
  • README's "Delegating a task" section lists the new command.

Skill targets (prompture/skill/__init__.py)

  • TARGETS gains kimi (~/.kimi-code/skills/prompture) and agents (~/.agents/skills/prompture); marker-file ownership and uninstall refusals are unchanged, so foreign directories are still never touched.
  • prompture/cli/skill_cmd.py exposes both in --target with updated help.

Skill content (prompture/skill/data/SKILL.md)

  • Frontmatter description adds the delegation trigger so agents match the skill when about to call an external API for a self-contained task.
  • New "Delegating tasks" section plus a routing-table row: delegate vs. inline judgment (don't spawn an agent for trivial work or anything needing the current conversation), exit codes 0/1/3/4 and what to run for each, --json, --no-wait, --agent, --model, --cost-cap, --timeout.

Tests

  • tests/test_cli_delegate.py: stopping a stuck queue frees it for a fresh run, stopping with no queue errors cleanly (18 tests in the file, all run against a real CompanionServer with a fake agent runner).
  • tests/test_skill_install.py: install/uninstall round-trips for the kimi and agents targets.

Details