DEFAULT_PROMPT (crates/hx-core/src/context.rs) covers how to explore and the approval rules only. Nothing says to run the build/test/lint after editing or to re-read a changed region, and it does not mention the lens (LSP/lint/test). Code reading only; no transcript evidence yet.
Change
Add to the working rules, roughly:
"After editing, run the narrowest relevant check (build/test/lint) and fix failures before saying done. Say what you ran. If none exists, say so."
"Prefer edit with a unique old_string over rewriting a file with write."
Update the default_prompt_has_working_rules test.
Effect
Fewer false "done" results. About +40 cached prompt tokens. Possible extra tool calls on trivial tasks.
Risk
Agent runs slow suites for tiny edits; the wording "narrowest relevant" is meant to limit that.
Verify
Needs the eval set (see the eval issue idea below): 8-10 small repo tasks with a failing test, compare pass rate and total tokens with and without the lines. Without that set this change cannot be shown to help.
Eval note: tests/*.sh use a fake API server and test plumbing only. There is no task-success suite and no token regression gate.
## Problem
`DEFAULT_PROMPT` (`crates/hx-core/src/context.rs`) covers how to explore and the approval rules only. Nothing says to run the build/test/lint after editing or to re-read a changed region, and it does not mention the lens (LSP/lint/test). Code reading only; no transcript evidence yet.
## Change
Add to the working rules, roughly:
- "After editing, run the narrowest relevant check (build/test/lint) and fix failures before saying done. Say what you ran. If none exists, say so."
- "Prefer `edit` with a unique `old_string` over rewriting a file with `write`."
Update the `default_prompt_has_working_rules` test.
## Effect
Fewer false "done" results. About +40 cached prompt tokens. Possible extra tool calls on trivial tasks.
## Risk
Agent runs slow suites for tiny edits; the wording "narrowest relevant" is meant to limit that.
## Verify
Needs the eval set (see the eval issue idea below): 8-10 small repo tasks with a failing test, compare pass rate and total tokens with and without the lines. Without that set this change cannot be shown to help.
Eval note: `tests/*.sh` use a fake API server and test plumbing only. There is no task-success suite and no token regression gate.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Problem
DEFAULT_PROMPT(crates/hx-core/src/context.rs) covers how to explore and the approval rules only. Nothing says to run the build/test/lint after editing or to re-read a changed region, and it does not mention the lens (LSP/lint/test). Code reading only; no transcript evidence yet.Change
Add to the working rules, roughly:
editwith a uniqueold_stringover rewriting a file withwrite."Update the
default_prompt_has_working_rulestest.Effect
Fewer false "done" results. About +40 cached prompt tokens. Possible extra tool calls on trivial tasks.
Risk
Agent runs slow suites for tiny edits; the wording "narrowest relevant" is meant to limit that.
Verify
Needs the eval set (see the eval issue idea below): 8-10 small repo tasks with a failing test, compare pass rate and total tokens with and without the lines. Without that set this change cannot be shown to help.
Eval note:
tests/*.shuse a fake API server and test plumbing only. There is no task-success suite and no token regression gate.