Documentation
¶
Overview ¶
Package agentdetect tells whether a coding agent (Claude Code, Codex) runs in a tab's terminal, which conversation it is in and whether that conversation can be resumed from its transcript: the check-agent answer, read the way the previous runtime read it, on top of internal/agents/claude and internal/agents/codex.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( Claude = Provider{ID: claude.ProviderID, DisplayName: claude.DisplayName, PanelType: claude.PanelType} Codex = Provider{ID: codex.ProviderID, DisplayName: codex.DisplayName, PanelType: codex.PanelType} )
var ErrBadRecord = claude.ErrBadRecord
ErrBadRecord: an agent's own record of a session cannot be read the way the previous runtime expected, which made it fail the request.
Functions ¶
This section is empty.
Types ¶
type Answer ¶
type Answer struct {
Running bool
CheckedAt int64
// SessionID is the conversation's id as the agent recorded it (normally a string), nil when not known.
SessionID any
Resumable bool
Provider *Provider
}
Answer is what the page is told about a tab.