Skip to content

feat(agent): stronger ask_user steering + launch log#30

Merged
clintberry merged 1 commit into
mainfrom
feat/interactive-agent-questions
Jun 9, 2026
Merged

feat(agent): stronger ask_user steering + launch log#30
clintberry merged 1 commit into
mainfrom
feat/interactive-agent-questions

Conversation

@clintberry

Copy link
Copy Markdown
Contributor

Follow-up: make agents actually use ask_user

Builds on #29. After verifying the full pipeline live (code deployed, @mentions route through Pi, --set-env forwards the prompt, Pi accepts --append-system-prompt, ask_user registered) the remaining gap was behavioral: the model answered clarifying questions in prose instead of calling ask_user.

Changes

  • Stronger DefaultBaseSystemPrompt — rewritten to explain the mechanism: in Deuce a plain-text question is a dead end (the run ends, no answer returns), so ask_user is the only real channel. Imperative wording: never end a turn with a prose question, even for a single missing detail like a filename.
  • Launch log — an Info log at Pi launch records whether a system prompt was applied (systemPromptApplied, systemPromptLen), so the wiring is verifiable from server logs.

Notes

  • Takes effect on the next Pi launch after the server restarts (kills/relaunches Pi processes).
  • The typed-prompt extension (kind/options) only installs on workspace create/start/rebuild — existing containers keep the old extension until rebuilt.
  • Prompting is the realistic lever; it improves compliance but isn't a 100% guarantee.

🤖 Generated with Claude Code

Rewrite DefaultBaseSystemPrompt to explain the mechanism — a plain-text
question ends the run and returns no answer, so ask_user is the only real
channel — and make it imperative (never end a turn with a prose question, even
for a single missing detail). Add an Info log at Pi launch recording whether a
system prompt was applied, to verify wiring from server logs.
@clintberry clintberry merged commit 0ca9e31 into main Jun 9, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant