Skip to content

Extract shared system-prompt resolver for the two voice commands#173

Merged
alexkroman merged 2 commits into
mainfrom
claude/codebase-simplify-ybwdaq
Jun 16, 2026
Merged

Extract shared system-prompt resolver for the two voice commands#173
alexkroman merged 2 commits into
mainfrom
claude/codebase-simplify-ybwdaq

Conversation

@alexkroman

Copy link
Copy Markdown
Collaborator

agent and agent-framework carried a byte-for-byte identical
_resolve_system_prompt helper. Move it to app/agent_shared.py (the
doctor_checks/setup_exec precedent for run-logic shared between
commands) and import it in both _exec.py modules, so the persona-file
resolution lives in one place.

claude added 2 commits June 16, 2026 12:25
`agent` and `agent-framework` carried a byte-for-byte identical
`_resolve_system_prompt` helper. Move it to `app/agent_shared.py` (the
`doctor_checks`/`setup_exec` precedent for run-logic shared between
commands) and import it in both `_exec.py` modules, so the persona-file
resolution lives in one place.
…pleters

`complete_voice` (agent + agent-framework) and `complete_model` (llm) each
re-implemented the same `[o for o in options if o.startswith(incomplete)]`
filter. Hoist it to `core.choices.complete_prefix` and delegate from all
three, so the completion contract lives in one tested place.
@alexkroman alexkroman enabled auto-merge June 16, 2026 12:32
@alexkroman alexkroman added this pull request to the merge queue Jun 16, 2026
Merged via the queue into main with commit c2b0958 Jun 16, 2026
19 checks passed
@alexkroman alexkroman deleted the claude/codebase-simplify-ybwdaq branch June 16, 2026 12:40
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.

2 participants