Skip to content

feat: add decision mode for agent supervision and context compression - #1045

Open
alcholiclg wants to merge 1 commit into
modelscope:mainfrom
alcholiclg:feat/decision-mode
Open

alcholiclg wants to merge 1 commit into
modelscope:mainfrom
alcholiclg:feat/decision-mode

Conversation

@alcholiclg

@alcholiclg alcholiclg commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

Change Summary

Long-running agents can repeat unsuccessful actions, claim completion despite failed checks, and accumulate tool outputs that are no longer needed.

This PR adds an opt-in experimental Decision mode that uses a separate decision model to review execution and select context while retaining the user's chosen main model.

  • Add typed decision requests and responses with a System One-compatible client, validation, timeouts and resource cleanup.
  • Add bounded execution and completion checks that can request reflection when evidence indicates a problem.
  • Select redundant tool outputs for compression. Use LLM summaries when selection is insufficient, and retain original outputs for later retrieval.
  • Add WebUI mode selection and decision-model settings. Lock the mode after execution begins and preserve it across reloads, resumes and forks.
  • Add SDK/TUI integration, English and Chinese documentation, regression tests and an opt-in live smoke script.

Related issue number

Checklist

  • The pull request title is a good summary of the changes - it will be used in the changelog
  • Unit tests for the changes exist
  • Run pre-commit install and pre-commit run --all-files before git commit, and passed lint check.
  • Documentation reflects the changes where applicable

- Add a typed decision protocol and System One-compatible client
- Add bounded execution supervision and semantic context selection
- Fall back to LLM summaries and preserve access to original tool outputs
- Persist session execution modes and expose configuration in WebUI
- Add bilingual documentation, regression tests and a live smoke script

This branch is being deployed

1 queued deployment
testci — ded82af1 Deployed Nov 3, 2026 by alcholiclg via unittest #2015
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