agent

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: MIT Imports: 11 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 agent installs the session-start hooks that make each AI coding agent run `skillcrew sync` when a session starts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent interface {
	// Name is the agent's stable identifier, such as "claude-code".
	Name() string
	// Detected reports whether the agent's config directory exists under home.
	Detected(home string) bool
	// HookInstalled reports whether a Skillcrew hook is registered.
	HookInstalled(home string) (bool, error)
	// InstallHook registers `<bin> sync --hook`. It is idempotent and keeps
	// every other setting and hook intact.
	InstallHook(home, bin string) error
	// UninstallHook removes Skillcrew's hook only; it is a no-op when absent.
	UninstallHook(home string) error
}

Agent is a coding agent that can trigger a sync when a session starts.

func All

func All() []Agent

All returns every supported agent.

Jump to

Keyboard shortcuts

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