feat(config): add execution context profiles for mode-specific agent output (#1827)

* feat(config): add execution context profiles for mode-specific agent output

* fix(config): add enum validation for context config key

Validate context values against allowed enum (dev, research, review)
in cmdConfigSet before writing to config.json, matching the pattern
used for model_profile validation. Add rejection test for invalid
context values.
This commit is contained in:
Rezolv
2026-04-05 19:09:19 -04:00
committed by GitHub
parent f25ae33dff
commit e107b4e225
6 changed files with 138 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
# Dev Context Profile
Agent output guidance for dev mode. Loaded when `context: dev` is set in config.json.
## Output Style
- Concise, action-oriented responses
- Lead with the code change or command, follow with brief rationale
- Skip preamble — assume the developer has full context
- Use inline code references (`file:line`) over prose descriptions
## Focus Areas
- Working code that compiles and passes tests
- Minimal diff — change only what is necessary
- Flag side effects or breaking changes immediately
- Surface the next actionable step at the end of every response
## Verbosity
Low. One-liner explanations unless the change is non-obvious. Omit background theory, alternative approaches, and caveats that do not affect the current task.