feat: add managed system prompt optimization
Add an opt-in OpenCode plugin that replaces the built-in provider behavioral prompt with a minimal identity while preserving environment, project, MCP, skill, history, and tool context. Track the active agent per session and apply the transform only to build and plan. Keep plan/build mode reminders and permission enforcement owned by OpenCode, leave all other agents untouched, and fail safely when the expected prompt boundary is absent. Expose the feature in Behavior settings with localized guidance, explicit Save + Reload application, settings search integration, persisted boolean validation, and managed-runtime lifecycle composition that does not load the plugin while disabled or on external OpenCode servers. Document the runtime contract and cover plugin materialization, config preservation, build/plan selection, agent switching, unknown prompt formats, and settings sanitization.
This commit is contained in:
@@ -52,6 +52,9 @@ openchamber update # Update to latest version
|
||||
When OpenChamber launches the local OpenCode server, it also registers a native
|
||||
`openchamber` agent tool for project, session, and scheduled-task orchestration.
|
||||
The tool is not injected when connecting to an external OpenCode server.
|
||||
Behavior settings can optionally inject a managed system-prompt optimizer on
|
||||
the next OpenCode restart. It is disabled by default and is not available for
|
||||
external OpenCode servers.
|
||||
|
||||
### Tunnel behavior notes
|
||||
|
||||
|
||||
Reference in New Issue
Block a user