agentinit

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: MIT Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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