harness

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package harness exposes the stable catalog of agent harnesses recognized by AHT. It provides name parsing and executable matching without exposing the harness-specific hook, plugin, or installation implementations.

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromCommand

func FromCommand(command string) (registry.Harness, bool)

FromCommand identifies a supported harness from an executable path or name.

func Parse added in v1.1.0

func Parse(value string) (registry.Harness, error)

Parse returns the supported harness identified by value. Harness names and documented aliases are matched without punctuation or case sensitivity.

Example
package main

import (
	"fmt"

	"github.com/zigai/aht/pkg/harness"
)

func main() {
	harnessID, err := harness.Parse("OpenCode")
	if err != nil {
		panic(err)
	}

	fmt.Println(harnessID)
}
Output:
opencode

func ProcessNames

func ProcessNames(harness registry.Harness) []string

ProcessNames returns executable names associated with harness.

func Supported added in v1.1.0

func Supported() []registry.Harness

Supported returns every harness recognized by this AHT version.

Types

This section is empty.

Jump to

Keyboard shortcuts

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