prompt

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: May 3, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Instructions string
View Source
var Planning string

Functions

func BuildInstructions

func BuildInstructions(base string, data SectionData) string

BuildInstructions composes a full system prompt from a base prompt and dynamic section data (environment, memory, skills, etc.).

func ComposeSections

func ComposeSections(sections ...Section) string

ComposeSections joins sections into a single system prompt string. Empty sections are skipped. Titled sections get a ## header.

Types

type Section

type Section struct {
	Title   string
	Content string
}

Section is a titled block of the system prompt.

func RenderSections

func RenderSections(data SectionData) []Section

RenderSections renders all section templates with the given data, returning only non-empty sections.

type SectionData

type SectionData struct {
	PlanMode            bool
	Date                string
	OS                  string
	Arch                string
	WorkingDir          string
	MemoryDir           string
	MemoryContent       string
	Skills              string
	ProjectInstructions string
	BridgeInstructions  string
}

Jump to

Keyboard shortcuts

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