Skip to content

Friendly model configuration + honest model disclosure#5

Merged
QiaolongLi1201 merged 1 commit into
mainfrom
codex/agent-capability-gap-fixes
Jun 13, 2026
Merged

Friendly model configuration + honest model disclosure#5
QiaolongLi1201 merged 1 commit into
mainfrom
codex/agent-capability-gap-fixes

Conversation

@QiaolongLi1201

Copy link
Copy Markdown
Collaborator

Summary

Makes Moss model configuration genuinely user-friendly (from a multi-model design panel, then verified by parallel-agent dogfooding) and makes the agent honest about its underlying model while keeping the Moss persona.

Model-config UX

  • moss config set apiKey works (was a phantom command in the guidance); never echoes the key, redacted in config show.
  • moss setup key-only fast path (2 inputs not 4 for first-party presets) + honest gateway reachability probe (no false "configured").
  • /model config preset-prefilled DeepSeek/Qwen/OpenAI templates — user only pastes the key.
  • config set usage groups model keys before operational keys.

Honest about the model

  • Identity keeps the "Moss" persona but instructs the agent to name the actual underlying model when asked (no substituting "Moss"); the configured model / built-in gateway is injected so the answer is accurate.

Dogfood-found fixes

  • Malformed config.json → clean moss: <msg> instead of a raw Node stack.
  • Over-quota built-in gateway → actionable recovery hint (run moss setup).
  • --help --all --ask-for-approval values corrected to match the validator.

Verification

npm run verify green (boundaries+hygiene+build+typecheck+lint+test; agent 166 files). A 5-agent dogfood run on the real CLI confirmed bring-your-own-key is now good-enough; remaining items (zero-config gateway quota is operational; doctor config-path when DMOSS_CONFIG_FILE is set) noted as follow-ups.

🤖 Generated with Claude Code

Model-config UX (from a multi-model design panel, then dogfood-verified):
- `moss config set apiKey <key>` now works (was advertised by guidance but had no
  handler — a phantom command); never echoes the key, redacted in `config show`
- `moss setup` key-only fast path: first-party presets skip the model/baseUrl
  prompts (2 inputs not 4) and the run probes the gateway, reporting "could not
  reach" on a bad key instead of a false "configured"
- `/model config` shows preset-prefilled DeepSeek/Qwen/OpenAI templates — the
  user only pastes their key, no looking up base_url/model
- `config set` usage groups model keys (provider/model/baseUrl/apiKey/imageInput)
  before operational keys

Honest about the model (persona stays "Moss", the model is disclosed truthfully):
- identity keeps the Moss product persona but tells the agent to name the actual
  underlying model when asked, instead of substituting "Moss"; the configured
  model (or "built-in gateway") is injected so the answer is accurate

Dogfood-found fixes:
- malformed/hand-edited config.json now prints a clean `moss: <msg>` instead of a
  raw Node stack (CliConfigFileError joined the CliConfigWriteError clean branch)
- over-quota/rate-limited built-in gateway now appends an actionable recovery hint
  ("free built-in model is over quota — run `moss setup` to use your own key")
- `--help --all` `--ask-for-approval` values corrected to match the validator

Verified: npm run verify green (boundaries+hygiene+build+typecheck+lint+test; agent
166 files). Parallel-agent dogfood confirmed BYOK is now good-enough.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@QiaolongLi1201 QiaolongLi1201 merged commit 1f97894 into main Jun 13, 2026
3 checks passed
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