check-flow-coverage
Check which C source lines are not covered by Python flow tests. Use this when you want to ensure your C code changes are exercised by end-to-end Python tests. For Rust coverage, use /check-rust-coverage instead.
improve-flow-coverage
Improve Python flow test coverage for C source files. Runs /check-flow-coverage to find gaps, then writes or extends tests following /write-flow-tests guidelines.
run-python-tests
Run end-to-end Python tests after making changes to verify correctness. Use this when you want to verify your changes from an end-to-end perspective, after ensuring the build and Rust tests pass.
port-c-module
Guide for porting a C module to Rust. Use this when starting to port a C module to Rust.
build
Build and validate RediSearch after code, dependency, bootstrap, toolchain, or build-system changes. Use before end-to-end tests and whenever build or test prerequisites change.
add-ci-platform
Add a new OS platform to RediSearch CI. Use when adding a new distro version, OS, or container target to the build/test matrix.
lint
Check code quality and formatting before committing changes. Use this to verify your changes meet our coding standards.
read-unmodified-c-module
Read the source of the C module we are working on, before we made any changes.
review-rust-docs
Review the documentation of a Rust crate to ensure it meets our requirements and standards. Use this when you have done changes to Rust code.
rust-tests-guidelines
Guidelines for writing Rust tests. Use this when you want to write Rust tests.
drive-redisearch
Drive the locally built RediSearch module the way a user does — a real redis-server with redisearch.so loaded (standalone or a 3-shard OSS cluster), exercised through FT.* commands in redis-cli — and capture evidence. Use to prove a change to indexing, querying, aggregation, vector/hybrid search, or the coordinator works end to end, beyond what unit tests show, or to reproduce a reported behavior by hand.
commit-guidelines
Dirty repo, uncommitted changes, commit, amend, split, changeset, PR history. Inspect repository state and prepare atomic Git commits or jj changesets. Use whenever the worktree is already dirty or you are about to commit or rewrite history.
verify
Run verification before committing or creating a PR, including dependency and bootstrap behavior when build or test prerequisites change.
jj-fix-conflicts
Fix merge conflicts in a jj change and its ancestors, starting from the oldest conflict. Use this when a jj change or its ancestors have conflicts that need resolving.
run-rust-tests
Run Rust tests after making changes to verify correctness. Use this when you want to verify your changes to Rust code.
report-bug
Report a RediSearch product bug to Jira as a MOD ticket an agent or engineer can act on without asking follow-up questions. Use when asked to open, file, or draft a bug ticket for incorrect behavior, a crash, or a wrong result. Reproduces on the current commit, searches for duplicates, fills the team bug template, and creates the ticket only after the user approves. For flaky CI tests use /report-flaky-test instead.
docs-guidelines
General documentation guidelines that apply across all languages. Use this when writing or reviewing comments, docstrings, or doc headers in any code.
bisect-perf-regression
Systematically bisect an end-to-end performance regression between two refs (tags/branches/commits) down to the exact offending commit(s). Use this when CI/customer benchmarks show one version is measurably slower than another and you need to attribute the cost to specific PRs.
write-rust-tests
Write Rust tests to verify correctness of Rust code. Use this when you want to write Rust tests.
rust-docs-guidelines
Guidelines for writing Rust documentation. Use this when you want to write Rust documentation.
write-flow-tests
Guidelines for writing Python flow tests (end-to-end behavioral tests). Use this when writing new Python tests in tests/pytests/, and as the review criteria when reviewing changes to them.
investigate-flaky-test
Investigate a RediSearch flaky-test report from a Jira key, CI failure, test id, or local logs. Use this to collect evidence, identify a supported root cause, and propose a real fix; if the evidence is insufficient, say so and ask for the missing data instead of suggesting workaround-only fixes or skip_until.
report-flaky-test
Report a flaky RediSearch test from a CI failure, Jira issue, test id, or local log. Use this to collect GitHub Actions logs/artifacts, find or create the right MOD Jira ticket, update existing flaky-test issues, and suggest immediate triage such as a trivial test-only fix or a temporary skip_until.
rqe-iterator-suspend-resume
Implementation & review guide for suspend/resume (revalidation) on query-engine iterators in src/redisearch_rs/rqe_iterators/. Use this when adding the Box<Self> suspend/resume mechanism to an RQE iterator that currently only implements the legacy revalidate, when modifying an existing suspend/resume implementation, or when reviewing a PR that touches this machinery (boxed.rs, ref_mode markers, child-slot helpers, layout-invariant proofs).
jj-workspace
Create or delete a jj (Jujutsu) workspace — a second checkout of this repo, sharing one repository. Use when you need to work on something side by side with the current checkout, for instance to leave a long build or test run undisturbed, and to clean the workspace up afterwards.
jj-split-changeset
Split a jj (Jujutsu) changeset into smaller, focused changesets. Use when asked to break up a large changeset, split commits, reorganize changes across revisions, or create stacked PRs from a single changeset. Covers safe duplication-based workflows, file-path and hunk-level splitting without interactive commands.
pr-backport
Backport a merged PR to a release branch. Use this when you need to cherry-pick a fix or feature into an older branch.
run-macro-benchmarks
Run a RediSearch end-to-end macro benchmark from tests/benchmarks/*.yml via redisbench-admin. Use this when you want to measure whole-module performance (throughput/latency) against a real redis-server, not micro Rust or C++ benchmarks.
minimize-rust-ffi-crate-surface
Remove Rust-defined C symbols that are either unused or only used in C/C++ unit tests. Use this when you are refactoring a Rust FFI crate and want to remove unused symbols.
adversarial-review
Commission an independent review of a change from an isolated reviewer, before opening or updating a PR or on demand by the user. For the agent requesting the review — if you were spawned to review something, you are the reviewer and this is not your skill.
rust-review
Review Rust code changes for unsafe correctness, security and robustness, documentation quality, and C-to-Rust porting fidelity. Use this when you want to review Rust changes before merging.
branch-out-release
Create a new RediSearch public release branch from master or prepare branch-out changes. Use when branching a version line such as 8.10 from master, setting initial version.h, copying GitHub branch protection, adapting release-branch CI gates, triggering validation, or documenting follow-up master-to-release sync policy.
run-c-unit-tests
Run C/C++ unit tests to verify correctness. Use this after making changes to C code to verify nothing is broken.
code-review
Review C code changes for correctness, safety, and style. Use this when you want to review C code changes or PRs.
analyze-rust-ffi-crate-surface
Determine which parts of the C codebase use Rust-defined C symbols. Use this when you want to understand which C code files may be impacted by changes to a Rust FFI crate.
close-pr
Close or clean up a GitHub pull request for RediSearch. Use when asked to close a PR, choose between ordinary closure and cleanup closure, delete a PR branch, sanitize mistaken PR metadata, or clean up a mistaken or unwanted PR whose diff should not remain visible.
check-rust-coverage
Check which Rust lines are not covered by Rust tests. Use this when you developed new Rust code and want to ensure it is tested.
open-pr
Open a GitHub pull request for RediSearch. Use whenever you are asked to open a PR.
run-rust-benchmarks
Run Rust benchmarks and compare performance with the C implementation. Use this when you work on migrating C code to Rust and want to ensure performance is not regressed.