Skip to content

fix(agents): drop --limit from ix locate in the refactor planner prompt - #29

Merged
KageBinary merged 3 commits into
mainfrom
fix/agent-locate-no-limit
Oct 4, 2026
Merged

KageBinary merged 3 commits into
mainfrom
fix/agent-locate-no-limit

Conversation

@KageBinary

Copy link
Copy Markdown
Collaborator

The ix-safe-refactor-planner agent resolves a description with:

ix locate "$INPUT" --limit 5 --format llm

ix locate has no --limit (its flags are --kind, --path, --pick, --format, --pretty, --quiet and --fields), so this step failed with unknown option '--limit' and the agent carried on without a location. This PR drops the flag. The neighbouring ix text … --limit 10 is fine, since text accepts it.

Found by Ix's new plugin contract check (ix-infrastructure/Ix#777), which reports this as the only invalid ix invocation across the six plugins.

No version bump in this PR.

🤖 Generated with Claude Code

The ix-safe-refactor-planner agent resolves a description with
`ix locate "$INPUT" --limit 5 --format llm`. `ix locate` has no --limit
(its flags are --kind, --path, --pick, --format, --pretty, --quiet,
--fields), so that step failed with "unknown option '--limit'" and the agent
fell back without a location. Found by Ix's new plugin contract check
(ix-infrastructure/Ix#777).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EqMeW5huGYgRUWS2TtuvF8
KageBinary and others added 2 commits October 4, 2026 13:05
Scans agents/, commands/ and skills/ for argv the real ix rejects. It
fails on main's ix-safe-refactor-planner.json.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@KageBinary KageBinary left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed. The fix is right: ix locate has no --limit on Ix main (locate.ts), and the other flags in that prompt are real.

What I changed: merged main in (f838b7e) and added tests/prompt-argv.test.ts (c1b92b2), which scans agents/, commands/ and skills/ for ix locate … --limit. It fails on main's planner prompt.

Checked together with #30 on main: every CI step passes (bun test 332, real-ix 6, fixtures unchanged). Merging.

@KageBinary
KageBinary marked this pull request as ready for review October 4, 2026 20:23
@KageBinary
KageBinary merged commit 11ba65f into main Oct 4, 2026
6 checks 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.

1 participant