bidirectional-navigator

bidirectional-navigator is a skill for Codex from plurigrid/asi. It costs 0 tokens per session (574 once invoked), scanned A, original, MIT.

A Julia index for moving between mathematical theorems and their proofs while enforcing a rule against immediately retracing a link.

In plain words
What is it for?
Use it to build the index, find a theorem from a proof or proofs from a theorem, test the constraint, and check compatibility with linear homotopy type theory.
Why use it?
It makes these proof-to-theorem lookups fast and checks whether an evaluation follows the stated non-backtracking constraint.

Skill for Codex

Written for Codex: installed under .codex/.

Good fit Use it to build the index, find a theorem from a proof or proofs from a theorem, test the constraint, and check compatibility with linear homotopy type theory.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/plurigrid/asi/bidirectional-navigator
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.

Any agent
npx skills add plurigrid/asi --skill bidirectional-navigator
Clone the repo
git clone --depth 1 https://github.com/plurigrid/asi

Made for: Codex.

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 bidirectional-navigator

README.md
[![agentmods](https://agentmods.dev/badge/skills/plurigrid/asi/bidirectional-navigator/github.svg)](https://agentmods.dev/skills/plurigrid/asi/bidirectional-navigator)
Your own site
<a href="https://agentmods.dev/skills/plurigrid/asi/bidirectional-navigator"><img src="https://agentmods.dev/badge/skills/plurigrid/asi/bidirectional-navigator/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for bidirectional-navigator

Your own site · 80×15
<a href="https://agentmods.dev/skills/plurigrid/asi/bidirectional-navigator"><img src="https://agentmods.dev/badge/skills/plurigrid/asi/bidirectional-navigator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 574 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00000 $0.00574
Opus 5.5 $0.00000 $0.00230
Sonnet 5.5 $0.00000 $0.00115
Haiku 4.5 $0.00000 $0.00057

Measured 3mo ago against content hash c1f0d14bed45, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

bidirectional-navigator 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 3mo 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.

ies/music-topos/.codex/skills/bidirectional-navigator/SKILL.md · 92 lines

How it starts

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

Bidirectional Navigator

Category: Proof Navigation + Caching Type: Graph Index Structure Language: Julia Status: Production Ready Version: 1.0.0 Date: December 22, 2025

Overview

Safe proof ↔ theorem navigation with non-backtracking constraint. Implements Friedman's B operator to enable linear homotopy type theory (LHoTT) resource-aware evaluation where proofs are consumed exactly once.

Key Data Structures

struct Theorem
    id::Int
    name::String
end

struct Proof
    id::Int
    theorem_id::Int
    name::String
end

struct BidirectionalMap
    forward::Dict{Int, Int}     # Proof ID → Theorem ID
    backward::Dict{Int, Vector{Int}}  # Theorem ID → [Proof IDs]
    non_backtracking_ok::Bool
end

Key Functions

  • create_index(theorems, proofs): Build bidirectional mapping
  • evaluate_forward(index, proof_id): O(1) proof → theorem lookup
  • evaluate_backward(index, theorem_id): Cached theorem → proofs lookup
  • check_non_backtracking(): Verify B operator constraint (no u→v→u)
  • linear_evaluation_possible(): Check LHoTT compatibility

Mathematical Foundation

Friedman's Non-Backtracking Operator (B)

No u→v→u cycles ⟺ Linear resource-aware evaluation possible

Enables:

  • Automatic proof consumption tracking
  • Linear type system integration (LHoTT)
  • Memory-efficient navigation (no revisits)

Usage

using BidirectionalIndex

# Create index
index = create_index(theorems, proofs)

# Forward navigation (Proof → Theorem)
theorem_id = evaluate_forward(index, proof_42)

# Backward navigation (Theorem → Proofs)
related_proofs = evaluate_backward(index, theorem_5)

# Verify constraints
if check_non_backtracking(index)
    println("✓ B operator satisfied, linear evaluation ok")
end

Integration Points

  • Agent-based proof discovery with caching
  • Linear homotopy type theory resource tracking
  • Efficient theorem-proof lookup in large catalogs

Performance

  • Index creation: < 0.1 seconds
  • Forward lookup: O(1)
  • Backward lookup: O(1) cached after first access
  • Scalable to 5,652+ theorems

Read the full file on GitHub · 92 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 3mo ago First seen · 92 lines · 0 tokens per session scan A c1f0d14bed45

Subscribe to this mod's changes

bidirectional-navigator is a skill published in the GitHub repository plurigrid/asi (73 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 574 tokens. 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-09-03.

Related

bidirectional-navigator compared with skills from other repositories

bidirectional-navigator next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
bidirectional-navigatorplurigrid/asiSkill731mo agoMITA0Codex
hr-onboardingnexu-io/open-designSkill111kyesterdayApache-2.0A62Claude Code, Codex
book-mirrorgarrytan/gbrainSkill34ktodayMITA139Claude Code
lean-formalizewanshuiyin/Auto-claude-code-research-in-sleepSkill20kyesterdayMITA81Claude Code
deck-course-modulenexu-io/html-anythingSkill17k4d agoApache-2.0A25Claude Code, Codex
eli5companion-inc/feynmanSkill10k5d agoMITA63Claude Code, Codex
explore-unknownsdzhng/skillsSkill1.5k20d agoMITA162Claude Code, Codex