glyphsteer-dense
Use when running GlyphSteer's DENSE regime — embedding-based emoji steering via the containerized ONNX sidecar.
Skill by sancovp
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/sancovp-glyphsteer-dense
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: devops, ml
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/glyphsteer-dense
What's inside
- Skill name
glyphsteer-dense- Description
- Use when running GlyphSteer's DENSE regime — embedding-based emoji steering via the containerized ONNX sidecar. Covers standing up the glyphsteer-serve Docker image, the MANDATORY emoji-collapse gate (many models map all emoji to one token), the magnitude probe, and the anchor metric-reshape (steer.sim_eff). Triggers on "glyphsteer dense", "embedding steering", "emoji direction", "glyphsteer sidecar", "magnitude probe", "anchor reshape", "is the dense nudge big enough".
- License
- MIT
- Instructions
- 83 lines in SKILL.md · view on GitHub
Before installing
- Instructions call the network
Files (1)
- SKILL.md
SKILL.md (first lines)
# GlyphSteer — the dense regime (containerized)
The dense half steers retrieval by the emoji's **learned direction** in embedding space.
The heavy neural runtime lives in a Docker sidecar (`fastembed → onnxruntime`, **no torch**);
the host calls it over HTTP and the steer/probe math runs host-side in pure numpy.
**Run its Python** from a plugin install with `uv run --no-project --with glyphsteer==0.3.1 python3` — pipe a block in as `python3 - <<'PY'` … `PY` — and from a clone of the public repository where `./install.sh` ran, with the clone's `python3`. For the local fastembed backend instead of the sidecar, run it with `uv run --no-project --with "glyphsteer[dense]==0.3.1" python3`.
> The sidecar's compose file and the probes below are in a clone of the public repository: run every
> `packages/...` command from the clone's root (`.../chaincompiler`).
## 1. Stand up the sidecar
```bash
cd packages/glyphsteer/serve
# byte-aware multilingual model — REQUIRED (see the collapse gate below)
GLYPHSTEER_MODEL=sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2 \
docker compose up --build -d
curl localhost:8088/health # {"status":"ok","model":"...MiniLM-L12-v2"}
curl localhost:8088/info # {"model":"...","dim":384}
export GLYPHSTEER_EMBED_URL=http://localhost:8088 # host now uses the sidecar
```
The host `dense.embed(texts)` auto-routes to the container when `GLYPHSTEER_EMBED_URL` is set
(stdlib urllib — no host deps). Backends: `remote` (container, default when the env var is
set), `fastembed` (local ONNX), `st` (local sentence-transformers).
## 2. THE GATE — check emoji-collapse FIRST (non-negotiable)
Many English tokenizers (BERT/WordPiece, e.g. `bge-small-en-v1.5`) map **every** emoji to the
same token (`[UNK]`) → all emoji embed identically → dense steering is **impossible**. Always
run the gate before trusting any dense number:
```bash
GLYPHSTEER_EMBED_URL=http://localhost:8088 \
python3 packages/glyphsteer/experiments/emoji_collapse_check.py
# mean off-diagonal cosine ≈ 1.000 ⇒ COLLAPSED (reject the model)
# well below 1.0 (e.g. 0.77–0.97) ⇒ DISTINCT (proceed)
```
Verified: `bge-small-en-v1.5` → 1.000 (blind). `paraphrase-multilingual-MiniLM-L12-v2` →
distinct, with clean alignment. Fix a collapse with a one-env-var model swap + rebuild.
## 3. Magnitude probe (Q1–Q3)
```bash
GLYPHSTEER_EMBED_URL=http://localhost:8088 \
python3 packages/glyphsteer/experiments/magnitude_probe.py
```
- **Q1 (alignment):** `cos(glyph, aligned_word) − cos(glyph, unrelated)` — should be clearly
positive (the emoji means what you think). Measured +0.28…+0.58 with the multilingual model.
- **Q2 (per-token nudge):** injecting one emoji shifts a neutral chunk's vector by Δcos
~−0.03…+0.09 — real but modest, and a single token can wash out or slightly *invert* under
mean-pooling (e.g. ❓ measured −0.034). This is why Q2 is a tuning concern, not a guarantee.
- **Q3 (anchor reshape):** a controllable gain (×2 at weight 1).
## 4. Steer — the anchor metric reshape (pure numpy, host-side)
`sim_eff` (lives in `glyphsteer.steer`, re-exported at top level — `from glyphsteer import
sim_eff`) bends the similarity metric toward chosen anchors at query time:
`sim_eff(q,d) = cos(q,d) + Σ_k w_k·⟨q,â_k⟩·⟨d,â_k⟩`, with â_k from `dense.measure_anchor`.
```python
from glyphsteer import dense, sim_eff
anchor = dense.measure_anchor("😡") # the glyph's learned direction (via the sidecar)
q = dense.embed(["the deploy broke"])[0]
docs = dense.embed(["it crashed badly", "it shipped fine"])
scored = sim_eff(q, docs, anchors=anchor[None, :], weights=[1.5]) # weight = the steering knob
```
weight 0 = plain cosine; raising it makes that axis dominate (too high → ignores the query).
## Honest status
Dense is **viable and measured** but its per-token strength is a *tuning knob*, not a free
lunch; end-to-end dense retrieval lift on a real (non-toy) corpus is the open item. Lexical
faceting (the core **glyphsteer** skill) is the regime that's a clean win today.
## Verify (run this)
```bash
cd packages/glyphsteer/serve && docker compose up --build -d && cd -
export GLYPHSTEER_EMBED_URL=http://localhost:8088
python3 packages/glyphsteer/experiments/emoji_collapse_check.py # gate
python3 packages/glyphsteer/experiments/magnitude_probe.py # Q1–Q3
```
Architecture/flows: `packages/glyphsteer/.claude/rules/{10,20}-architecture-*.md` (DW-6/DW-7).From sancovp/chaincompiler, MIT.
More from sancovp/chaincompiler
- 0.458score
chainforge
sancovp
Chain-of-reasoning (spoken, ends in a decision) — a diagram is a formalized relationship structure, never decoration — never begin by drawing; determine what…
SkillAFreshness: AClaude Code +9 - 0.458score
bandit-chain-system
sancovp
How the bandit (the default ChainSelector persona) rolls up the AC→CoR→SC algebra and CLOSES it into a domain-specific persona — a self-contained "bandit…
SkillAFreshness: AClaude Code +9 - 0.458score
chaincompiler
sancovp
Orientation when working IN the chaincompiler repo — what the system is, where things live, and the discipline.
SkillAFreshness: AClaude Code +9 - 0.458score
glyphsteer
sancovp
Use when steering retrieval with hidden in-band glyph markers — an LLM annotates a corpus with a controlled emoji/glyph vocabulary that biases search (lexical…
SkillAFreshness: AClaude Code +9 - 0.458score
skilltree
sancovp
WHAT: turn a flat .claude/skills folder (or any folder of skills) into a walkable coordinate-addressed tree so the model loads one layer at a time instead of…
SkillAFreshness: AClaude Code +9 - 0.456score
boundary-keeper
sancovp
Chain-of-reasoning (spoken, ends in a decision) — a boundary defines inside, outside, interface, and crossing conditions — and abstraction layers stay stable…
SkillAFreshness: AClaude Code +9 - 0.456score
edge-typer
sancovp
Chain-of-reasoning (spoken, ends in a decision) — an arrow is not generic association, proximity is not causality, a container is not ownership — every…
SkillAFreshness: AClaude Code +9 - 0.456score
graph-auditor
sancovp
Chain-of-reasoning (spoken, ends in a decision) — an orphan node has no reason to exist, an ambiguous arrow is a lie, and invisible feedback is a hidden loop…
SkillAFreshness: AClaude Code +9 - 0.456score
diagram-compilation
sancovp
The master diagram-compilation AC — the whole walk from an unstructured concept to a validated legible diagram; each focus expands into its own sidechain…
SkillAFreshness: AClaude Code +9 - 0.455score
metaformal-self-test
sancovp
How to verify agent/COG/gate/AIOS behavior WITHOUT calling LLMs or writing tautology asserts — by triggering the real thing in the real substrate and…
SkillAFreshness: AClaude Code +9 - 0.454score
diagram-construction
sancovp
Skillchain — ac:diagram-compilation → ac:never-begin-by-drawing → cor:chainforge → Diagram-construction
SkillAFreshness: AClaude Code +9 - 0.452score
boundary-abstraction-pass
sancovp
The boundary pass — a system in, its explicit membrane out; membership is never implied, and nodes at incompatible abstraction levels never share a chain…
SkillAFreshness: AClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Oct 23, 2026 (4 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/sancovp/chaincompiler
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from sancovp
- 0.458score
bandit-chain-system
sancovp
How the bandit (the default ChainSelector persona) rolls up the AC→CoR→SC algebra and CLOSES it into a domain-specific persona — a self-contained "bandit…
SkillAFreshness: AClaude Code +9 - 0.458score
chainforge
sancovp
Chain-of-reasoning (spoken, ends in a decision) — a diagram is a formalized relationship structure, never decoration — never begin by drawing; determine what…
SkillAFreshness: AClaude Code +9 - 0.458score
glyphsteer
sancovp
Use when steering retrieval with hidden in-band glyph markers — an LLM annotates a corpus with a controlled emoji/glyph vocabulary that biases search (lexical…
SkillAFreshness: AClaude Code +9 - 0.458score
skilltree
sancovp
WHAT: turn a flat .claude/skills folder (or any folder of skills) into a walkable coordinate-addressed tree so the model loads one layer at a time instead of…
SkillAFreshness: AClaude Code +9 - 0.458score
chaincompiler
sancovp
Orientation when working IN the chaincompiler repo — what the system is, where things live, and the discipline.
SkillAFreshness: AClaude Code +9 - 0.456score
boundary-keeper
sancovp
Chain-of-reasoning (spoken, ends in a decision) — a boundary defines inside, outside, interface, and crossing conditions — and abstraction layers stay stable…
SkillAFreshness: AClaude Code +9
Cite this page
glyphsteer-dense skill. Agent Mart. https://agentmart.dev/skills/sancovp-glyphsteer-dense (last updated 2026-10-24)