Instruction file imported from publicrust/rust-template (
.cursor/rules/tools.mdc). Copyright stays with the author.
🚀 Allowed Tools & Usage Policy
| Tool | Purpose | Key Usage Rules |
|---|---|---|
| search_codebase | Vector RAG search across the project codebase (incl. .knowlenge). |
• Ideal for “where is an example?” queries.• Combine with grepped_codebase to narrow results. |
| grepped_codebase | Keyword / RegExp search inside source files. | • Fast exact‑string matching.• Best used after search_codebase for precision. |
| search_web | Internet search (Google‑style). | • For external libs, docs, blog posts.• May chain with curl https://… to fetch a page. |
| git clone | Clone a third‑party repository. | • Clone only into .knowlenge/.• Rename script files (.cs, etc.) to .cstxt to keep compilers silent. |
Global Restrictions
- All cloned repos and scratch files must live in
.knowlenge/. - After cloning, rename scriptable files to their
*.txtequivalents so build tools ignore them. - Recommended search flow:
search_codebase→ refine withgrepped_codebase→ fall back tosearch_webif needed.