{"id":17697672,"url":"https://github.com/krshrimali/context-pilot-rs","last_synced_at":"2025-06-25T10:34:31.823Z","repository":{"id":174122089,"uuid":"651803018","full_name":"krshrimali/context-pilot-rs","owner":"krshrimali","description":"Get relevant files/authors for your code - binary written in rust. Plugins available in NeoVim and VSCode (separate repositories)","archived":false,"fork":false,"pushed_at":"2025-04-05T20:49:01.000Z","size":172,"stargazers_count":16,"open_issues_count":7,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-05T21:27:34.497Z","etag":null,"topics":["developer-experience","developer-tools","git","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/krshrimali.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-10T06:25:09.000Z","updated_at":"2025-04-05T20:49:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"905f12ae-c286-476c-96f5-7061b569ce02","html_url":"https://github.com/krshrimali/context-pilot-rs","commit_stats":null,"previous_names":["krshrimali/context-pilot-rs"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krshrimali%2Fcontext-pilot-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krshrimali%2Fcontext-pilot-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krshrimali%2Fcontext-pilot-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krshrimali%2Fcontext-pilot-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/krshrimali","download_url":"https://codeload.github.com/krshrimali/context-pilot-rs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249699807,"owners_count":21312472,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["developer-experience","developer-tools","git","rust"],"created_at":"2024-10-24T14:48:12.155Z","updated_at":"2025-06-25T10:34:31.817Z","avatar_url":"https://github.com/krshrimali.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Context Pilot\n\nJust the tool that answers following questions for you:\n\n1. \"What all commits ever touched this piece of code?\"\n2. \"What are the files related to this piece of code?\"\n3. \"Who all touched this piece of code?\"\n\nEventually answering following questions for you: (via your own brain or LLMs)\n\n1. \"What could have caused the bug?\"\n2. \"Why was this changed in the last month? What's the reason?\"\n3. \"Where can I find the tests written for this code?\"\n4. \"Where should I make the change while working on this code?\"\n\nGist: Whether you want to find:\n- **Who** wrote a particular line (author search 🧑‍💻),\n- **Which** files are most related to a given section (context search 📄),\n- Or **index** your whole workspace efficiently with Git history 🔥,\n\nContext Pilot gives you **fast**, **powerful**, and **local-first** code intelligence.\n\n## Installation\n\nContext Pilot is available via [homebrew](https://github.com/krshrimali/homebrew-context-pilot):\n\n```shell\nbrew install krshrimali/context-pilot/context-pilot\n```\n\n\nAnd via AUR: https://aur.archlinux.org/packages/contextpilot and git package\nhere: https://aur.archlinux.org/packages/contextpilot-git.\n\nIf you're not using homebrew or AUR, please build this project from source for now (we are working on adding this to other package managers):\n\n```bash\ngit clone https://github.com/krshrimali/context-pilot-rs.git\ncd context-pilot-rs\ncargo build --release\n```\n\nThis will generate the binary at `./target/release/contextpilot`.\n\nMove it to a path that's in your `$PATH` to run it globally:\n\n```bash\ncp ./target/release/contextpilot /usr/local/bin/contextpilot\n```\n\nOnce done, you should be able to do: `contextpilot --help`\n\n---\n\n## ✨ Features\n\n- 📈 **History Analysis:** Understand *who* contributed to every line.\n- 🔍 **Context Extraction:** Find *related files* automatically based on commit histories.\n- 🗂️ **Smart Indexing:** Index your project into a **fast sharded database** for quick queries.\n- 🚀 **Rust-Powered:** Extremely **fast** and **lightweight** — no servers needed.\n- 🧠 **Multi-level tracing:** Traverses multiple previous commits to capture richer history.\n- ⚡ **Editor Integrations:** Works with **Neovim** and **VSCode** extensions.\n- 🔒 **Local-first:** Never sends your code outside your machine.\n\n## 🚀 Usage\n\n### Index your workspace\n\n```bash\ncontextpilot /path/to/workspace -t index\n```\n\nThis will **index** your project and store smartly sharded JSON database files at:\n\n```bash\n~/.context_pilot_db/\u003cworkspace\u003e/\n```\n\n---\n\n### Selectively Index your Workspace\n\n```\ncontextpilot /path/to/workspace -t index \"subdir1,subdir2\"\n```\n\nPass relative paths to the argument as above, and it will only index those\nfolders for you.\n\n---\n\n### Query for Top Context Files\n\n```bash\ncontextpilot /path/to/workspace -t query path/to/file.rs -s \u003cstart-line\u003e -e \u003cend-line\u003e\n```\n\nFetch **top related files** for the selected line range.\n\n---\n\n### Get relevant commits\n\n```bash\ncontextpilot /path/to/workspace -t desc path/to/file.rs -s \u003cstart-line\u003e -e \u003cend-line\u003e\n```\n\nGives you the relevant commits to the selected piece of code.\n\n---\n\n## 🖥️ Editor Integrations\n\n### Neovim\n\n- Plugin available: https://github.com/krshrimali/context-pilot.nvim (details available on the link).\n\n### VSCode\n\n- Just search available on VSCode Marketplace with name `contextpilot` under the name of Kushashwa Ravi Shrimali as the publisher :)\n- Extension available here: https://github.com/krshrimali/context-pilot-vscode.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrshrimali%2Fcontext-pilot-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrshrimali%2Fcontext-pilot-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrshrimali%2Fcontext-pilot-rs/lists"}