Context Assembly Scorer logo

Context Assembly Scorer

Community
ArchieIndian
context-assembly-scorer

Scores how well the current context represents the full conversation — detects information blind spots, stale summaries, and coverage gaps that cause the agent to forget critical details.

Overview

PublisherArchieIndian
Repositoryopenclaw-superpowers
Skill namecontext-assembly-scorer
Stars
74
Forks
14
Bundled files
3
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by ArchieIndian on GitHub. Read the source before you install it.

Installation

Install the Context Assembly Scorer AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/ArchieIndian/openclaw-superpowers/tree/main/skills/openclaw-native/context-assembly-scorer
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ArchieIndian/openclaw-superpowers.git /tmp/openclaw-superpowers
mkdir -p .claude/skills
cp -r /tmp/openclaw-superpowers/skills/openclaw-native/context-assembly-scorer .claude/skills/context-assembly-scorer
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Context Assembly Scorer in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Context Assembly Scorer on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Context Assembly Scorer is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Context Assembly Scorer

What it does

When an agent compacts context, it loses information. But how much? And which information? Context Assembly Scorer answers these questions by measuring coverage — the ratio of important topics in the full conversation history that are represented in the current assembled context.

Inspired by lossless-claw's context assembly system, which carefully selects which summaries to include in each turn's context to maximize information coverage.

When to invoke

  • Automatically every 4 hours (cron) — silent coverage check
  • Before starting a task that depends on prior context — verify nothing critical is missing
  • After compaction — measure information loss
  • When the agent says "I don't remember" — diagnose why

Coverage dimensions

DimensionWhat it measuresWeight
Topic coverage% of conversation topics present in current context2x
Recency biasWhether recent context is over-represented vs. older important context1.5x
Entity continuityNamed entities (files, people, APIs) mentioned in history that are missing from context2x
Decision retentionArchitectural decisions and user preferences still accessible2x
Task continuityActive/pending tasks that might be lost after compaction1.5x

How to use

bash
python3 score.py --score                      # Score current context assembly
python3 score.py --score --verbose             # Detailed per-dimension breakdown
python3 score.py --blind-spots                 # List topics missing from context
python3 score.py --drift                       # Compare current vs. previous scores
python3 score.py --status                      # Last score summary
python3 score.py --format json                 # Machine-readable output

Procedure

Step 1 — Score context coverage

bash
python3 score.py --score

The scorer reads MEMORY.md (full history) and compares it against what's currently accessible. Outputs a coverage score from 0–100% with a letter grade.

Step 2 — Find blind spots

bash
python3 score.py --blind-spots

Lists specific topics, entities, and decisions that exist in full history but are missing from current context — these are what the agent has effectively "forgotten."

Step 3 — Track drift over time

bash
python3 score.py --drift

Shows how coverage has changed across the last 20 scores. Identify if compaction is progressively losing more information.

Grading

GradeCoverageMeaning
A90–100%Excellent — minimal information loss
B75–89%Good — minor gaps, unlikely to cause issues
C60–74%Fair — some important context missing
D40–59%Poor — significant blind spots
F0–39%Critical — agent is operating with major gaps

State

Coverage scores and blind spot history stored in ~/.openclaw/skill-state/context-assembly-scorer/state.yaml.

Fields: last_score_at, current_score, blind_spots, score_history.

Notes

  • Read-only — does not modify context or memory
  • Topic extraction uses keyword clustering, not LLM calls
  • Entity detection uses regex patterns for file paths, URLs, class names, API endpoints
  • Decision detection looks for markers: "decided", "chose", "prefer", "always", "never"
  • Recency bias is measured as the ratio of recent-vs-old entry representation

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Context Assembly Scorer AI skill do?

Scores how well the current context represents the full conversation — detects information blind spots, stale summaries, and coverage gaps that cause the agent to forget critical details.

Why use Context Assembly Scorer on TypingMind?

Because you install it once and use it with any model. Context Assembly Scorer is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Context Assembly Scorer in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/ArchieIndian/openclaw-superpowers/tree/main/skills/openclaw-native/context-assembly-scorer. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Context Assembly Scorer?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Context Assembly Scorer?

As many as you like. As long as a model supports skills, you can use Context Assembly Scorer with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Context Assembly Scorer AI skill free?

It is published on GitHub by ArchieIndian. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇