nudge

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package nudge delivers an operator-triggered "check your inbox" prompt into an agent's tmux pane via send-keys. This is the ONLY place muster types into a pane; automated bus activity uses internal/wake (notify) instead.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TmuxNudger

type TmuxNudger struct {
	Run   func(args ...string) error
	Sleep func(d time.Duration)
}

TmuxNudger types a nudge into a pane and optionally submits it. Run is the command executor (nil → real tmux) and Sleep is the delay function (nil → time.Sleep); both are injectable for testing.

func (TmuxNudger) Nudge

func (n TmuxNudger) Nudge(socketPath, paneID, modelType string, submit bool) (bool, error)

Nudge types the check-inbox line into the pane. When submit is requested it presses Enter to submit the turn: claude accepts the Enter immediately, while codex needs a short delay after the text before a standalone Enter registers as a submit (see codexSubmitDelay). Unknown model types are typed-only (submitted=false) because their send-keys submit behavior is unverified, so the caller can tell the operator to press Enter.

Jump to

Keyboard shortcuts

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