Skip to content

fix(coding-agent): agent unable to find docs/examples location due to system prompt #4752

@brianpunzalan

Description

@brianpunzalan

What do you want to change?

System prompt about Pi docs and examples folder path

Why?

Agent is confused when asked to read Pi documentation. It seems that the path mentioned on the system prompt is relative to current working directory where Pi is executed, causing the agent to look at the folder that does not exist.

Image

How? (optional)

Under system prompt, set all items under "when asked about" section to absolute paths by reusing docsPath variable. Using docsPath ensures that the agent would look at the docs/example folder where pi is installed.

Example:
docs/<file>.md --> ${docsPath}/<file>.md

Metadata

Metadata

Assignees

Labels

inprogressIssue is being worked on

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions