@@ -101,8 +101,8 @@ Interpretation rules:
101101
102102## ` feedback_lean `
103103
104- ` feedback_lean ` is intended to be placed directly into an agent's next prompt.
105- It is not a patch that should normally be saved back to the Lean source.
104+ ` feedback_lean ` is intended as model-readable context for the next attempt. It
105+ is not a patch that should normally be saved back to the Lean source.
106106
107107LeanProbe inserts Lean block comments before relevant lines:
108108
@@ -124,8 +124,8 @@ Feedback blocks can contain:
124124- indentation that matches the surrounding Lean line.
125125
126126The annotation is intentionally compact. Long diagnostics and large proof
127- states are truncated so they remain useful in agent context. If the agent needs
128- the raw structured data, read ` messages ` and ` tactics ` directly.
127+ states are truncated before insertion. For the raw structured data, read
128+ ` messages ` and ` tactics ` directly.
129129
130130## ` lean_probe_prepare `
131131
@@ -240,7 +240,7 @@ Typical Lean failure:
240240```
241241
242242On failure, ` lean_probe_check ` may rerun internally with tactic collection so
243- the response can include useful ` tactics ` and ` feedback_lean ` .
243+ the response can include ` tactics ` and ` feedback_lean ` .
244244
245245## ` lean_probe_feedback `
246246
@@ -256,7 +256,7 @@ Use this when:
256256
257257- ` lean_probe_check ` returns ` ok=false ` and the diagnostic summary is not enough;
258258- the next candidate should be guided by local proof states;
259- - the agent needs annotated Lean text for prompt context.
259+ - the next attempt needs annotated Lean context.
260260
261261Typical result fields:
262262
@@ -282,7 +282,7 @@ Typical result fields:
282282
283283` feedback ` is usually more expensive than ` check ` because it asks LeanInteract
284284for tactic metadata. Prefer ` check ` for ordinary candidate loops and call
285- ` feedback ` when the agent needs richer context.
285+ ` feedback ` when richer context is needed .
286286
287287## ` lean_probe_state `
288288
@@ -415,7 +415,7 @@ Typical result:
415415}
416416```
417417
418- Use this when the agent no longer needs to apply tactics to a proof state.
418+ Use this when tactic exploration for that proof state is finished .
419419
420420## Recommended Workflows
421421
@@ -425,9 +425,9 @@ Use this when the agent no longer needs to apply tactics to a proof state.
4254252 . For each candidate, call ` lean_probe_check ` with a complete replacement
426426 declaration.
4274273 . If ` ok=false ` , inspect ` output ` and ` messages ` .
428- 4 . If the next edit is not obvious, call ` lean_probe_feedback ` and pass
429- ` feedback_lean ` plus structured ` messages ` / ` tactics ` into the next model
430- prompt .
428+ 4 . If the next edit is not clear from the diagnostics, call
429+ ` lean_probe_feedback ` and pass ` feedback_lean ` plus structured
430+ ` messages ` / ` tactics ` into the next attempt .
4314315 . After accepting and writing a candidate to disk, run a whole-file or
432432 whole-project command when that larger scope matters.
433433
@@ -455,9 +455,9 @@ tries to restart it and report the error if restart fails.
455455 with ` lean_probe_check ` .
4564565 . Call ` lean_probe_close_state ` when the tactic session is no longer needed.
457457
458- ## Agent Prompt Snippet
458+ ## Operational Rules Snippet
459459
460- When using LeanProbe, give the agent these operational rules:
460+ For tool- using systems, these are the core operating rules:
461461
462462``` text
463463Use lean_probe_prepare before repeated checks in a Lean file. Use
0 commit comments