Skip to content

fix(prompts): clarify Jev reason() invocation in system prompts - #14

Merged
yaonyan merged 2 commits into
feat/one-agent-jev-modefrom
cursor/jev-prompt-clarity-7807
Oct 4, 2026
Merged

yaonyan merged 2 commits into
feat/one-agent-jev-modefrom
cursor/jev-prompt-clarity-7807

Conversation

@yaonyan

@yaonyan yaonyan commented Oct 4, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Live bounded-judgment runs showed models mis-calling reason() on the first try: Python used mode= kwargs (bridge is positional-only), TypeScript swapped the options object into the example slot, and Bash followed a JavaScript { mode: "jev" } line from the shared core while inventing unsupported flags.

This PR tightens prompt text and matching runner docs/tests only — no API or bash parser changes.

Changes

  • Python / TypeScript (core prompt when Jev backend is configured): One sentence with the real call reason(prompt, example, {"mode": "jev"}), explicit second/third argument order, and that mode= keyword arguments are invalid.
  • Bash: Jev guidance stays in the bash mode delta only (no JS options object in core). Shows reason --prompt "…" --structure '…' --mode jev with --structure required.
  • Docs: one-runner-python.md, one-runner-bash.md, and the brief README note aligned with runtime prompts.
  • Tests: prompts.test.ts locks the new strings and asserts bash prompts do not include the Python/TS object wording.
  • Wording: Describes the Jev path as fast bounded judgment in English (no Chinese in prompts, docs, or tests).

Verification

  • vitest run tests/prompts.test.ts — 42 passed

Stacked on feat/one-agent-jev-mode (parent PR #13) so the diff is prompt/doc/test only.

Open in Web Open in Cursor 

cursoragent and others added 2 commits October 4, 2026 11:28
Clarify Python/TypeScript third positional options and reject mode= kwargs.
Give bash-only CLI guidance with required --structure; drop JS object hint
from bash system prompts. Align runner docs and lock text in prompt tests.

Co-authored-by: yao <yaonyan@users.noreply.github.com>
Replace 快速有界判断 in Jev guidance strings across prompts, runner docs,
and tests. Call-shape instructions unchanged.

Co-authored-by: yao <yaonyan@users.noreply.github.com>
@yaonyan
yaonyan added this pull request to stack #15 October 4, 2026 13:19
@yaonyan
yaonyan marked this pull request as ready for review October 4, 2026 13:49
@yaonyan
yaonyan merged commit 2eafae0 into main Oct 4, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants