Config by Prompt
# Config by Prompt
Status: Implemented
## Overview
### Purpose
- Define how a prompt markdown file can override agent runtime settings using YAML front matter.
- Define how a config file can set per-prompt `model` and `agent-mode` overrides in a dedicated section.
- Ensure front matter metadata is stripped before prompt text is sent to the external agent CLI.
### Goals
- Support per-prompt overrides for `model` and `agent-mode`.
- Support per-prompt overrides from both front matter and config file.
- Keep existing global configuration behavior intact.
- Define deterministic precedence across flags, env vars, front matter, config file, and defaults.
- Specify clear behavior for invalid front matter and unknown keys.
### Non-Goals
- Introducing new prompt source types.
- Adding support for overriding `agent` in front matter.
- Defining implementation-specific parser internals.
### Scope
- In scope: markdown prompt files loaded via `--prompt-file` and `PromptsDir/<prompt>.md`.
- Out of scope: inline prompts (`--prompt`) and stdin prompt text (`-`).
## Architecture
### Module/package layout (tree format)when to use it
Community prompt sourced from the open-source GitHub repo iyaki/specralph (MIT). A "Config by Prompt" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.
tags
productivitycommunitydeveloper
source
iyaki/specralph · MIT
more in Productivity
Productivity✓ tested
Summarize a doc into decisions & actions
chief of staff who extracts what to DO, not just what was said
Productivity✓ tested
Draft a reply to a hard email
calm, direct communicator who de-escalates without caving
Productivity✓ tested
Turn a brain-dump into a weekly plan
planning coach who protects your focus, not just your calendar