-
-
Notifications
You must be signed in to change notification settings - Fork 80.3k
System prompt should instruct agent to read docs before answering self-knowledge questions #90713
Copy link
Copy link
Closed
Labels
P3Low-priority cleanup, docs, polish, ergonomics, or speculative work.Low-priority cleanup, docs, polish, ergonomics, or speculative work.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.This issue has meaningful maintainer-visible impact outside the owned taxonomy.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.
Description
Metadata
Metadata
Assignees
Labels
P3Low-priority cleanup, docs, polish, ergonomics, or speculative work.Low-priority cleanup, docs, polish, ergonomics, or speculative work.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.This issue has meaningful maintainer-visible impact outside the owned taxonomy.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.
Type
Fields
No fields configured for issues without a type.
Summary
The system prompt mentions the local docs path but does not instruct the agent to consult it before answering questions about its own behavior. This leads to confabulated answers when the agent infers mechanisms from sparse context (e.g., AGENTS.md) instead of reading the authoritative documentation.
Problem
The current system prompt contains only:
While this tells the agent that docs exist, it does not establish a priority rule: when should the agent read docs vs. infer from context? In practice, the agent often answers questions about its own capabilities (memory, daily notes, dreaming, compaction, session management, etc.) from memory of sparse workspace files or training data, producing incomplete or incorrect explanations.
Real example
A user asked "how do daily notes work?" The agent answered based on two lines in AGENTS.md, describing daily notes as a "suggestion" without a forced mechanism. The actual docs (
concepts/memory.md,concepts/agent-workspace.md,concepts/dreaming.md) describe a much richer system with automatic loading, a dreaming consolidation pipeline, scoring thresholds, and scheduled promotion. The agent only discovered this after the user pushed back and the agent finally rangrepon the docs directory.Proposal
Add a clear instruction in the system prompt that establishes docs as authoritative for self-knowledge questions. For example:
This would:
Alternatives considered
Context
Discussed in a user session where the agent gave incorrect information about the daily note mechanism, then discovered the full memory system docs only after user follow-up. The user suggested this improvement.