Skip to content

refactor(channels): Slim remote-control prompt and disable system reminders - #526

Merged
edenreich merged 1 commit into
mainfrom
refactor/525-remote-control-prompt
May 21, 2026
Merged

edenreich merged 1 commit into
mainfrom
refactor/525-remote-control-prompt

Conversation

@edenreich

@edenreich edenreich commented May 21, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Wire the existing SystemPromptRemote (previously dead code) into channel-driven agent sessions via a new infer agent --remote flag, mirroring the --heartbeat pattern. The channels-manager now spawns the subprocess with --remote.
  • Rewrite SystemPromptRemote for short, chat-style replies suited to messaging channels (Telegram, etc.). The old SSH/computer-use body was unused and unrelated.
  • Flip SystemReminders.Enabled default to false (the <system-reminder> nudge burned tokens on every 4th turn). Users can opt back in via prompts.yaml or new env vars: INFER_PROMPTS_AGENT_SYSTEM_REMINDERS_ENABLED, INFER_PROMPTS_AGENT_SYSTEM_REMINDERS_INTERVAL.
  • Extend mergePromptDefaults to backfill SystemReminders.Interval when zero, so users who only flip enabled: true get sensible cadence.
  • Sync .infer/prompts.yaml with the new defaults; add a "Remote-Control Prompt and System Reminders" subsection to docs/channels.md.

Closes #525.

…inders by default

Issue #525: a "Hi" routed through the channels-manager (Telegram bot)
was answered with paragraphs because the agent ran with the verbose
default system prompt and got a periodic `<system-reminder>` injection
every 4 turns. Wire the existing `SystemPromptRemote` (previously dead
code) for channel-driven sessions via a new `--remote` flag, rewrite
its body for short chat-style replies, and ship system reminders
disabled by default - users can re-enable via prompts.yaml or the new
`INFER_PROMPTS_AGENT_SYSTEM_REMINDERS_ENABLED` / `_INTERVAL` env vars.
@edenreich
edenreich requested a review from a team as a code owner May 21, 2026 21:27
@edenreich
edenreich merged commit 165a9ca into main May 21, 2026
@edenreich
edenreich deleted the refactor/525-remote-control-prompt branch May 21, 2026 21:34
inference-gateway-releaser Bot pushed a commit that referenced this pull request May 21, 2026
## [0.109.11](v0.109.10...v0.109.11) (2026-05-21)

### 🐛 Bug Fixes

* **dependabot:** Ignore golang updates for versions >=1.26.3 ([2dba01c](2dba01c))
* **a2a:** Surface swallowed failure errors from A2A tasks ([cda339e](cda339e))

### ♻️ Code Refactoring

* **channels:** Slim remote-control prompt and disable system reminders ([#526](#526)) ([165a9ca](165a9ca))

### 🔧 Build System

* **deps:** Bump golang.org/x/image from 0.40.0 to 0.41.0 in the gomod group ([#527](#527)) ([f218c07](f218c07))

### 👷 CI/CD

* **deps:** Bump anthropics/claude-code-action from 1.0.127 to 1.0.129 in the github-actions group ([#528](#528)) ([42b6d61](42b6d61))

### 🧹 Maintenance

* **dependabot:** Update golang and ubuntu version ignore criteria ([4f34d5e](4f34d5e))
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.109.11 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@inference-gateway-releaser inference-gateway-releaser Bot added the released Shipped in a release label May 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[TASK] Refactor the prompt for remote control via channel manager

1 participant