systeminit

package
v1.1.60 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package systeminit builds the prompt used by the /systeminit command to generate (or refresh) a project-level AGENTS.md guide for AI agents.

The same prompt text is shared by the TUI, CLI, and ACP entry points so the behavior stays consistent across surfaces. In interactive surfaces (TUI/ACP) the agent is encouraged to use the `question` tool to clarify project conventions with the user before writing the file, yielding a higher quality AGENTS.md. In non-interactive surfaces (CLI print mode) the agent writes the file directly from what it can infer from the codebase.

Index

Constants

View Source
const Command = "/systeminit"

Command is the slash command that triggers system initialization.

Variables

This section is empty.

Functions

func Prompt

func Prompt(interactive bool, extra string) string

Prompt returns the system-init instruction prompt. When interactive is true the agent is told to use the question tool to clarify with the user first. extra carries optional user-provided guidance (e.g. "ask me in Chinese, write AGENTS.md in English") appended as additional instructions.

Types

This section is empty.

Jump to

Keyboard shortcuts

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