agent

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package agent names the coding agents whose local sessions cct can transfer.

cct started as a Codex-only tool and is being extended to Claude Code. The two agents store sessions very differently (Codex: ~/.codex/sessions/YYYY/MM/DD/ rollout-*.jsonl; Claude Code: ~/.claude/projects/<encoded-cwd>/<uuid>.jsonl), but the portable export -> move -> import model, the bundle/manifest/checksum machinery, and the safety guarantees are identical. This package provides the small shared vocabulary (which agent a bundle or command targets) that lets the reusable core stay agent-agnostic while the per-agent specifics live in the codexhome/sessions and claudehome/claudesessions packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Kind

type Kind string

Kind identifies a coding agent.

const (
	// Codex is OpenAI's Codex CLI (~/.codex). This is the default for bundles
	// that predate the multi-agent work and do not record a tool.
	Codex Kind = "codex"
	// Claude is Anthropic's Claude Code (~/.claude).
	Claude Kind = "claude"
)

func Normalize

func Normalize(k Kind) Kind

Normalize returns the Kind a manifest or option should be treated as. An empty value means a legacy (pre-multi-agent) bundle, which is always Codex.

func Parse

func Parse(s string) (Kind, error)

Parse converts a user-supplied tool name into a Kind. It is tolerant of case and a couple of common aliases.

func (Kind) Label

func (k Kind) Label() string

Label is a human-readable name for messages and headers.

func (Kind) String

func (k Kind) String() string

String implements fmt.Stringer, returning the canonical lowercase token.

Jump to

Keyboard shortcuts

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