{"id":47597963,"url":"https://github.com/syshin0116/clidex","last_synced_at":"2026-04-15T10:01:14.528Z","repository":{"id":344354124,"uuid":"1180782442","full_name":"syshin0116/clidex","owner":"syshin0116","description":"CLI tool discovery for AI agents. Search, compare, and install 440+ command-line tools with structured YAML/JSON output.","archived":false,"fork":false,"pushed_at":"2026-04-01T07:48:54.000Z","size":175,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-01T22:51:10.176Z","etag":null,"topics":["ai-agents","awesome-cli-apps","bm25","claude-code","cli","cli-tools","command-line","developer-tools","llm","mcp","package-manager","rust","search","tool-discovery","yaml"],"latest_commit_sha":null,"homepage":"https://github.com/syshin0116/clidex","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/syshin0116.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-13T12:04:41.000Z","updated_at":"2026-03-28T14:56:44.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/syshin0116/clidex","commit_stats":null,"previous_names":["syshin0116/clidex"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/syshin0116/clidex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syshin0116%2Fclidex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syshin0116%2Fclidex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syshin0116%2Fclidex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syshin0116%2Fclidex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/syshin0116","download_url":"https://codeload.github.com/syshin0116/clidex/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syshin0116%2Fclidex/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31835820,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T07:17:56.427Z","status":"ssl_error","status_checked_at":"2026-04-15T07:17:30.007Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["ai-agents","awesome-cli-apps","bm25","claude-code","cli","cli-tools","command-line","developer-tools","llm","mcp","package-manager","rust","search","tool-discovery","yaml"],"created_at":"2026-04-01T18:30:26.008Z","updated_at":"2026-04-15T10:01:14.521Z","avatar_url":"https://github.com/syshin0116.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"assets/logo.gif\" alt=\"Clidex\" width=\"500\"\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003cstrong\u003eCLI tool discovery for AI agents\u003c/strong\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  Search, compare, and install 5,000+ command-line tools with structured YAML/JSON output.\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/syshin0116/clidex/actions/workflows/ci.yml\"\u003e\u003cimg src=\"https://github.com/syshin0116/clidex/actions/workflows/ci.yml/badge.svg\" alt=\"CI\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/syshin0116/clidex/releases/latest\"\u003e\u003cimg src=\"https://img.shields.io/github/v/release/syshin0116/clidex\" alt=\"Release\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://crates.io/crates/clidex\"\u003e\u003cimg src=\"https://img.shields.io/crates/v/clidex\" alt=\"crates.io\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/syshin0116/clidex/blob/main/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-MIT-blue.svg\" alt=\"License\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n## Quickstart\n\n```bash\n# Install\ncargo install clidex            # or: curl -fsSL https://raw.githubusercontent.com/syshin0116/clidex/main/install.sh | sh\n\n# Search (auto-downloads index on first run)\nclidex \"csv to json\"            # Pretty output in terminal, YAML in pipes\nclidex \"csv to json\" --json     # JSON output\nclidex info jq                  # Detailed tool info\nclidex compare jq dasel yq      # Side-by-side comparison\n```\n\n---\n\n## Why Clidex?\n\nAI agents like Claude Code, Codex, and Gemini CLI can run terminal commands — but they don't know which tools exist beyond the basics. An agent uses `grep` when `ripgrep` is 10x faster, or `find` when `fd` is simpler.\n\n**Clidex bridges this gap.** It's a local CLI that returns structured metadata about CLI tools: what they do, how to install them, and where to find docs. No web search API calls, no HTML parsing, no cost — just a fast local lookup.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"assets/demo.gif\" alt=\"clidex demo\" width=\"600\"\u003e\n\u003c/p\u003e\n\n### What makes it different\n\n| | awesome-cli-apps / cli-anything | Clidex |\n|--|------|------|\n| Target user | Humans | AI agents (+ humans) |\n| Output | Markdown / TUI | YAML / JSON / Pretty |\n| Install info | Links only | `brew install jq` — ready to run |\n| Docs access | Click a link | `llms.txt` URL for agents to read |\n| Pipeline | No | `clidex ... \\| next_tool` (YAML in pipes) |\n| Compare | No | `clidex compare jq dasel yq` |\n\n---\n\n## Installation\n\n### With Cargo (all platforms)\n\n```bash\ncargo install clidex\n```\n\n### Pre-built binaries\n\n**Linux / macOS:**\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/syshin0116/clidex/main/install.sh | sh\n```\n\n**Windows:**\n\n```bash\ncurl -fsSL -o clidex.zip https://github.com/syshin0116/clidex/releases/latest/download/clidex-x86_64-pc-windows-msvc.zip\ntar -xf clidex.zip\nmove clidex.exe %USERPROFILE%\\.local\\bin\\\n```\n\nOr download directly from [Releases](https://github.com/syshin0116/clidex/releases/latest).\n\n\u003e **Note:** In an interactive terminal, the index is downloaded automatically on first search. In non-interactive environments (CI, pipes), run `clidex update` first.\n\n---\n\n## Usage\n\n### Search\n\n```bash\nclidex \"csv to json\"                # Pretty in terminal, YAML in pipes\nclidex \"csv to json\" --yaml         # Force YAML output\nclidex \"csv to json\" --json         # JSON output\nclidex \"csv to json\" --pretty       # Force pretty output\nclidex \"file manager\" -n 3          # Limit to top 3 results\nclidex \"json processor\" --score     # Include relevance scores\n```\n\nSearch also works as an explicit subcommand:\n\n```bash\nclidex search \"csv to json\" --category data -n 5\n```\n\nExample output (terminal):\n\n```\n  jq                ★ 34.0k  Data Manipulation \u003e Processors [67.8]\n  JSON processor\n  $ brew install jq\n\n  dasel              ★ 7.9k  Data Manipulation \u003e Processors [59.9]\n  JSON/YAML/TOML/XML processor (like jq/yq)\n  $ brew install dasel\n```\n\n### Tool info\n\n```bash\nclidex info ripgrep               # Detailed tool metadata\nclidex info ripgrpe               # Typo → \"Did you mean: ripgrep\"\n```\n\n### Compare tools\n\n```bash\nclidex compare jq dasel yq         # Side-by-side comparison\n```\n\n```\n                jq                              dasel                           yq\n                ──────────────────────────────  ──────────────────────────────  ──────────────────\nDescription     JSON processor                  JSON/YAML/TOML/XML processor…   YAML processor\nCategory        Processors                      Processors                      Processors\nStars           ★ 30.8k                         ★ 5.3k                          ★ 2.6k\nInstall         brew install jq                 brew install dasel              brew install yq\n```\n\n### Trending\n\n```bash\nclidex trending                    # Top tools by GitHub stars\nclidex trending -n 10              # Top 10\nclidex trending --category git     # Top Git tools\nclidex trending --updated-since 2026-01-01 # Filter by repo activity date\n```\n\n### Categories\n\n```bash\nclidex categories                  # List all categories with tool counts\nclidex categories git              # Filter categories by name\nclidex --category docker -n 5      # Browse tools in a category\n```\n\n### Index management\n\n```bash\nclidex update                      # Download/update index\nclidex stats                       # Show index statistics\n```\n\n### Output format\n\n| Flag | Format | When |\n|------|--------|------|\n| *(none, terminal)* | Pretty | Auto-detected when stdout is a TTY |\n| *(none, pipe)* | YAML | Auto-detected when stdout is piped |\n| `--pretty` | Pretty | Force human-friendly table |\n| `--yaml` | YAML | Force structured YAML |\n| `--json` | JSON | Force JSON |\n| `--score` | + Score | Add relevance scores to results |\n\n### Other flags\n\n| Flag | Description |\n|------|-------------|\n| `-n \u003cN\u003e` | Max number of results (default: 10) |\n\n---\n\n## Agent integration\n\nClidex is built for AI agents to consume programmatically. The typical workflow:\n\n1. Agent runs `clidex \"task description\"` (YAML output when piped)\n2. Parses the structured result\n3. Extracts `install.brew` or `install.cargo` command\n4. Installs and uses the tool\n\n### Output schema\n\nEach tool in the result contains:\n\n```yaml\nname: string            # Tool name\nbinary: string?         # Binary name (if different from name)\ndesc: string            # One-line description\ncategory: string        # Category path (e.g. \"Files and Directories \u003e Search\")\ntags: [string]          # Search tags\ninstall:                # Install commands by package manager\n  brew: string?\n  cargo: string?\n  npm: string?\n  pipx: string?\nstars: number?          # GitHub stars\nlinks:\n  repo: string?         # GitHub repository\n  homepage: string?     # Project homepage\n  docs: string?         # Documentation URL\n  llms_txt: string?     # llms.txt URL (LLM-readable docs)\n```\n\nWith `--score`, search results use a wrapper schema: `{score: number, ...tool}`. Without `--score`, output is plain `[Tool]` — same schema as `info`/`compare`/`trending`.\n\nThe `llms_txt` field is especially useful — it points to [llms.txt](https://llmstxt.org/) files that agents can fetch to learn how to use a tool.\n\n---\n\n## How search works\n\nClidex uses **BM25** text search with domain-specific optimizations:\n\n- **Field weighting**: Tool name (3x) \u003e tags + category (2x) \u003e description (1x)\n- **Synonym expansion**: `grep` → also matches `search`, `find`, `ripgrep`, `rg` (30+ synonym groups)\n- **Intent coverage**: Bonuses based on how many query terms appear in tool metadata\n- **Category boost**: Query terms matching category names get boosted\n- **Popularity boost**: GitHub stars or Homebrew install counts add 0–8 bonus points (tie-breaker, not primary signal)\n- **Fuzzy matching**: Catches typos via edit distance (`ripgrpe` → `ripgrep`) and subsequence matching\n- **Alias mapping**: `rg` → ripgrep, `btm` → bottom, `z` → zoxide (24 pairs)\n- **Confidence gates**: Minimum lexical evidence required to prevent false positives from garbage queries\n\nSearch performance: **~3ms per query** on the full 5,000+ tool index (with cached BM25 engine).\n\n---\n\n## Data sources\n\n| Source | What it provides |\n|--------|-----------------|\n| [awesome-cli-apps](https://github.com/agarrharr/awesome-cli-apps) | Curated tool list with categories |\n| [toolleeo/cli-apps](https://github.com/toolleeo/cli-apps) | 2,200+ tools from CSV |\n| [modern-unix](https://github.com/ibraheemdev/modern-unix) | Modern replacements for classic tools |\n| [awesome-tuis](https://github.com/rothgar/awesome-tuis) | Terminal UI applications |\n| [Homebrew](https://formulae.brew.sh/) | `brew install` commands, formulae + casks |\n| [GitHub API](https://docs.github.com/en/rest) | Stars, last updated, homepage |\n| [crates.io](https://crates.io/) | `cargo install` commands + category-based discovery |\n| [npm](https://www.npmjs.com/) | `npm install -g` commands |\n| [PyPI](https://pypi.org/) | `pipx install` commands for Python CLI tools |\n| [Homebrew analytics](https://formulae.brew.sh/analytics/) | 365-day install counts |\n| [llms.txt](https://llmstxt.org/) | LLM-readable documentation probing |\n\nThe index is rebuilt daily via GitHub Actions and published as a [release asset](https://github.com/syshin0116/clidex/releases/tag/index).\n\n---\n\n## Build index locally\n\n```bash\ncargo run --bin build_index -- index.yaml\n```\n\n### Environment variables\n\n| Variable | Default | Description |\n|----------|---------|-------------|\n| `GITHUB_TOKEN` | — | GitHub API token (increases rate limit from 60 to 5000/hr) |\n| `GITHUB_LIMIT` | `50` | Max GitHub API requests |\n| `CRATES_LIMIT` | `100` | Max crates.io lookups |\n| `NPM_LIMIT` | `50` | Max npm registry lookups |\n| `LLMS_LIMIT` | `100` | Max llms.txt probes |\n\n---\n\n## Contributing\n\nContributions are welcome! Some areas that could use help:\n\n- **Adding tools to the index**: Suggest popular CLI tools that are missing\n- **Search quality**: Report queries that return unexpected results\n- **New data sources**: Integrations with other package managers\n- **Platform support**: Testing on different OS/architecture combinations\n\n```bash\n# Development\ncargo build\ncargo test\ncargo clippy\ncargo fmt\n```\n\n---\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyshin0116%2Fclidex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsyshin0116%2Fclidex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyshin0116%2Fclidex/lists"}