Repository navigation
v1.13.8
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-stopabandons a stuck or unwanted queue: the running step is cancelled, the run stays in history as stopped, and the nextprompture delegatecan 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, runprompture delegateinstead — with when not to delegate, the exit-code table and the answer/resume/stop loop. prompture skill installnow also targets Kimi Code (~/.kimi-code/skills) and the shared~/.agents/skillsconvention, 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-stopposts/v1/automations/current/stopthrough 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
delegatefail with 409 and no way out short of a companion app. The 409 message now names bothdelegate-statusanddelegate-stop. - README's "Delegating a task" section lists the new command.
Skill targets (prompture/skill/__init__.py)
TARGETSgainskimi(~/.kimi-code/skills/prompture) andagents(~/.agents/skills/prompture); marker-file ownership and uninstall refusals are unchanged, so foreign directories are still never touched.prompture/cli/skill_cmd.pyexposes both in--targetwith 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/4and 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 realCompanionServerwith a fake agent runner).tests/test_skill_install.py: install/uninstall round-trips for thekimiandagentstargets.