Documentation
¶
Overview ¶
Package discover suggests folders the user probably wants as projects: folders where coding agents have run before, and the folders inside the usual code directories.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CodeDirs = []string{"projects", "Projects", "code", "Code", "src", "dev", "work", "repos", "git"}
CodeDirs are common parents of project folders, relative to home.
View Source
var HistoryDirs = []HistoryDir{
{Agent: "Claude Code", Dir: ".claude/projects"},
{Agent: "Codex", Dir: ".codex/sessions"},
}
HistoryDirs are the known agent history locations.
Functions ¶
This section is empty.
Types ¶
type Candidate ¶
type Candidate struct {
Name string
Path string
Reason string // why it was suggested, e.g. "recent agent sessions"
Seen time.Time
}
Candidate is a suggested project folder.
type HistoryDir ¶
HistoryDir is where an agent keeps session logs as JSONL files that record the working directory in a "cwd" field. Locations are data so no agent is special; add one when an agent stores history that way.
Click to show internal directories.
Click to hide internal directories.