1
1
Fork
You've already forked zop
0

Improve CLI prompt handling and config management #4

Merged
Copilot merged 4 commits from copilot/fix-zop-command-input-errors into main 2026年03月15日 09:19:28 +01:00
Copilot commented 2026年03月15日 02:23:32 +01:00 (Migrated from github.com)
Copy link

The CLI prompt parsing was treating positional prompts as subcommands, breaking zop "..." usage. Config commands were limited, default config wasn’t written on first run, and config display ordering was inconsistent.

  • Prompt handling & interactive mode
    • Accept prompt via -p, treat no-args as stdin, retain positional prompts, add -i/--interactive loop
    • Add model-level system_prompt and apply system precedence: flag → agent → model
  • Config usability
    • Write default config on first run
    • Add config list/get/set/unset/remove/edit across all sections
    • Sort config show output deterministically
  • Docs & defaults
    • Update README usage examples and config commands
    • Add system_prompt hints to default config and tests

Example:

zop -p "What is the capital of France?"
zop --interactive --chat my-chat
zop config set models.gpt4o.system_prompt "Be concise."

Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

The CLI prompt parsing was treating positional prompts as subcommands, breaking `zop "..."` usage. Config commands were limited, default config wasn’t written on first run, and config display ordering was inconsistent. - **Prompt handling & interactive mode** - Accept prompt via `-p`, treat no-args as stdin, retain positional prompts, add `-i/--interactive` loop - Add model-level `system_prompt` and apply system precedence: flag → agent → model - **Config usability** - Write default config on first run - Add `config list/get/set/unset/remove/edit` across all sections - Sort `config show` output deterministically - **Docs & defaults** - Update README usage examples and config commands - Add `system_prompt` hints to default config and tests Example: ```sh zop -p "What is the capital of France?" zop --interactive --chat my-chat zop config set models.gpt4o.system_prompt "Be concise." ``` <!-- START COPILOT CODING AGENT TIPS --> --- ✨ Let Copilot coding agent [set things up for you](https://github.com/peterwwillis/zop/issues/new?title=✨+Set+up+Copilot+instructions&body=Configure%20instructions%20for%20this%20repository%20as%20documented%20in%20%5BBest%20practices%20for%20Copilot%20coding%20agent%20in%20your%20repository%5D%28https://gh.io/copilot-coding-agent-tips%29%2E%0A%0A%3COnboard%20this%20repo%3E&assignees=copilot) — coding agent works faster and does higher quality work when set up for your repo.
peterwwillis (Migrated from github.com) reviewed 2026年03月15日 02:23:32 +01:00
Sign in to join this conversation.
No reviewers
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
mutablecc/zop!4
Reference in a new issue
mutablecc/zop
No description provided.
Delete branch "copilot/fix-zop-command-input-errors"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?