Skip to content

feat: support custom system prompt from CLI#403

Open
binichallein wants to merge 1 commit into
zai-org:mainfrom
binichallein:feat/system-prompt-cli-387
Open

feat: support custom system prompt from CLI#403
binichallein wants to merge 1 commit into
zai-org:mainfrom
binichallein:feat/system-prompt-cli-387

Conversation

@binichallein
Copy link
Copy Markdown

Summary

  • Fixes 支持修改系统提示词 #387 by adding --system-prompt and --system-prompt-file CLI options.
  • Supports PHONE_AGENT_SYSTEM_PROMPT and PHONE_AGENT_SYSTEM_PROMPT_FILE environment variables.
  • Passes the resolved prompt override into both Android/HarmonyOS and iOS agent configs.
  • Adds tests for argument parsing, file loading, conflict handling, and agent config wiring.

Test Plan

  • python -m pytest
  • pre-commit run --files main.py tests/test_system_prompt_cli.py
  • python main.py --help | rg -n "system-prompt|custom system prompt"

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