/lorenzh:researching-with-two-modelsfrom lorenzh
Two-model research workflow with researchers from different model families and one synthesizer. Use when the user asks to research an issue, question or design choice "with two models", wants a Claude and a GPT answer compared, asks for a cross-family or second-opinion research report, or wants research merged into one report or issue comment.
Ships in lorenzh. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Get one research report that two model families reached independently, with every disagreement settled by evidence.
Two researchers answer the same brief without seeing each other. The synthesizer trusts neither: it re-checks every disagreement against primary sources itself.
Roles, each a separate agent or session:
| Role | Model | Access |
|---|---|---|
| Researcher A | family 1 (for example Claude), high effort | read-only, web allowed |
| Researcher B | family 2 (for example GPT), high effort | read-only, web allowed |
| Synthesizer | either family, or the lead | read, run commands, fetch; writes only the report |
Write brief.md in a scratch folder outside the repo. Both researchers get it byte for byte; a line added for one researcher breaks the comparison. The brief has these parts, in order:
Model: <your model id>."[from memory]."Model:, Findings (claim + evidence each), Options (cost, risk), Recommendation, Open questions.Done when brief.md holds the five parts and names no other researcher or answer.
Start both in the same turn, each with only brief.md. Each returns its answer as text; the lead or the runtime saves it to its own file (answer-a.md, answer-b.md).
codex exec -m <model> -c model_reasoning_effort=high -s read-only --skip-git-repo-check -C <repo> -o answer-b.md - < brief.md.Give each researcher read-only access (a read-only sandbox or read-only tools); a researcher with write access can change the code the other is reading. If a chosen model is unavailable, stop and tell the user; a substitute from the same family is no longer a two-family result.
Record the model each runtime reports: the CLI's header or log line (for codex exec, the model: line it prints at start), or the pinned agent definition. Use that, not the Model: line, as evidence: self-reports differ from runtime headers, and a researcher may answer only with a family name such as "GPT-6". A report without a runtime model id is a report without a model.
Done when both answer files exist and you hold a runtime-reported model for each.
Give the synthesizer brief.md, both answers and the two runtime models. It:
[from memory] or uncited claim the recommendation depends on, checks it itself: re-runs the measurement, fetches the doc, reads the source. A side picked, an average, or "it depends" without a check leaves the report unproven.report.md in this shape:## Question
<question, and the constraints a solution must keep>
## Findings
- <claim> — <evidence: URL, file:line, or command + output> (A, B, or both)
## Disagreements
- A: <claim>. B: <claim>. Checked: <command or source> → <result>.
## Options
| Option | Cost | Risk | Keeps constraints? |
## Recommendation
<one option, why, main risk>
## Open questions
- <what no source settled>
## Models
Researcher A: <runtime model, effort>. Researcher B: <runtime model, effort>. Synthesizer: <model>.
Done when report.md has every section and each Disagreements line names the check the synthesizer ran.
An agent can say it wrote a file while the write never reached the disk. Check every file before you use it:
for f in answer-a.md answer-b.md report.md; do [ -s "$f" ] && echo "ok $f" || echo "MISSING $f"; done
For each MISSING file, recover the content from the agent's transcript instead of re-running the agent: the content of its last Write to that path, or its final message. In Claude Code the subagent transcript is ~/.claude/projects/<project>/<session>/subagents/agent-<id>.jsonl:
# the last Write to this file; an agent may write several files, or the same file twice
jq -rs --arg f report.md '[.[] | select(.type=="assistant") | .message.content[]? | select(.type=="tool_use" and .name=="Write" and (.input.file_path | endswith("/" + $f)))] | last | .input.content // empty' <transcript>
# fallback: the complete final message, every text block joined (one message can span several entries with the same id)
jq -rs '[.[] | select(.type=="assistant" and any(.message.content[]?; .type=="text"))] as $a | ($a | last | .message.id) as $id | [(if $id then $a[] | select(.message.id == $id) else ($a | last) end) | .message.content[]? | select(.type=="text") | .text] | join("\n\n")' <transcript>
Use the file name you are recovering in place of report.md. Take the whole message; a cut-off report loses its last sections.
For a CLI runtime, the -o <file> output or its session log holds the final message. Write the recovered text to the file and say in the report that it was recovered.
Done when every file prints ok.
Before the report leaves the machine (issue comment, PR, chat), scan it for private data:
grep -inE '/(home|Users)/|[A-Za-z]:[\\]|[A-Za-z0-9._-]+[.](local|internal|lan)([^A-Za-z0-9]|$)|["'"'"']?(token|secret|password|api[_-]?key)["'"'"']?[[:space:]]*[:=]' report.md; echo "exit $?"
Rewrite each hit: a path to repo-relative, a username or host to a placeholder, a secret removed. Also read for employer, customer and private repo names; grep cannot know them.
Then deliver where the user asked: post it (for example gh issue comment <n> --body-file report.md) or hand over the file path. Without a destination, give the path and ask.
Done when the grep prints only exit 1 (no match; exit 2 is a scan error) and the report is posted or its path given.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub lorenzh/skills --plugin lorenzh27 skills in this plugin
/checking-before-publishingPrivacy check for anything about to go public. Use when about to post an issue or PR comment, opening a PR, committing, pushing, publishing a release, blog post or README, or sharing screenshots, GIFs, videos or terminal recordings; when relaying a subagent's text to a public place; or when the user asks to "check for private data", "scrub" or "redact" something before sharing./cloning-voices-with-kittenttsVoice cloning with KittenTTS 2 from a short recording and text. Use when users say "kitten tts", "Stimme klonen", "clone my voice", "sprich diesen Text mit meiner Stimme", or "text to speech with my voice" and want a speech WAV.
/competing-implementationsImplementation competition for one task. Use when the user asks to have two agents compete on a change, wants competing implementations, asks to compare implementations and ship the winner, or asks for competing implementations on several dependent issues in waves./creating-worktreesGit worktree setup and cleanup for isolated parallel work. Use when the user asks to "work in a worktree", wants an isolated workspace or a parallel branch checkout, is about to execute an implementation plan that should not touch the current checkout, asks how to install dependencies or copy .env files into a worktree, wants a coding agent or sandbox to work in one, or asks to remove or clean up a worktree, or when worktrees fill the disk (ENOSPC, "No space left on device")./cutting-releasesRelease workflow from version bump to verified install. Use when the user asks to "cut a release", "release x.y.z", "ship a new version" or publish to npm or another registry, or when a release was tagged but the package, the back-merge to main or the installed version still needs checking./directing-videosVideo directing workflow for demos, screencasts, terminal tours, tutorials, launch videos and short films. Use when the user asks to plan, script, storyboard or direct a video, wants a "tour of all features", a demo or launch video, asks how long or how paced a video should be, or asks whether a recorded cut is ready to publish.