Skip to content

Resolve method aliases from curated keywords - #31

Merged
NielsRogge merged 2 commits into
mainfrom
claude/method-keyword-aliases
Oct 16, 2026
Merged

NielsRogge merged 2 commits into
mainfrom
claude/method-keyword-aliases

Conversation

@NielsRogge

Copy link
Copy Markdown
Collaborator

pwc method --name and the MCP pwc_get_method tool matched only name, full_name, slug and id, so curated aliases such as GDBT (keyword of gbdt) or pi-0 returned "Method not found". The methods q search also ignores keywords, so the candidate list was empty for those.

  • After the existing exact and normalized lookups miss, fetch the methods list once (page_size=500, whole catalog is ~315 rows; the payload already includes keywords) and match the normalized reference against each method's comma-separated keywords.
  • Resolve only when exactly one method matches; otherwise keep the existing not-found error with suggestions.
  • MCP bumped to 0.2.9; get_method docstring mentions aliases.

Verified against production with this branch: pwc method --name GDBT → Gradient Boosted Decision Trees (gbdt), pwc method --name pi-0 → π0. 101 CLI tests and 71 MCP tests pass.

Chat-related: do not merge or deploy without explicit user authorization.

🤖 Generated with Claude Code

NielsRogge and others added 2 commits October 16, 2026 08:21
pwc method --name and pwc_get_method matched only name, full_name, slug and id,
so curated aliases such as GDBT or pi-0 returned not found. After the name
lookup misses, match the normalized reference against each method's keywords
in the full catalog and resolve only a unique hit.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@NielsRogge
NielsRogge merged commit b48a8fb into main Oct 16, 2026
2 checks passed
NielsRogge added a commit that referenced this pull request Oct 16, 2026
PR #30 and PR #31 both set the version to 0.2.9, so the merged keyword
fallback would report the same version as the release already in production.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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