Skip to main content

XRefKit

XRefKit is a framework for making AI-assisted work repeatable, reviewable, and handoff-ready.

It helps teams structure domain procedures and knowledge so that work can record evidence, preserve human judgment, and apply explicit completion checks.

Why XRefKit?

Experimental local tool: Attention Pet helps people assess capability sufficiency and lower inference-cost candidates separately. Its Model Fit / Cost Fit estimates use uncalibrated profiles; it does not measure internal attention or switch models automatically.

Codex-only preview: Attention Pet

Attention Pet is a small local companion for Codex work. It reads the current Codex chat's local session record, estimates whether the selected model meets the visible work requirements, and shows the result through a compact animated pet. It also shows lower inference-cost comparison candidates when the experimental profiles support one. The estimate is observational and does not change the Codex model, reasoning level, or chat.

It does not measure token usage. It estimates the structural complexity of the work context the AI must handle, including retained items, dependencies, constraints, decision depth, conflicts, and dispersed evidence. It does not read model-internal attention or remaining context-window capacity.

Run it from a Codex terminal in this repository so CODEX_THREAD_ID identifies the current chat:

python -m xrefkit.attention_pet serve --port 8769

Open the printed http://127.0.0.1:8769/ address in the Codex browser panel. The display follows the browser's preferred language: Japanese is used for a Japanese preference, with English as the fallback. Stop the process with Ctrl+C.

This Codex preview is bound to the chat that launched it. Selecting another chat does not move the Pet automatically; launch it again from that chat when you want a separate view. The model and reasoning dropdowns only compare estimates and do not change the active Codex settings. See the Attention Pet guide for interpretation, limitations, client integration, and API details.

Using AI for real work creates recurring operating problems:

Why XRefKit is needed

  • the AI can act from incomplete context or unsupported guesses
  • procedures, domain facts, and judgment criteria get mixed together in prompts
  • execution, checking, and handoff collapse into one opaque step
  • work becomes hard to continue across agents, humans, or sessions
  • outputs may lack evidence, closure discipline, or auditability

XRefKit provides a repository and runtime model for addressing these problems.

What it provides

  • Skills — reusable procedures expressed as SkillDefinitions
  • Knowledge — source-backed domain facts and local rules resolved by XID when a Skill run needs them
  • Workflow protocol — recorded progress, deterministic workflow-record verification, and closure checks
  • Evidence and handoffs — outputs, judgments, concerns, and decisions that remain reviewable after the work is done
  • Skill Run Dashboard — inspect recorded Skill execution state, definition identity, runtime binding, referenced XIDs, evidence, judgments, concerns, and handoffs
  • XIDs — stable references for connecting procedures, knowledge, and supporting documents

The package includes the resolver, Skill runtime, workflow controls, client tools, and an optional MCP adapter.

Current Skill authoring targets the one-document skill_definition_v1 format. Existing legacy_split_v1 Skills and unversioned historical run logs remain readable during migration. The Workflow Runtime Binding defines how instruction-derived capability, tuning, responsibility, and execution_mode are captured; these are not fixed SkillDefinition properties. Knowledge used by a Skill remains separate and is resolved from the XID catalog when needed.

The Skill Run Dashboard helps people inspect recorded XID retrieval and use together with the run's evidence before a human accepts or hands off the result. The Dashboard reports recorded state and missing observations; it does not accept output quality.

Quick start

XRefKit requires Python 3.11 or later.

python -m pip install xrefkit
xrefkit init
xrefkit --help

For local development:

python -m pip install -e .
xrefkit init

For the optional MCP server:

python -m pip install "xrefkit[mcp]"
xrefkit mcp serve --repo . --transport stdio

This command starts the optional catalog and runtime MCP adapter. This checkout does not implement management upload, staging, sealing, review, or adoption of uploaded SkillDefinition bytes into the active catalog.

To connect VS Code/Copilot, run from your target workspace:

python -m pip install "xrefkit[mcp]"
python -m xrefkit mcp setup --repo . --output .xrefkit/setup-review
python -m xrefkit mcp setup apply --repo . --source .xrefkit/setup-review

Review the generated files before applying them, open the workspace in VS Code, and start the xrefkit MCP server. In Copilot chat, ask: "Call XRefKit's get_startup_context and help me get started." The AI receives any needed legacy migration guidance; you can describe your goal without specifying Skill names. Opening VS Code alone does not guarantee an AI conversation starts.

Where to go next

Security

XRefKit does not require provider API keys to explore or install the package. Do not commit secrets, API keys, access tokens, .env files, or provider credentials. Authenticate external AI tools through their official provider mechanisms.

Repository Skill adoption and scoped source-analysis knowledge

This repository uses the audited canonical Skill sources listed in skills/repository_adoption.json. Legacy source identities remain aliases; external legacy split Skills and YAML Skill Packages remain supported. See SkillDefinition adoption. The source-analysis common XID remains stable and routes coherent criteria fragments on demand. Narrow tasks avoid unrelated bodies; full reviews retain every required axis. No similarity-based knowledge merge or deletion occurs.

Metadata

Release files for xrefkit 0.6.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xrefkit 0.6.2
File Size Uploaded Provenance
xrefkit-0.6.2.tar.gz 516.9 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for xrefkit 0.6.2
File Interpreter ABI Platform
xrefkit-0.6.2-py3-none-any.whl Python 3 none any Details

Total release size: 935.7 kB

Release files / xrefkit-0.6.2.tar.gz

Download URL xrefkit-0.6.2.tar.gz
Size 516.9 kB
Tags Source
SHA-256 checksum
How to use checksums
4d404495d9ca81fda0fedfe5da2dbfba01121e6c5ef25791ffb1e3d0b8b20322
BLAKE2b-256 checksum
How to use checksums
f20502b8f9467b2e9d499d8c9f03c78432342aa5dfa4b278dfd94804e44b8dcb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.

Transparency log

Release files / xrefkit-0.6.2-py3-none-any.whl

Download URL xrefkit-0.6.2-py3-none-any.whl
Size 418.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b1222b81e3905ba2f15ea950722e49ddaf0b4226793d6ebbf152cf107222d58f
BLAKE2b-256 checksum
How to use checksums
22b1bd6461c02e9b7772c4e644a2d638c7ceb95cd1d3b2dd0565fc1b7a4ca602
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.

Transparency log

Security for xrefkit 0.6.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for xrefkit-0.6.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page