fast-context
Skill1 starsChanged 31 days agoMITView on GitHub
Instructions for upstream repository exploration using targeted read, glob and search operations with a compact file-and-line report. Confirm the runtime before invoking its commands and measure latency and host model usage. Not for choosing skills or profiling the always-on prefix.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- ugnius-s/skillstheir own version, first seen Jan 29, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- ugnius-s/skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository114 other files it gives its agents.
- agent-cacheSkill
- agent-compressionSkill
- agent-intelSkill
- agent-overlapSkill
- agent-stateSkill
- ambient-hudSkill
- app-testSkill
- audit-dagSkill
- auto-distillSkill
- auto-memorySkill
- auto-routerSkill
- benchSkill
- bootstrapSkill
- botte-learnSkill
- botte-nnSkill
- botte-proxySkill
- botte-wrapSkill
- cacheSkill
- call-chainsSkill
- capabilitiesSkill
- cardinalSkill
- checkupSkill
- clarificationSkill
- clusterSkill
- code-complexitySkill
- code-duplicationSkill
- code-fingerprintSkill
- code-rulesSkill
- code-stateSkill
- code-wrappersSkill
- comfyuiSkill
- completion-proofSkill
- conductorSkill
- context-budgetSkill
- context-compressorSkill
- context-profilerSkill
- context-slicerSkill
- context-windowsSkill
- control-loopSkill
- cost-estimatorSkill
- dag-optimizerSkill
- dashboardSkill
- decision-ladderSkill
- demoSkill
- diff-languageSkill
- directives-auditSkill
- docgenSkill
- docs-stewardSkill
- dynamic-workflowsSkill
- efficiencySkill
- eventsSkill
- fallow-likeSkill
- fallowSkill
- fixSkill
- fleetSkill
- hailo-visionSkill
- harness-deltaSkill
- harvestSkill
- hermes-bridgeSkill
- hermes-second-brainSkill
- The first 60 shown.
The file
Files
FastContext Agent — exploration repo
Package scope and prerequisites
This catalog ships instructions, not the executable runtime. Python modules, scripts, local services and optional tools named below must be installed separately from the upstream project. Check their availability before running commands; if they are missing, explain the prerequisite instead of claiming execution or results. The host agent may use model tokens while following these instructions.
Un sous-agent d'exploration déterministe qui sépare la collecte de contexte du raisonnement. Les recherches locales peuvent réduire le contexte à fournir, mais leurs coûts et leur latence doivent être mesurés avec le runtime installé.
L'approche upstream est inspirée par Microsoft FastContext et utilise des recherches locales. Ce catalogue ne fournit ni son modèle ni son runtime.
Usage
# Explorer un dossier
python -m skills.fast_context.cli explore /path/to/project "find DB connection patterns"
# Types de requête supportés
python -m skills.fast_context.cli explore . "find all imports in main.py"
python -m skills.fast_context.cli explore . "understand function: calibrate()"
python -m skills.fast_context.cli explore . "where are the tests?"
python -m skills.fast_context.cli explore . "queue usage patterns"
python -m skills.fast_context.cli explore . "audit security: eval, exec, shell"
# Mode verbeux
python -m skills.fast_context.cli explore . "find async patterns" --verbose
# Limiter les résultats
python -m skills.fast_context.cli explore . "import pathlib" --max-results 10
# Utiliser le cache
python -m skills.fast_context.cli explore . "class FastContext" --cacheAPI Python
from skills.fast_context import explore, cached_explore
from skills.fast_context import discover_query_type, QueryType
# Exploration simple
results = explore(".", "find DB connection patterns")
# → [{"file": "src/db.py:15", "snippet": "...", "score": 0.92, "type": "import"}, ...]
# Avec cache
results = cached_explore(".", "find async patterns", ttl=60)
# Découverte du type de requête
qt = discover_query_type("find all imports")
# → QueryType.IMPORTSTypes de requête
| Type | Mots-clés | Action |
IMPORTS | import, dependency, require | grep imports + suggest files |
FUNCTION | function, method, def, understand | grep def → contexte fichier |
TESTS | test, spec, unittest | glob test_* + grep |
PATTERN | pattern, usage, find, where | grep générique |
SECURITY | security, audit, eval, malicious | grep dangereux |
Architecture
FastContext Agent
┌─────────────────────────────────┐
│ agent.py │
│ - discover_query_type(query) │
│ - explore(query, path) → list │
├─────────────────────────────────┤
│ readers.py │
│ - fast_read(file, lines) │
│ - fast_glob(pattern, root) │
│ - fast_grep(pattern, root) │
├─────────────────────────────────┤
│ ranker.py │
│ - score(file, match, query) │
│ - rank_results(results) │
├─────────────────────────────────┤
│ compiler.py │
│ - compile_report(results) │
│ - format_compact(results) │
├─────────────────────────────────┤
│ store.py │
│ - LRUCache(ttl=30) │
└─────────────────────────────────┘Mesures
Comparer le contexte retourné, la qualité de recherche, la latence et la consommation réelle de l'agent. Aucun benchmark de gains n'est fourni dans ce catalogue.
Pitfalls
- Ne remplace pas LLM pour compréhension complexe — FastContext livre du contexte brut (fichier:ligne:snippet). Le LLM principal doit encore raisonner dessus. C'est le but : le LLM ne fait QUE raisonner.
- Cache TTL — Le cache LRU évite de rescanner 30 fois le même fichier dans
la même session. TTL par défaut: 30s. Passer
--no-cachepour forcer. - Gros repos — Pour les repos >1000 fichiers,
fast_greputilisesubprocess.run("grep -rl ...")plutôt qu'un glob Python (mesurer les performances sur le dépôt concerné). - Binaire/symlinks — Skip automatiquement les fichiers binaires, .git/, node_modules/, pycache/, .venv/.
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
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.

