{
  "markdown": "# rex 🇺🇦\n\n> reference explorer\n\nSub-second Python symbol search for `.venv` packages\nand project source code.\n*Bonus*: MCP server for\n[Claude Code](https://github.com/anthropics/claude-code).\n\n## Install\n\n### Claude Code plugin\n\n```bash\nclaude plugin marketplace add vykhovanets/rex\nclaude plugin install rex@rex\n```\n\nTo update to the latest version:\n\n```bash\nclaude plugin uninstall rex@rex\nclaude plugin marketplace remove rex\nclaude plugin marketplace add vykhovanets/rex\nclaude plugin install rex@rex\n```\n\nMCP tools + SKILL.md with usage guidance.\n\n### CLI + MCP\n\n```bash\nuv tool install rex-index\nclaude mcp add rex -s user -- rex-mcp serve\n```\n\nRex available in every project, no per-project setup.\n\n### Project dependency\n\n```bash\nuv add rex-index\nuv run rex init-mcp\n```\n\nAdds Rex to `.mcp.json` with pre-approved tools.\nCommit both files — your team gets Rex on `uv sync`.\n\n## How it works\n\nRex stores a single global index at\n`~/.local/state/rex/rex.db`. Indexing is **incremental** —\nonly packages whose files changed since the last run are\nre-indexed. First run takes ~30s; subsequent runs are\ninstant. Project source code is indexed automatically when\na `pyproject.toml` or `setup.py` is detected.\n\nSearch pipeline:\n1. **Auto-reindex** — stale packages refreshed before search\n2. **Exact + FTS5** — exact name, then full-text on name/qname\n3. **LIKE fallback** — substring match when FTS misses\n4. **Fuzzy** — typo-tolerant approximation (rapidfuzz)\n\nWhen results are fuzzy-only or empty, rex shows a\ncontextual hint (e.g. \"approximate matches\" or\n\"try: uv add <package>\").\n\n## CLI\n\n```bash\nrex find <query>       # Search symbols (unquoted OK)\nrex find -t class Base # Filter by type\nrex show <name>        # Full docs by qualified name\nrex members <name>     # List class/module members\nrex stats              # Index statistics\nrex index              # Build/update index\nrex index -f           # Force full rebuild\nrex index -p ./lib     # Also index extra directories\nrex clean              # Remove stale packages\nrex init-mcp           # Register MCP in .mcp.json\n```\n\n## MCP Tools\n\nClaude Code can use rex too — same speed, no\nround-trips to the web.\n\n| Tool          | Description                   |\n|---------------|-------------------------------|\n| `rex_find`    | Search symbols (+ type filter)|\n| `rex_show`    | Full docs for a symbol        |\n| `rex_members` | List class/module members     |\n\n## License\n\nApache-2.0\n",
  "bytes": 2449,
  "sha": "2959adfd2ed8cb7bfa459a97bbe124f55850d7c75fc4b7c902764398d5ecfa30",
  "repo_slug": "vykhovanets/rex",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/plg_vykhovanets_rex_rex_8f45ba9e/readme"
}