# Find Files

> Rank the files in a repo by relevance to a plain-language question, so you open the right two or three first. Works with no API key.

Find Files is a free AI agent skill on Agensi by Ruchit Das, in Code Quality & Review. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Ruchit Das](https://www.agensi.io/creators/ruchit-das)
- Category: [Code Quality & Review](https://www.agensi.io/skills/code-quality-review)
- Uses: 2
- Version: 1.0
- Last updated: 2026-10-09
- Security: scan passed (2026-10-09); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/find-files
- Tags: code-review, productivity, python, code-search, navigation, developer-tools

## About this skill

Hey! This one helps you find your way around a codebase you don't know yet.

Ask a question in plain words, like "how is login token refresh handled?", and it gives you a short ranked list of the files most likely to answer it, so you open the top two or three instead of searching blind.

### How it works

1. A keyword walk of the repo collects up to 100 candidate files. It skips `.git`, `node_modules`, virtual environments, build folders, files over 300 KB, and files with secret-looking names like `.env` or `*.pem`.
2. **Optional model scoring.** A small decision model (OpenJev) scores candidates from short excerpts, keeps the top 10, then re-judges those from longer excerpts. The final order blends both passes.
3. **No model? No problem.** With no key you get the keyword order, with a note on stderr. It needs no key and no network.

### What you get back

```
  100  auth/token.py
   82  tests/test_token.py
   59  auth/session.py
   29  api/routes.py
   24  README.md
```

One line per file, `percent  path`, best first.

### Using the model, and what leaves your machine

Model mode needs a free Codiv OpenJev API key as `OPENJEV_API_KEY`, or a small local model set up with `jev-tools-setup`. In model mode, short excerpts of the candidate files (their opening lines and the lines matching your keywords) are sent to `api.codiv.ai`, or to a loopback address for a local model. Secret-shaped strings are redacted first, and the key is only ever sent to those hosts. For code you would rather not share, just don't set a key. A full run over 100 candidates costs tens of thousands of input tokens.

### What you need

Python 3.10+. Standard library only, nothing to install.

### Honest limits

- It is a hint, not an oracle. On 8 labelled queries across 8 cloned repositories, plain keyword counting put the defining file in the top 3 for 4 of 8. The model ranking got 6 of 8 on one run and 4 of 8 on an identical rerun. So it was **not measurably better than keywords**, and repeat runs differ by up to 2 of 8. Open the top two or three files rather than trusting rank 1.
- READMEs and docs can outrank the code that implements the thing. Skip them when you want code.
- "No keyword candidates" means your words appear nowhere in the repo. Rephrase with identifiers likely to be in the code.
- It appends one small line per model call (timestamp, number of questions, milliseconds, tokens, or an error type) to `~/.jev-tools/log.jsonl`, or to the path in `JEV_LOG`. File contents and keys are never logged.

### Part of jev-tools

This skill is one of several from the free, MIT-licensed jev-tools project. The full plugin adds optional hooks that this listing does not include: github.com/Rcidshacker/jev-tools. This skill works fine without it.

## Requires

- Python

## Known limitations

Needs Python 3.10+. Searches text files up to 300 KB and skips .git, node_modules, virtual environments, build folders and secret-looking file names. Keyword-based, so it only considers files that contain at least one of your query words. Not measurably better than plain keyword counting in the author's 8-query test, and repeat runs of the model ranking can differ by up to 2 of 8. Not for exact-symbol lookups (use grep). Tested by the author on Windows only.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Find Files skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What does Find Files do?

You ask a question about a codebase in plain words, and it prints a short ranked list of the files most likely to answer it, as "percent  path", best first. It collects keyword candidates from the repo, and an optional model re-scores the best ones. It is a hint for where to look first, not an answer.

### Do I need an API key?

No. Without a key it ranks by keyword counts and tells you so on stderr ("Jev unavailable: keyword order only"). If you want model scoring as well, set a free Codiv OpenJev API key as OPENJEV_API_KEY, or set up a small local model with jev-tools-setup (see the repo). The model was not measurably better than keywords in the author's test, so the key is optional.

### What leaves my machine?

With no key, nothing. In model mode, short excerpts of up to 100 candidate files (the opening lines and the lines that match your keywords, up to 2,500 characters each) go to api.codiv.ai, or to a local server if you set one up. Files with secret-looking names such as .env or *.pem are never read, and secret-shaped strings are redacted before sending. That is a safety net, not a guarantee, so skip the key for code you would not want to share.

### How accurate is it?

Modestly. On 8 labelled queries across 8 cloned repositories, plain keyword counting put the file that defines the thing in the top 3 for 4 of 8. The model ranking got 6 of 8 on one run and 4 of 8 on an identical rerun. So treat the list as a hint, and open the top two or three files rather than trusting rank 1.

### Which AI agents does it work with?

It is a standard SKILL.md that runs a Python script, so any agent that follows the SKILL.md standard and can run Python should work. I built it for Claude Code, where the skill folder is available as ${CLAUDE_SKILL_DIR}, and I have not tested other agents. In another agent, point the command at wherever the skill folder was installed.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
