agentinit

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2026 License: MIT Imports: 5 Imported by: 0

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

func BuildPrompt(ctx context.Context, cwd string, now time.Time) string

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

func FormatFacts(info repoinfo.Info) string

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.

Jump to

Keyboard shortcuts

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