rubiks-cube-solver solver-search.instructions.md

rubiks-cube-solver solver-search.instructions.md is an instructions file for GitHub Copilot from williamisnotdefined/rubiks-cube-solver. It costs 2,961 tokens per session, scanned A, original, MIT.

A set of instructions for changing the search algorithms in a Rust Rubik’s Cube solver. It covers IDA*, a search method that repeatedly explores solutions within increasing move limits, along with heuristics and pruning rules that reduce unnecessary searches.

In plain words
What is it for?
Use it when modifying search traversal, heuristics, pruning, pattern databases, or two-phase solving, starting with small deterministic tests.
Why use it?
It helps add or change search behaviour without hiding errors in the cube’s state or move calculations.

Instructions file for GitHub Copilot

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/williamisnotdefined/rubiks-cube-solver/solver-search
Clone the repo
git clone --depth 1 https://github.com/williamisnotdefined/rubiks-cube-solver

Made for: GitHub Copilot.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for rubiks-cube-solver solver-search.instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/williamisnotdefined/rubiks-cube-solver/solver-search.svg)](https://agentmods.dev/instructions/williamisnotdefined/rubiks-cube-solver/solver-search)
Your own site
<a href="https://agentmods.dev/instructions/williamisnotdefined/rubiks-cube-solver/solver-search"><img src="https://agentmods.dev/badge/instructions/williamisnotdefined/rubiks-cube-solver/solver-search.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,961 This file is loaded in full into every session.
When invoked 2,961 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.02961 $0.02961
Opus 5 $0.01481 $0.01481
Sonnet 5 $0.00592 $0.00592
Haiku 4.5 $0.00296 $0.00296

Measured 3d ago against content hash 4c875aa68701, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

rubiks-cube-solver solver-search.instructions.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/instructions/solver-search.instructions.md · 290 lines

How it starts

The opening of the file, as written. The whole thing — 290 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Generated from ai/registry.json. Do not edit manually.

Canonical skill: ../../ai/skills/solver-search.md.

Referenced context:

  • ../../ai/rules/solver-search-rules.md
  • ../../ai/rules/testing-rules.md
  • ../../ai/architecture/project-architecture.md
  • ../../ai/architecture/solver-search.md
  • ../../ai/architecture/cube-engine.md
  • ../../ai/glossary/cube-terms.md

This file is compiled from canonical AI knowledge files. Edit canonical files under ai, then run npm run ai:sync.

Canonical Skill: ai/skills/solver-search.md

Use this skill when adding or changing IDA*, generated two-phase search, heuristics, pruning, or pattern database code.

Goal

Add search behavior only on top of correct cube state and move semantics.

Read First

  • ai/rules/solver-search-rules.md
  • ai/rules/testing-rules.md
  • ai/architecture/project-architecture.md
  • ai/architecture/solver-search.md
  • ai/architecture/cube-engine.md
  • ai/glossary/cube-terms.md

Workflow

  • Verify cube move behavior before trusting search results.
  • Start with shallow deterministic cases.
  • Keep heuristics separate from traversal logic.
  • Mark whether each heuristic is admissible.
  • Add node/depth metrics for non-trivial algorithms.

Expected Output

  • Search returns explicit move sequences and metrics.
  • Tests cover solved state and shallow known scrambles.
  • No learned or external inference heuristic is introduced without an explicit current product requirement.

Verification

  • Run cargo test -p cube-engine when Rust is installed.
  • Include targeted tests for the changed search module.

Referenced Context

Reference: ai/rules/solver-search-rules.md

Solver Search Rules

Rules for search, heuristics, and pattern database work.

Always

  • Keep search algorithms in crates/cube-engine/src/search unless a later crate boundary is introduced.
  • Keep heuristics explicit about admissibility.
  • Prefer bounded IDA* and generated two-phase paths after move tables are correct.
  • Prune inverse moves and repeated same-axis branches where correctness allows it.
  • Measure node counts and depth limits for non-trivial search changes.

Read the full file on GitHub · 290 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 290 lines · 2,961 tokens per session scan A 4c875aa68701

Subscribe to this mod's changes

rubiks-cube-solver solver-search.instructions.md is an instructions file published in the GitHub repository williamisnotdefined/rubiks-cube-solver (4 stars, last pushed 10d ago), licensed MIT. It adds 2,961 tokens to every session, about $0.0148 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.