modes

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsExecuteMode

func IsExecuteMode(mode ExecutionMode) bool

IsExecuteMode returns true if the execution mode executes tools.

func IsExecuteModeString

func IsExecuteModeString(mode string) bool

IsExecuteModeString returns true if the execution mode string is execute mode. Matches both "execute" and "" (empty string treated as default execute mode).

func IsPairProgrammingMode

func IsPairProgrammingMode(mode ExecutionMode) bool

IsPairProgrammingMode returns true if the execution mode is pair programming mode.

func IsPairProgrammingModeString

func IsPairProgrammingModeString(mode string) bool

IsPairProgrammingModeString returns true if the execution mode string is pair programming mode.

func IsPlanMode

func IsPlanMode(mode ExecutionMode) bool

IsPlanMode returns true if the execution mode is plan mode.

func IsPlanModeString

func IsPlanModeString(mode string) bool

IsPlanModeString returns true if the execution mode string is plan mode.

Types

type ExecutionMode

type ExecutionMode string

ExecutionMode determines: - Whether tools are actually executed or just described - How the agent behaves (plan, execute, etc.)

const (
	// ExecutionModeExecute is the default mode - tools are executed normally.
	ExecutionModeExecute ExecutionMode = "execute"

	// ExecutionModePlan is planning mode - tools are described but not executed.
	// In this mode, the agent only provides descriptions/plans without running them.
	// This is useful for letting users review before actual execution.
	ExecutionModePlan ExecutionMode = "plan"

	// ExecutionModePairProgramming is collaborative mode - the AI works alongside the user
	// with more interactive feedback and suggestions rather than autonomous execution.
	// This mode focuses on collaboration and real-time code review.
	ExecutionModePairProgramming ExecutionMode = "pair_programming"
)

Directories

Path Synopsis
Package execution provides execution mode state management.
Package execution provides execution mode state management.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL