Skip to main content

ReIndex

The reindex distribution provides the ReIndex Python package and the rei CLI. reindex is also a CLI alias.

Install and initialize

Give an AI Agent this sentence:

Run uv tool install --upgrade reindex, then run rei init <data-directory> --agent <current-agent> to create or update the ReIndex skills.

The installation is complete when rei --help works directly, without uv run. pipx install reindex and python -m pip install reindex are also supported. Python 3.12 or newer is required; the Docling dependency makes the first installation and first PDF scan larger than a typical CLI.

<current-agent> is codex, claude, cursor, or copilot. init is idempotent, creates or reuses local identity, and installs or safely updates the three bundled skills. It does not scan, push, or download tutorial data.

rei init <collection-dir> [--name <name>] [--agent codex]
rei rename <collection-dir> <new-name>

Local commands

rei inspect <path>
rei scan <path> [--collection-root <collection-dir>]
rei check <path>

inspect is read-only. scan stages, validates, and atomically publishes a package. check verifies package resources, protected Node metadata, and current inputs.

For the normal author path, push runs the same package check again, so an explicit check is mainly useful after manually editing cards or in CI:

rei init <collection-dir> --name <name> --agent codex
rei inspect <collection-dir>
rei scan <collection-dir>
rei push <collection-dir> --api-url <api-url>

Remote commands

rei set-api <base-url>
rei push [path]
rei pull <name> [--output <directory>]
rei search "<query>" [--remote <name>] [--mode lexical|semantic|hybrid]
rei get <node-path> [--target card|source|content|asset]
rei get raw://<path>

push synchronously sends the complete validated package and exactly referenced raw sources. pull downloads only the complete .node.md tree. get checks a complete local package, local authoring source, and the SHA-256 cache before downloading one exact resource.

Collection names are the user-facing remote identifier. UUIDs remain internal stable identity. Resource logical paths stay Collection-relative and are scoped by the internal Collection UUID.

Skills

rei skills install --agent codex
rei skills update --agent codex
rei skills update --agent codex --force

Normal updates overwrite only unmodified ReIndex-managed copies. A modified skill reports a conflict unless --force is explicit.

Python API

The stable Python namespace is reindex. It currently exposes the HTTP client and installed package version; higher-level Collection APIs can grow here without changing the CLI implementation package.

from reindex import ApiClient, __version__

client = ApiClient("http://127.0.0.1:8000")
print(__version__, client.health())

The CLI does not include or provision a hosted API. Remote commands use the configured ReIndex API; without one, the default is the local development endpoint at http://127.0.0.1:8000.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

reindex-0.3.1.tar.gz (33.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

reindex-0.3.1-py3-none-any.whl (48.1 kB view details)

Uploaded Python 3

File details

Details for the file reindex-0.3.1.tar.gz.

File metadata

  • Download URL: reindex-0.3.1.tar.gz
  • Upload date:
  • Size: 33.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for reindex-0.3.1.tar.gz
Algorithm Hash digest
SHA256 7739343e19f06168ab6bbeeecaa243188941d4ca636baf78965bf717d485472d
MD5 1d16307e8d4ce4e7595e2900c9224a13
BLAKE2b-256 583d91d42279e488386304376e801986fd0bab1fff956496eb860d2063c4e5d1

See more details on using hashes here.

File details

Details for the file reindex-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: reindex-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 48.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for reindex-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f71bccb82ad8dc220a0bfebb67f54f68470a3a504a86de4f3f0d4dfe3921b7e2
MD5 963cd0d85595792d0c628f0e00dff63c
BLAKE2b-256 3f79426bfb843819e5d47c9435b5c7a50c698a23869519c42417fb291353f2af

See more details on using hashes here.

Release history Release notifications | RSS feed

0.3.2

2 files

This release

0.3.1 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page