agents

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Prefs

type Prefs struct {
	ShowPeek        bool   `toml:"agents_show_peek"`
	ShowBadges      bool   `toml:"agents_show_badges"`
	ShowChip        bool   `toml:"agents_show_chip"`
	ShowSubheader   bool   `toml:"agents_show_subheader"`
	ShowHint        bool   `toml:"agents_show_hint"`
	ShowMerged      bool   `toml:"agents_show_merged"`
	DefaultModel    string `toml:"agents_default_model"`
	DefaultProvider string `toml:"agents_default_provider"`
}

Prefs are the agents-overview render + default-spawn toggles. Persisted as top-level keys in ~/.bee/config.toml so the file stays flat (one source of truth). Defaults preserve the existing look — every Show* is true.

func DefaultPrefs

func DefaultPrefs() Prefs

DefaultPrefs returns the visible-by-default preset. Used when no config file exists or none of the keys are set.

func LoadPrefs

func LoadPrefs() Prefs

LoadPrefs reads agents prefs from the bee config file. Missing file or missing keys fall back to DefaultPrefs so the user gets a sensible view on first launch. Read errors are swallowed — config drift shouldn't break the overview from opening.

type Result

type Result struct {
	AttachID string
}

Result is what Run returns after the overview exits. AttachID set means the caller should open `bee back <id>`; empty means clean quit.

func RunOverview

func RunOverview(repoRoot string) (Result, error)

RunOverview launches the overview program in a fresh alt-screen. Returns Result.AttachID when the user picked an agent (caller opens `bee back`). Spawns a merger goroutine that auto-merges done branches on a ticker.

Jump to

Keyboard shortcuts

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