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

harness

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package harness names the agent harness an awp agent runs in (Claude Code, Codex, ...), so dashboards can show which is which. The IDs are the ones awp bootstrap uses.

Index

Constants

View Source
const (
	Claude   = "claude"
	Opencode = "opencode"
	Codex    = "codex"
	Cursor   = "cursor"
	Gemini   = "gemini"
	Copilot  = "copilot"
	Grok     = "grok"
	Pi       = "pi"
)

Known harness IDs.

Variables

This section is empty.

Functions

func Detect

func Detect(getenv func(string) string) string

Detect finds the harness this process runs under from its environment, or "".

func FromName

func FromName(name string) string

FromName guesses the harness from an agent name such as "claude-code@worker": the part before the @.

func IDs

func IDs() []string

IDs lists the known harness IDs.

func Normalize

func Normalize(s string) string

Normalize returns the ID for a harness name, or "" if it is not one awp knows.

Types

This section is empty.

Jump to

Keyboard shortcuts

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