func (a *Agent) Prompt() (string, error) {
instructions, err := a.instructions()
if err != nil {
- return "", err
+ return "", fmt.Errorf("read prompt instructions: %w", err)
}
path, err := filepath.Abs(filepath.Join(a.dir, agentInstructionsFileName))