agent

package
v0.0.0-...-1956238 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConcurrentProbe

func ConcurrentProbe[T any](items []T, probe func(T) *model.AgentSession) []model.AgentSession

ConcurrentProbe runs probe concurrently on each item and collects non-nil results.

func DiscoverAmp

func DiscoverAmp() []model.AgentSession

DiscoverAmp finds all running Amp Code processes and determines their status.

func DiscoverClaude

func DiscoverClaude() []model.AgentSession

DiscoverClaude finds all running Claude Code processes and determines their status.

func DiscoverCodex

func DiscoverCodex() []model.AgentSession

DiscoverCodex finds all running Codex processes and determines their status.

func DiscoverGemini

func DiscoverGemini() []model.AgentSession

DiscoverGemini finds all running Gemini CLI processes and determines their status.

Gemini spawns a child node process with identical argv for each session. We filter children by checking PPID membership in the PID set, then group parent PIDs by CWD and pair them with matching session files ordered by startTime.

func DiscoverOpenCode

func DiscoverOpenCode() []model.AgentSession

DiscoverOpenCode finds all running OpenCode instances. Each process = one AgentSession. Status is "busy"/"retry" if any session is active, otherwise "idle".

Types

This section is empty.

Jump to

Keyboard shortcuts

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