target-resolution

target-resolution is a cursor rule for Claude Code, Cursor from yonatangross/orchestkit. It costs 19 tokens per session (667 once invoked), scanned C, original, MIT.

A rule for resolving vague targets such as “this,” “them,” or “the last one” from the nearest concrete subject in the conversation.

In plain words
What is it for?
It is for skills that act on files, diffs, pull requests, components, or issues mentioned earlier in the conversation.
Why use it?
It prevents an agent from refusing a task just because the user referred to something indirectly.

Cursor rule for Claude CodeCursor

Written for Claude Code and Cursor: $ARGUMENTS substitution, but also a Cursor plugin manifest. Also seen: mentions subagents.

Good fit It is for skills that act on files, diffs, pull requests, components, or issues mentioned earlier in the conversation.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/yonatangross/orchestkit/target-resolution
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/yonatangross/orchestkit

Made for: Claude Code, Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for target-resolution

README.md
[![agentmods](https://agentmods.dev/badge/rules/yonatangross/orchestkit/target-resolution/github.svg)](https://agentmods.dev/rules/yonatangross/orchestkit/target-resolution)
Your own site
<a href="https://agentmods.dev/rules/yonatangross/orchestkit/target-resolution"><img src="https://agentmods.dev/badge/rules/yonatangross/orchestkit/target-resolution/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for target-resolution

Your own site · 80×15
<a href="https://agentmods.dev/rules/yonatangross/orchestkit/target-resolution"><img src="https://agentmods.dev/badge/rules/yonatangross/orchestkit/target-resolution.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 667 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00019 $0.00667
Opus 5.5 $0.00008 $0.00267
Sonnet 5.5 $0.00004 $0.00133
Haiku 4.5 $0.00002 $0.00067

Measured 16d ago against content hash b78a0cf31b22, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

target-resolution scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 16d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Tells the agent never to refusehighAnti-refusal

Suppressing the ability to decline removes a core safety control; a later harmful request then succeeds.

## Resolve a pronoun target, never refuse it
plugins/ork/.cursor-plugin/rules/target-resolution.mdc · 54 lines

How it starts

The opening of the file, as written. The whole thing — 54 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Resolve a pronoun target, never refuse it

Applies to every skill that takes a target in $ARGUMENTS: assess, verify, implement, fix-issue, cover, review-pr.

Detect. Strip the flags (--model=, --effort=, --tier= and the like). The target needs resolving when what is left is a bare pronoun or deictic: them, this, that, these, those, it, they, same, the above, the last one, that one, what we just did. An empty target needs resolving only when the skill has no default for it (review-pr with no argument reviews the current branch's PR; that default stands).

Refusing is the bug, not the safe option. Measured 2026-08-28: /ork:assess them was sent one message after "bug in orchestkit hooks", mid-investigation of pretool/bash/dangerous-command-blocker, and the skill replied that "them" had "no antecedent anywhere in this conversation". It had two (#3780).

Inline skills (the body runs in the main thread)

  1. Read back for the NEAREST concrete subject: a file just discussed, a diff or PR just opened, a component just investigated, an issue just named.
  2. Announce the resolution in one line, then proceed with it as the target: "Reading 'them' as the 3 pretool guards we just probed; say otherwise and I'll switch." A wrong guess then costs one correction instead of a turn.
  3. Ask only when the conversation is genuinely empty (a fresh session that opens with a bare pronoun). That is the one case with nothing to read back to.

Forked skills (context: fork, the body runs in a subagent)

A fork cannot see the conversation, so it cannot read back. Check the target FIRST, before any probe, Agent or Workflow call. If it needs resolving, return exactly this one line and nothing else, then stop:

TARGET_UNRESOLVED: <word>

<word> is the pronoun as typed (this, them), or (empty).

The caller (main thread) on a TARGET_UNRESOLVED result

Read the full file on GitHub · 54 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 16d ago First seen · 54 lines · 19 tokens per session scan C b78a0cf31b22

Subscribe to this mod's changes

target-resolution is a cursor rule published in the GitHub repository yonatangross/orchestkit (298 stars, last pushed today), licensed MIT. It adds 19 tokens to every session and 667 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it C with 1 finding (tells the agent never to refuse). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-12.