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.

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.

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.

Metadata

Release files for xrefkit 0.5.1

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.5.1
File Size Uploaded Provenance
xrefkit-0.5.1.tar.gz 485.6 kB With provenance Details

Built distribution (wheel)

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

Total release size: 889.4 kB

Release files / xrefkit-0.5.1.tar.gz

Download URL xrefkit-0.5.1.tar.gz
Size 485.6 kB
Tags Source
SHA-256 checksum
How to use checksums
b0398c6afd9ce191484513ddbb8997eab88b20293e6cf32f306aa6a65272cabe
BLAKE2b-256 checksum
How to use checksums
da462468afb58b905aff8372d808b93e808e536ff27efc90c7ea9900ccd0c9e4
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 Sep 27, 2026.

Transparency log

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

Download URL xrefkit-0.5.1-py3-none-any.whl
Size 403.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9aaf193dffeb84469d75e6fbf3fc28ccdd2fc69eaa380f8ff91814e8896780db
BLAKE2b-256 checksum
How to use checksums
893236a0113ad3c26bd399245468efbb66c0cb91f4faffbe90187542cd9030be
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 Sep 27, 2026.

Transparency log

Security for xrefkit 0.5.1

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.5.1.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 Sep 27, 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