Documentation
¶
Overview ¶
Package agentinit builds the bootstrap prompt for the guided /init flow that generates a project AGENTS.md. It seeds the agent with structured repo facts from internal/repoinfo so the agent starts from what is already known and only investigates the gaps, then writes a concise high-signal AGENTS.md.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildPrompt ¶
BuildPrompt returns the bootstrap prompt for `zero init` / `/init`. It runs repoinfo.Collect(cwd) and embeds the result as a fact block; collection failures are non-fatal (the agent investigates from scratch). now is injectable for tests; zero falls back to time.Now.
func FormatFacts ¶
FormatFacts renders a repoinfo.Info as a compact, model-readable fact block. Exported so the headless command can show the same summary.
Types ¶
This section is empty.