Skip to main content

ReIndex

The reindex distribution provides the ReIndex Python package and the rei CLI.

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.2.tar.gz (33.4 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.2-py3-none-any.whl (48.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: reindex-0.3.2.tar.gz
  • Upload date:
  • Size: 33.4 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.2.tar.gz
Algorithm Hash digest
SHA256 8c8d8ce8092fe8c6c380b54ecab40bdaf0ff77bf9ae9e7a3878eef0752084c8a
MD5 bfe34c3749b3fe21bb1e09caccd5f029
BLAKE2b-256 ab85ba4488b1e09d929cb5c171a0fdc0ce266627303ef1d9155a52a737208d33

See more details on using hashes here.

File details

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

File metadata

  • Download URL: reindex-0.3.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f251b60428180d9912a4e6f9f5cda8a4f318b3c9ed13e9ace22ec99e6730aa71
MD5 56a74ce2e09421ea3d1de1dccca9a688
BLAKE2b-256 3bf78dcfcebf7bb5ddf0f4739e9e0801f34406b1e1436299579e83101c3c258e

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3.2 This release

2 files

0.3.1

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