constants
constants
Section titled “constants”import "github.com/thesimonho/warden/constants"Package constants defines shared values used across Warden’s packages. It has no imports and no logic — any package can depend on it safely.
Constants
Section titled “Constants”ContainerHomeDir is the home directory for ContainerUser inside containers.
const ContainerHomeDir = "/home/" + ContainerUserContainerUser is the non-root user inside project containers. All terminal processes (tmux, the agent, bash) run as this user.
const ContainerUser = "warden"TmuxSessionPrefix is prepended to worktree IDs to form tmux session names.
const TmuxSessionPrefix = "warden-"Variables
Section titled “Variables”AllAgentTypes lists all supported agent type identifiers in display order.
var AllAgentTypes = []AgentType{AgentClaudeCode, AgentCodex}func TmuxSessionName
Section titled “func TmuxSessionName”func TmuxSessionName(worktreeID string) stringTmuxSessionName returns the tmux session name for a worktree.
type AgentType
Section titled “type AgentType”AgentType identifies an AI coding agent supported by Warden. Used as the database column value and WARDEN_AGENT_TYPE env var.
type AgentType stringconst ( // AgentClaudeCode identifies Anthropic's Claude Code CLI. AgentClaudeCode AgentType = "claude-code" // AgentCodex identifies OpenAI's Codex CLI. AgentCodex AgentType = "codex"
// DefaultAgentType is the agent type used when none is specified. DefaultAgentType = AgentClaudeCode)func (AgentType) String
Section titled “func (AgentType) String”func (t AgentType) String() stringString returns the string representation of the agent type.
func (AgentType) Valid
Section titled “func (AgentType) Valid”func (t AgentType) Valid() boolValid reports whether the agent type is a known supported type.
Generated by gomarkdoc