mirror of
https://github.com/openclaw/lobster.git
synced 2026-07-21 20:05:21 -04:00
[PR #6] [CLOSED] feat: add LLM prompt step type for hybrid workflows #7
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/openclaw/lobster/pull/6
Author: @Cluka-399
Created: 2/4/2026
Status: ❌ Closed
Base:
main← Head:feat/llm-prompt-step📝 Commits (3)
a33a030feat: add LLM prompt step type for hybrid workflows040ac26fix: address PR review issues for LLM prompt stepb504f61chore: remove package-lock.json📊 Changes
5 files changed (+508 additions, -13 deletions)
View changed files
➕
examples/x-audio-brief.lobster(+29 -0)📝
src/cli.ts(+65 -2)📝
src/resume.ts(+21 -3)📝
src/workflows/file.ts(+83 -8)➕
test/llm_prompt_step.test.ts(+310 -0)📄 Description
Summary
Adds a
promptstep type that delegates LLM calls to the calling agent via halt/resume — the same pattern asapprove.How it works
promptstep → haltsstatus: needs_llmwith the prompt, system prompt, context, and resume tokenlobster resume --token X --llm-response "..."No API keys. No HTTP calls. No new dependencies. Uses your existing model.
Example workflow
New step fields
prompt$steprefs and${args})systemA step must have either
commandORprompt, never both.Resume
New CLI flag:
--llm-responseon the resume command:Validation:
Design decisions
approvehalt/resume pattern — no new primitives needed$step.stdoutand$step.jsonwork identically to command stepscommandORprompt, never bothTests
57/57 pass (10 new):
needs_llmwith prompt + system + context${arg}resolution in prompt templates--llm-responsevalue, empty response, whitespace-only responseFiles changed
src/workflows/file.ts— prompt step type,isPromptStep(), halt/resume logicsrc/resume.ts—--llm-responseflag with validationsrc/cli.ts—needs_llmstatus handling,writeLlmEnvelopehelpertest/llm_prompt_step.test.ts— 10 testsexamples/x-audio-brief.lobster— example workflow (search + summarize)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.