Summary
The .mng/settings.toml project config sets a default agent type:
[commands.create]
type = "worker"
The create_verifying_agent.sh skill script passes verifier as a positional argument to mng create:
mng create "$AGENT_NAME" verifier ...
This causes mng create to fail with:
Error: Conflicting agent types: positional argument says 'verifier' but --type says 'worker'. Use one or the other.
Steps to reproduce
- Have a
.mng/settings.toml with [commands.create] type = "worker"
- Run
./skills/verify-task-result/create_verifying_agent.sh <task-name> <agent-id> <msg-file>
- Observe the conflict error
Expected behavior
The positional argument passed to mng create should take precedence over (or merge cleanly with) the default type in settings.toml. Alternatively, create_verifying_agent.sh could use --type verifier instead of a positional arg.
Workaround
Call mng create directly with --type verifier instead of using the positional argument. This overrides the settings default correctly.
Suggested fix
Either:
- Update
create_verifying_agent.sh to use --type verifier (explicit flag) instead of the positional arg, or
- Have
mng create treat the positional arg as an override over the settings default (not a conflict)