Regent / Working modes

Choose the kind of help. Keep the boundaries clear.

All five modes share repository intelligence, context, knowledge, and evidence. What changes is the kind of work Regent is asked to do—and whether it may write or execute.

Brainstorm No writesPlanning No writesBuilding ControlledReviewing Read-only by defaultMentor Mode-dependent
01

Brainstorm

Explore the problem space before committing to a direction.

Example request

“Should this service own retries, or should the caller handle them?”

Use this mode when you are still deciding what to build or which trade-off to make. Regent can surface alternatives, ask clarifying questions, and connect ideas to repository facts without changing files.

  1. 01Clarify the goal and constraints
  2. 02Collect relevant repository evidence
  3. 03Compare options with trade-offs
  4. 04Call out assumptions and open questions

Writes

No workspace writes

Execution

No tool execution

ResultA decision-ready set of options, grounded in the code that exists.

02

Planning

Turn a request into a bounded, reviewable implementation plan.

Example request

“Plan email verification without writing code yet.”

Use Planning when the goal is known but the change needs to be understood before editing. It identifies likely files, conventions, dependencies, missing requirements, and the checks that would establish acceptance.

  1. 01Map the request to affected areas
  2. 02Trace callers, tests, and boundaries
  3. 03List assumptions and unanswered requirements
  4. 04Define validation and acceptance criteria

Writes

No workspace writes

Execution

Read-only inspection

ResultA plan a developer can approve, revise, or stop before any patch exists.

03

Building

Make approved changes through controlled tools.

Example request

“Implement the approved plan and run the session tests.”

Use Building after a direction is agreed. It follows the approved plan, proposes bounded edits, and applies policy to each action. Risky actions can require approval; technical execution still needs an appropriate sandbox.

  1. 01Use the accepted plan as scope
  2. 02Propose and apply reviewable patches
  3. 03Request approval when policy requires it
  4. 04Run relevant checks and report the diff

Writes

Controlled writes, subject to policy

Execution

Only through allowed tools and configured sandbox capabilities

ResultA scoped change with a diff, validation results, and an action trail.

04

Reviewing

Look for defects and risks without taking over the code.

Example request

“Review this diff for data-loss or authorization regressions.”

Use Reviewing to examine a diff or design against repository conventions and expected behavior. It should prioritize actionable findings, cite the evidence, and distinguish confirmed issues from uncertainty.

  1. 01Understand the change and intended behavior
  2. 02Inspect relevant code, callers, and tests
  3. 03Rank findings by severity and confidence
  4. 04Report evidence and any gaps in coverage

Writes

No writes by default

Execution

Read-only inspection and permitted checks

ResultPrioritized findings with file-level evidence—or a clear statement that none were found.

05

Mentor

Build understanding while you work through a real problem.

Example request

“Show me why this dependency direction is a problem.”

Use Mentor when learning is part of the task. It explains concepts through the current repository, makes trade-offs legible, and supports the developer without silently replacing their reasoning or choices.

  1. 01Start from the question and the developer’s current understanding
  2. 02Connect concepts to concrete source evidence
  3. 03Explain alternatives and consequences
  4. 04Check understanding and suggest a next step

Writes

No writes by default; can follow the active task policy

Execution

Mode-dependent, with explicit boundaries

ResultA repository-specific explanation that leaves the developer in control.

One context engine

Modes don’t each invent their own repository understanding. They share evidence, rules, knowledge, and session history.

Approval is not isolation

A human approval prompt and a technical sandbox solve different problems. Building mode needs both policy and a documented execution boundary.

Evidence over certainty theater

If evidence is missing, stale, or ambiguous, Regent should say so rather than presenting an inference as a fact.

See how these modes fit into the complete engineering loop.

Explore the workflow