Skip to content

graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs

Python

feat(prompt): trust the Project layout — no ls/find when the segment is present

Rach Pradhanc469300329e2
diff --git a/src/prompt_snapshot_tests.zig b/src/prompt_snapshot_tests.zig
index c78b1c49..b38b54bf 100644
--- a/src/prompt_snapshot_tests.zig
+++ b/src/prompt_snapshot_tests.zig
@@ -116,6 +116,8 @@ const golden_full_prompt =
\\tokens, and diff noise the user did not order. And never repeat a tool
\\call with identical parameters once you have a usable result — the answer
\\will not change; reread only on stale source, ambiguity, or failure.
+ \\When a Project layout segment is present, it is the tree — read the
+ \\files you need straight from it instead of ls/find exploration turns.
\\
\\Before a large chunk of work, give a one- or two-sentence heads-up on what
\\you are about to do; on long tasks, drop a brief note as each phase lands.
diff --git a/src/prompt_text.zig b/src/prompt_text.zig
index c9b36452..77445478 100644
--- a/src/prompt_text.zig
+++ b/src/prompt_text.zig
@@ -160,6 +160,8 @@ pub const work_note =
\\tokens, and diff noise the user did not order. And never repeat a tool
\\call with identical parameters once you have a usable result — the answer
\\will not change; reread only on stale source, ambiguity, or failure.
+ \\When a Project layout segment is present, it is the tree — read the
+ \\files you need straight from it instead of ls/find exploration turns.
;
/// Always present: narration is a habit, not a capability.