Help us shape the future of Go! Take the 2026 Go Developer Survey

agentid

package
v2.219.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package agentid reads the dictatable short id naming one running agent session, so a terminal surface can show which agent it is looking at. Contract and rationale: docs/identity.md.

Index

Constants

View Source
const SessionEnv = "AOS_NATIVE_SESSION"

SessionEnv is the variable `aos` exports for the active native session.

Variables

This section is empty.

Functions

func FromEnv

func FromEnv() string

FromEnv returns the session's short id, or "" when there is none. It reads rather than mints, because the status line re-renders on every tick.

func Normalize

func Normalize(raw string) string

Normalize trims and lowercases a dictated id, returning "" when the result is not canonical. A malformed value is dropped rather than displayed.

func Valid

func Valid(raw string) bool

Valid reports whether raw is canonical: two dictatable letters, two digits.

Types

This section is empty.

Jump to

Keyboard shortcuts

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