cli

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2026 License: MIT Imports: 21 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package cli implements agentbar's subcommands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

Close removes every sidebar (also what q in the sidebar runs).

func Daemon

func Daemon()

Daemon runs the snapshot daemon in the foreground (normally started detached by openAll or by a viewer that finds no daemon).

func Doctor

func Doctor()

Doctor checks the environment and exits 1 if anything is wrong.

func Ensure

func Ensure(args []string)

Ensure is the after-new-window / after-new-session hook target.

func Event

func Event(args []string)

Event is the hook receiver. It must never fail loudly: any problem is logged and the process exits 0 so Claude Code is never blocked and never shows an error for a sidebar hiccup.

func Focus

func Focus(args []string)

Focus (prefix A): into the sidebar, or back to where you were. With no sidebar in this window it opens them everywhere and focuses this one.

func Install

func Install(args []string)

Install merges agentbar's hooks into ~/.claude/settings.json (or removes them with --uninstall). The file is backed up first. Hooks pointing at an older binary location are migrated to this one.

func Jump

func Jump(args []string)

Jump moves focus to a pane (used by the sidebar; also handy from scripts).

func Nudge

func Nudge()

Nudge asks the daemon for a fresh snapshot (window/session change hooks).

func Popup(args []string)

Popup (prefix a, or a click on the indicator) floats the session list in the centre of the client, as a picker sized to its content. args: the client to show it on and the pane the user is in, both expanded by tmux in the binding.

func Reflow

func Reflow()

Reflow is the window-resized hook target.

func Sweep

func Sweep()

Sweep is the pane-exited / after-kill-pane hook target: close sidebars left alone in a window.

func TmuxInit

func TmuxInit()

TmuxInit installs key bindings and hooks into the running tmux server. tmux.conf runs it once via `run-shell "<exe> tmux-init"`.

@agentbar-key          popup key after prefix (default a)
@agentbar-focus-key    sidebar focus key after prefix (default A)
@agentbar-sidebar-key  sidebar toggle key after prefix (default none)

func TmuxVersionOK

func TmuxVersionOK(v string) bool

TmuxVersionOK reports whether a `tmux -V` string is 3.2 or newer.

func Toggle

func Toggle(args []string)

Toggle (prefix a): sidebars everywhere, or none.

Types

This section is empty.

Jump to

Keyboard shortcuts

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