UNPKG

@mastra/core

Version:
38 lines • 1.46 kB
/** * Base system prompt — shared behavioral instructions for a coding agent. * This is the "brain" that makes the agent a good coding assistant. * * Product-specific strings (the agent's display name and the commit * `Co-Authored-By` name) are parameterized via `productName` / `coAuthorName`. */ export interface PromptContext { projectPath: string; projectName: string; gitBranch?: string; platform: string; commonBinaries?: { name: string; path: string | null; }[]; date: string; mode: string; modelId?: string; activePlan?: { title: string; plan: string; approvedAt: string; } | null; toolGuidance: string; /** Whether subagent guidance should be included. Defaults to true for compatibility. */ hasSubagents?: boolean; /** Display name used in the prompt header. Default: "Mastra Code". */ productName?: string; /** Name used in the commit `Co-Authored-By` line. Default: "mastra-platform[bot]". */ coAuthorName?: string; /** Email used in the commit `Co-Authored-By` line. Default: the mastra-platform bot noreply address. */ coAuthorEmail?: string; /** Whether approving a submit_plan plan starts it as a goal. False for hosts without goals (Factory). Default: true. */ planApprovalStartsGoal?: boolean; } export declare function buildBasePrompt(ctx: PromptContext): string; //# sourceMappingURL=prompt.d.ts.map