Repository navigation
Closed
Labels
Description
Epic for making Junior reliable on complicated feature-development and coding tasks. Today a coding request goes straight from investigation to edits and a draft PR, with no default step to align on a plan, confirm scope with the requester, or track progress somewhere an engineer can follow.
Current behavior
- Profiles only pick a model. A profile is
{ modelId, reasoningLevel, description }and nothing else: no per-profile prompt rules, tools, skills, or workflow (model-profile.ts#L24-L37). The defaults arestandardandhandoff, and thehandoffdescription already covers implementation, debugging, and architecture work. - Coding context doesn't carry across turns. Each new turn is routed again; a handoff applies to its own turn and resumes but "must not pin later requests to that profile" (
agent/index.ts#L627). So a multi-turn flow like plan → user answers a question → implement gets re-routed at every step, and a short reply such as "yes, go" can land on the routine profile. Separate turn routing from model handoffs #1036 left this policy as an open design question. - Core prompt pushes toward acting right away.
TASK_EXECUTION_RULESsays "Actionable request: act in this turn" and "Ask the user only for missing access, approval, or a decision that blocks safe progress".PLANNING_RULESsays "do not finish with a plan when you can complete the work now" (prompt.ts#L318-L330). - The coding skill has no plan or confirm step. The
github-codeworkflow is Resolve → Investigate → Edit → Verify → Package (workflow.md), and the skill defaults to "Unless the user opts out, push completed work and open a draft PR" (SKILL.md#L36). - Progress tracking only lives in the conversation.
updatePlan(Add Codex-style TODO tracking within conversations #1859) is a checklist inside the conversation. Nothing durable on GitHub lets an engineer review the proposed plan or follow progress across PRs.
Gap
For non-trivial features, Junior commits to an approach before the requester has seen or confirmed it. Work isn't split into reviewable units, and progress isn't visible outside Slack. Course-correcting happens late, in PR review, after implementation is already done.
Proposal
This is the requested direction; the details are still open.
- Coding mode. Junior can upgrade a conversation into a coding mode, either by extending profiles or as a separate concept next to them. Entering coding mode always upgrades to the stronger model and stays active for later turns of that effort.
- Investigate first. Before planning, Junior always investigates the codebase and the ask so it understands the topic.
- High-level plan, then riff. Junior comes back with a high-level plan plus zero or more clarifying questions. If the task is simple, it can skip the questions, but implementation doesn't start until the plan has been checked with the requester by default.
- GitHub tracking issue. Every feature gets a tracking issue (epic) with the proposed plan and sub-tasks, so engineers can review the plan and follow progress.
- Fireable sub-tasks. Each implementation task states its intended outcome. Tasks are detailed but not a code-level breakdown, each one is self-contained and cleanly testable, and each maps to one or more PRs.
Workstreams
These are rough and get refined once the design settles.
- Decide whether coding mode extends profiles (for example, profile-scoped prompt rules, skills, or workflow) or is a separate mode that implies a profile
- Make coding mode last across turns, and define how it's entered and exited, both by the model and by the user
- Define the plan-first flow (investigate → plan → clarify → confirm → implement) and how it relaxes the current act-now rules while in coding mode
- Create and maintain the tracking issue: format for the plan, the sub-task checklist, and linking PRs back to it
- Define what a well-formed sub-task is (outcome, scope, how to test it) and when to split work into multiple PRs
- Write evals covering plan-before-edit, clarifying questions vs. skipping them on simple tasks, and tracking-issue upkeep
Related
- GitHub skill: add branch naming, commit/PR guidelines, and multi-phase workflow #165: adds an Analyze/Plan/Execute/Verify phase sequence to the GitHub skill (narrower, skill-only)
- Separate turn routing from model handoffs #1036: separated turn routing from handoffs and left profile persistence across turns open
- Add Codex-style TODO tracking within conversations #1859: in-conversation
updatePlanchecklist - Expose spawnAgent and getAgentResult with named agent continuity #880 / Build durable subagents on shared conversation execution #883: subagents, which could later run individual sub-tasks
via daniel.
--
Activity
dcramer commentedon Oct 1, 2026
So my quick thoughts without consuming all this:
feat(sandbox): List repository skills with AGENTS.md instructions (#1999
sentry-junior commentedon Oct 13, 2026
Tracked under #2105. Direction there: coding mode is a consumer of a coordinator that is native to every thread (child conversations plus phase gates), not a separate structure, and per-project memory is out of scope.
sentry-junior commentedon Oct 18, 2026
Prior art: how Claude Code handles "big task" mode, clarifying questions, and suggested tasks
Research from a Slack discussion with @dcramer about how Claude Code (CLI + desktop) handles plan-first work and breaking work into tasks. It's here as input for the coding workflow (see #2105 for the coordinator/child-conversation direction). Researched Oct 18, 2026.
What Claude Code has
AskUserQuestionbuilt-in tool. Takes a question and options; single-select options can include an optionalpreviewfield (a self-contained HTML fragment for mockups/code comparisons). In plan mode it must not be used to ask "is the plan ready?"tool-description-askuserquestion*.mdEnterPlanMode/ExitPlanMode. Plan mode explores read-only, writes a plan file, usesAskUserQuestionto clarify, thenExitPlanModepresents the plan for approval. There's also a 5-phase plan-mode reminder and an "interactive workshop" offer: for tasks with real design decisions, it offers a published page where the user clicks through each open decision, and the choices flow back into the plan.system-prompt-plan-mode-interactive-workshop-offer.md,system-reminder-plan-mode-is-active-5-phase.mdProposeGoal, non-blocking. It proposes one verifiable end state (e.g. "bun test exits 0") that a separate evaluator checks from the conversation alone. The user approves with one keypress;ask_user: falseonly when the user stated that outcome themselves. It's never used to widen scope.tool-description-proposegoal.mdmcp__ccd_session__spawn_task(plusdismiss_task) on an internalccd_sessionMCP server that the desktop app injects. Claude writes a title, a summary, and a hidden prompt. The chip shows the title and summary; one click starts a new session linked to the parent, in a fresh worktree, locally or in the cloud. The desktop changelog calls these "side-task suggestions".TaskCreate/TaskGet/TaskUpdate/TaskList, depending on model and version. This is a progress checklist, not the suggest-and-pick UX. Our equivalent isupdatePlan(#1859).Gaps users have flagged in Claude Code
spawn_task, and the user never sees the prompt it wrote.Implications for Junior
requestUserInput) is ourAskUserQuestion: a question plus 2–5 choices, rendered by each surface. The plan → clarify → confirm step in this epic can build on it. The "Write the design doc" / "Keep discussing" choice is a direct fit.suggestTask({ title, summary, prompt, target }). The model writes the fields and the surface renders a card with Start (spawn a child conversation, Let a conversation coordinate child conversations #2105), File issue (GitHub/Linear adapter), and Dismiss. Unlike Claude Code, the issue should be the durable source of truth, and the chip should only point at it.EnterPlanModeplus "use when the task is ambiguous" guidance). The idea here is that the turn router classifies "coding task + complexity" and enters coding mode automatically or after a prompt. That would be a deterministic version of the same thing.ProposeGoal-style approved completion condition could set the "done" check for each sub-task.Source caveats
ccd_*tools.spawn_taskfield names come from community bug reports. Nobody has published its exact schema.sentry-junior commentedon Nov 9, 2026
Duplicate of #2105, which consolidates the coding workflow including plan-first mode.
Closed during a tracker cleanup. Reopen if this still needs separate tracking.