prompts

package
v1.35.2 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package prompts contains domain-specific LLM system prompts for go-code tools.

Index

Constants

View Source
const SystemPromptCallTrace = `` /* 526-byte string literal not displayed */

SystemPromptCallTrace is the system prompt for call chain narrative generation.

View Source
const SystemPromptClassifyGraphQuery = `` /* 2752-byte string literal not displayed */

SystemPromptClassifyGraphQuery classifies a natural-language query into a graph template. It contains two %s placeholders: (1) graph schema text, (2) template list.

View Source
const SystemPromptCodeCompare = `` /* 1955-byte string literal not displayed */

SystemPromptCodeCompare is the system prompt for code comparison queries.

View Source
const SystemPromptDeadCode = `` /* 516-byte string literal not displayed */

SystemPromptDeadCode is the system prompt for dead code analysis narrative generation.

View Source
const SystemPromptDeep = `` /* 337-byte string literal not displayed */

SystemPromptDeep is the system prompt for deep repository analysis.

View Source
const SystemPromptDepGraph = `` /* 337-byte string literal not displayed */

SystemPromptDepGraph is the system prompt for dependency graph analysis.

View Source
const SystemPromptGenerateCypher = `` /* 2252-byte string literal not displayed */

SystemPromptGenerateCypher generates a read-only Cypher query from natural language. It contains a single %s placeholder that must be filled with the graph schema text (see codegraph.GraphSchemaText).

View Source
const SystemPromptGraphNarrative = `` /* 311-byte string literal not displayed */

SystemPromptGraphNarrative formats raw graph query results into a narrative.

View Source
const SystemPromptImpact = `` /* 497-byte string literal not displayed */

SystemPromptImpact is the system prompt for blast radius narrative generation.

View Source
const SystemPromptIssuesAnalysis = `You are analyzing GitHub issues/PRs. Summarize the key findings for the query. Focus on what's most relevant. Be concise.`

SystemPromptIssuesAnalysis is the system prompt for GitHub issues/PRs analysis.

View Source
const SystemPromptOverview = `` /* 372-byte string literal not displayed */

SystemPromptOverview is the system prompt for high-level repository analysis.

View Source
const SystemPromptQuickSearch = `` /* 137-byte string literal not displayed */

SystemPromptQuickSearch is the system prompt for GitHub code search result summarization.

View Source
const SystemPromptRepoAnalysis = `` /* 514-byte string literal not displayed */

SystemPromptRepoAnalysis is the system prompt for repository analysis queries.

Variables

This section is empty.

Functions

func SystemPromptForDepth

func SystemPromptForDepth(depth string) string

SystemPromptForDepth returns the appropriate system prompt for the given analysis depth. Depth values match analyze.Depth* constants but are repeated here to avoid a circular import between prompts → analyze.

func SystemPromptForIntent

func SystemPromptForIntent(intent Intent, depth string) string

SystemPromptForIntent returns a system prompt tailored to the classified intent, with depth overrides taking priority.

Types

type Intent

type Intent string

Intent represents the classified intent of a user query.

const (
	// IntentArchitecture targets high-level design and structure questions.
	IntentArchitecture Intent = "architecture"

	// IntentDebug targets bug-finding, error tracing, and fix-oriented questions.
	IntentDebug Intent = "debug"

	// IntentNavigate targets "where is X defined?" location questions.
	IntentNavigate Intent = "navigate"

	// IntentDependency targets import/dependency graph questions.
	IntentDependency Intent = "dependency"

	// IntentGeneral is the fallback for unclassified queries.
	IntentGeneral Intent = "general"
)

func ClassifyIntent

func ClassifyIntent(query string) Intent

ClassifyIntent determines the intent of a user query by scoring keyword hits. Empty queries return IntentGeneral.

Jump to

Keyboard shortcuts

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