MoonshotAI / MoonshotAI/kimi-code

Feature: Support fuzzy file path matching for @ file mentions

Open
#3,310 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
7.5k
Forks
1.2k
Avg merge
11h 53m
Merged PRs (30d)
350

Description

你希望看到什么功能?

Currently, @ file mentions appear to rely mainly on path/prefix
completion, which makes it difficult to reference files in deeply
nested projects.

Claude Code supports fuzzy matching for @ file mentions.

For example, if the project contains:

/aa/bb/cc.go

The following queries should be able to find the file:

@cc.go
@bb/cc.go
@aabc

The matching should search against the full workspace-relative file path,
rather than only matching the path prefix from the current input.

This would make @ file mentions much more convenient in large projects.

补充信息

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the @ file mention completion and matching entry point in the TypeScript CLI. Check how matching currently uses the input path, then verify that workspace-relative paths support the examples @cc.go, @bb/cc.go, and @aabc without breaking existing completion behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.