grepai-languages
Skill20 starsChanged 34 days agoMITView on GitHub
Supported programming languages in GrepAI. Use this skill to understand which languages can be indexed and traced.
- Reads credentials
In this repository26 other files it gives its agents.
- grepai-troubleshootingSkill
- grepai-workspacesSkill
- grepai-config-referenceSkill
- grepai-ignore-patternsSkill
- grepai-initSkill
- grepai-embeddings-lmstudioSkill
- grepai-embeddings-ollamaSkill
- grepai-embeddings-openaiSkill
- grepai-installationSkill
- grepai-ollama-setupSkill
- grepai-quickstartSkill
- grepai-chunkingSkill
- grepai-watch-daemonSkill
- grepai-mcp-claudeSkill
- grepai-mcp-cursorSkill
- grepai-mcp-toolsSkill
- grepai-search-advancedSkill
- grepai-search-basicsSkill
- grepai-search-boostingSkill
- grepai-search-tipsSkill
- grepai-storage-gobSkill
- grepai-storage-postgresSkill
- grepai-storage-qdrantSkill
- grepai-trace-calleesSkill
- grepai-trace-callersSkill
- grepai-trace-graphSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 73
Only extensions listed in trace.enabled_languages get symbols extracted.
- Distinctive: line 206
No language-specific parsing required
- Very specific: line 213
Always uses regular expressions: the --mode flag of grepai trace is deprecated and has no effect (output always reports "mode": "fast")
- Very specific: line 239
Update old configs: Add newer extensions to trace.enabled_languages
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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.
Files
GrepAI Supported Languages
This skill covers the programming languages supported by GrepAI for indexing and call graph analysis.
When to Use This Skill
- Checking if your language is supported
- Configuring language-specific settings
- Understanding trace capabilities per language
- Troubleshooting language-related issues
Supported Languages Overview
GrepAI indexes files with a built-in list of extensions (source code, config and documentation). Other extensions can be added with chunking.custom_extensions. Binary files, minified files (such as *.min.js) and files larger than 1 MB are skipped.
Full Support (Index + Trace)
| Language | Extensions | Index | Trace |
| Go | .go | ✅ | ✅ |
| JavaScript | .js, .jsx | ✅ | ✅ |
| TypeScript | .ts, .tsx | ✅ | ✅ |
| Vue SFC | .vue | ✅ | ✅ |
| Python | .py | ✅ | ✅ |
| PHP | .php | ✅ | ✅ |
| Ruby | .rb | ✅ | ✅ |
| Lua | .lua | ✅ | ✅ |
| Java | .java | ✅ | ✅ |
| C | .c, .h | ✅ | ✅ |
| C++ | .cpp, .hpp, .cc, .cxx, .hxx | ✅ | ✅ |
| Rust | .rs | ✅ | ✅ |
| Zig | .zig | ✅ | ✅ |
| C# | .cs | ✅ | ✅ |
| F# | .fs (trace also .fsx, .fsi) | ✅ | ✅ |
| Pascal/Delphi | .pas, .dpr | ✅ | ✅ |
| GDScript | .gd | ✅ | ✅ |
Index Only (No Trace)
| Language | Extensions |
| Swift | .swift |
| Kotlin | .kt |
| Scala | .scala |
| Dart | .dart |
| Elixir | .ex, .exs |
| Erlang | .erl |
| Clojure | .clj |
| Haskell | .hs |
| OCaml | .ml |
| Elm | .elm |
| Nim | .nim |
| R | .r |
| Svelte | .svelte |
| Shell | .sh, .bash, .zsh |
| SQL | .sql |
| HTML / CSS | .html, .css, .scss, .less |
| Markdown / text | .md, .txt |
| Config | .yaml, .yml, .json, .toml, .xml, .ini, .cfg, .conf, .env |
| Infrastructure | .tf, .hcl, .proto |
Any other extension (.kts, .mdx, .htm, .prisma…) needs chunking.custom_extensions.
Language Configuration
Enabling/Disabling Languages for Trace
Only extensions listed in trace.enabled_languages get symbols extracted. The defaults:
# .grepai/config.yaml
trace:
enabled_languages:
- .go
- .js
- .ts
- .jsx
- .tsx
- .vue
- .py
- .php
- .lua
- .gd
- .rb
- .c
- .h
- .cpp
- .hpp
- .cc
- .cxx
- .hxx
- .rs
- .zig
- .cs
- .java
- .fs
- .fsx
- .fsi
- .pas
- .dprA config created by an older version may lack newer entries (.vue, .lua, .gd, .rb, .hxx, F#): add them by hand. An empty list falls back to the defaults.
Excluding Files
trace.mode and trace.exclude_patterns never had any effect and were removed in grepai 1.0.0. To keep files (tests, mocks, generated code) out of every index, including the symbol index, use the top-level ignore list or a .grepaiignore file (gitignore syntax):
ignore:
- "*_test.go"
- "*.spec.ts"
- "**/fixtures/**"To keep test files searchable but ranked lower, use search boosting penalties instead (see the grepai-search-boosting skill).
Language-Specific Tips
Go
Trace accuracy: Excellent. Go's explicit syntax makes tracing very reliable.
JavaScript/TypeScript
Trace accuracy: Good. Some dynamic patterns may be missed. *.d.ts files are type declarations; ignore them if they add noise.
Vue (Single-File Components)
.vue files are compiled with Node.js before indexing and tracing, and results are mapped back to the original lines:
framework_processing:
enabled: true
mode: auto # auto | require | off
node_path: node # Node.js command name or absolute path outside the project
frameworks:
vue:
enabled: truenode_pathaccepts only a command name resolved throughPATH(node,nodejs,node20,node.exe) or a local absolute path outside the project and its git repository. Any other value (relative path, path inside the project or its repository, missing path…) is ignored with a warning, and grepai usesnodefromPATH. A Node.js installed inside the project (e.g../node_modules/.bin/node) is no longer used.- Without Node.js or
@vue/compiler-sfc, grepai logs a warning and falls back to the<script>blocks. - Trust: the compilation loads
@vue/compiler-sfcfrom the project'snode_modules. Only run grepai on repositories you trust, or setframework_processing.frameworks.vue.enabled: false.
Python
Trace accuracy: Good. Dynamic imports and decorators may be missed. Comments and triple-quoted strings are handled, and Python keywords are not reported as calls.
Ruby
Trace accuracy: Good. Methods (def, def self., names ending in ?, ! or =), classes and modules are extracted. Method calls (receiver.method) are found with or without parentheses, but a bare call without parentheses (route 'GET', path) is not, because a regex cannot tell it apart from a variable.
C/C++
Trace accuracy: Good. Macros and templates may affect accuracy.
Rust
Trace accuracy: Excellent. Rust's explicit syntax aids accurate tracing.
PHP
Trace accuracy: Good. Magic methods may not be fully traced.
Java
Trace accuracy: Good. Reflection-based calls may be missed.
C#
Trace accuracy: Good. Delegates and events may be partially traced.
Multi-Language Projects
Trace only the languages you need, and keep tests out of the indexes if you don't want them:
trace:
enabled_languages:
# Backend (Go)
- .go
# Frontend (TypeScript)
- .ts
- .tsx
ignore:
- "*_test.go"
- "*.spec.ts"SQL and other index-only files are still searchable; they just have no call graph.
Index vs Trace Explained
Index (Semantic Search)
- Works on the built-in extensions plus
chunking.custom_extensions - Code is chunked and embedded
- Enables semantic search
- No language-specific parsing required
Trace (Call Graphs)
- Requires language-specific parsing
- Extracts function definitions and calls
- Builds caller/callee relationships
- Always uses regular expressions: the
--modeflag ofgrepai traceis deprecated and has no effect (output always reports"mode": "fast")
Adding Custom Extensions
Index extensions outside the built-in list with chunking.custom_extensions (leading dot required). They are indexed for search, not traced:
chunking:
custom_extensions:
- .tengo
- .prismaThe watcher uses the same list, so these files stay up to date.
File Type Detection
GrepAI uses file extensions for detection. It does NOT use:
- Shebangs (
#!/usr/bin/env python) - File content analysis
- .editorconfig
Best Practices
- Enable only needed languages: Faster trace building
- Ignore generated code: Cleaner search and trace results
- Update old configs: Add newer extensions to
trace.enabled_languages - Match your tech stack: Configure based on your actual languages
- Untrusted Vue repositories: Disable
framework_processing.frameworks.vue
Checking Language Support
# Check what's being indexed
grepai statusCommon Issues
❌ Problem: Files not being indexed
✅ Solution: Check the file isn't ignored (.gitignore, .grepaiignore, ignore) and that its extension is built in or in chunking.custom_extensions
❌ Problem: Trace missing for language
✅ Solution: Ensure the extension is in trace.enabled_languages (older configs lack newer languages)
❌ Problem: .vue files only partly traced
✅ Solution: Install Node.js and @vue/compiler-sfc in the project; check the node_path warning in the logs
❌ Problem: Wrong language detected ✅ Solution: GrepAI uses extensions only; rename files if needed
Output Format
Language support summary:
📚 GrepAI Language Support
Full Support (Index + Trace):
- Go, JavaScript, TypeScript, Vue, Python, PHP, Ruby, Lua, Java
- C/C++, Rust, Zig, C#, F#, Pascal/Delphi, GDScript
Index Only (No Trace):
- Swift, Kotlin, Scala, Dart, Elixir, Haskell, ...
- Shell scripts, SQL, HTML, CSS
- Config files (YAML, JSON, TOML)
- Documentation (Markdown)
Your config enables trace for:
- .go, .js, .ts, .pyDoes 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.

