agentleFS
T0mSIlverT0mSIlver/skills/fastcontext/SKILL.md

fastcontext

Skill1 starsChanged 2 months agoMITView on GitHub

fastcontext is your default code-exploration subagent — it greps, globs, and reads a repository for you and returns file:line citations, keeping that exploration out of your own context. Invoke it via bash before answering, editing, reviewing, or debugging code you are not already certain about, and whenever the answer needs more than one file or tracing logic across modules. When in doubt, run fastcontext first.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 4 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run it before you answer/edit/review/debug code you're not already sure about:

    line 16
  2. Very specific:

    Prefer it over manual grep/glob/read chains whenever the answer spans more than one file.

    line 23
  3. Distinctive:

    stdout = answer, stderr = diagnostics: Read stdout; ignore stderr.

    line 57
  4. Distinctive:

    Treat cited ranges as candidate evidence, not ground truth.

    line 59
  5. Distinctive:

    Ask specific questions; run several queries for a multi-part investigation.

    line 64
  6. Distinctive:

    Cap concurrency at 2: Run at most 2 fastcontext sessions at once.

    line 65

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

fastcontext

!command -v fastcontext >/dev/null 2>&1 || echo '> ⚠️ **fastcontext CLI not found on PATH.** Install and configure it before using this skill: https://github.com/T0mSIlver/fastcontext#installation'

A read-only repository-exploration subagent. It searches and reads files in a separate process, then returns a compact <final_answer> block of path:line citations. Delegating to it keeps broad exploration out of your context window — you get the evidence, not the file dumps. It never edits; you act on what it finds.

When to use

Run it before you answer/edit/review/debug code you're not already sure about:

  • Understand or explain how something works
  • Locate where a symbol or behavior is defined or used ("where is X?", "what calls Z?")
  • Trace logic across files or layers (request → handler → service → DB)
  • Assess blast radius ("what breaks if I change X?")

Prefer it over manual grep/glob/read chains whenever the answer spans more than one file.

When NOT to use

  • You already read the exact file this session
  • A single obvious grep in one known file
  • A pure write/generate task needing no exploration

Usage

# Machine-readable: prints ONLY the <final_answer> citation block to stdout
fastcontext -q "<specific, detailed question>" --citation

# Large exploration (architecture, multi-module trace): give it more turns
fastcontext -q "<complex question>" --citation --max-turns 16

# Drop --citation to also get a prose explanation (more context, some noise)
fastcontext -q "<question>"

Output on stdout:

<final_answer>
src/app/router.py:42-58 (request validation)
src/app/service.py:10-33 (handler that calls it)
</final_answer>

Parse the path:line-range entries and read only those spans — that's the point.

Notes

  • stdout = answer, stderr = diagnostics. Read stdout; ignore stderr.
  • Tuning belongs in your fastcontext config, not in each call. The only flag worth reaching for per-run is --max-turns 16 on a large exploration.
  • Treat cited ranges as candidate evidence, not ground truth. Ranges the model never opened are dropped, but it can still cite a real file at the wrong lines — open each span and confirm it actually answers your question before relying on it.
  • Negative claims are unreliable. Positive citations are safe to open directly, but any "X does not exist / is not referenced" conclusion needs a direct grep before you act on it — fastcontext has reported a pattern absent from a file whose literal first entry was that pattern.
  • An empty <final_answer> block with exit 0 is a failed run, not a clean "nothing found". It happens when citation validation drops every citation (e.g. the model cited paths with a bogus prefix) or the model answered in prose only. Re-ask with a rephrased or narrower question, or drop --citation to see the prose; treat "nothing found" as unproven until a direct grep agrees.
  • The answer holds at most ~25 citations (a safety cap); ask a narrower question if you need more.
  • A nonzero exit code means the run failed (e.g. the endpoint was unreachable); the error is on stderr and stdout stays empty. Exit 0 with a non-empty <final_answer> block is a good run — retry or fall back to manual exploration on a nonzero exit or an empty block.
  • Ask specific questions; run several queries for a multi-part investigation.
  • Cap concurrency at 2. Run at most 2 fastcontext sessions at once; queue the rest.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.