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.

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.6.0

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.0
File Size Uploaded Provenance
xrefkit-0.6.0.tar.gz 488.8 kB With provenance Details

Built distribution (wheel)

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

Total release size: 894.7 kB

Release files / xrefkit-0.6.0.tar.gz

Download URL xrefkit-0.6.0.tar.gz
Size 488.8 kB
Tags Source
SHA-256 checksum
How to use checksums
fb02dae61b49da94cbea7a283bfe41a527d5386defeff9af394d8b3dfbaffe96
BLAKE2b-256 checksum
How to use checksums
b80e55cb048585bf749e2c63134d578ac4eceefae19d05b792cc4631653f70c6
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.6.0-py3-none-any.whl

Download URL xrefkit-0.6.0-py3-none-any.whl
Size 405.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
be922d5c139e37a2b86cc21245891d20992018b679bc130358362db0cc22575a
BLAKE2b-256 checksum
How to use checksums
4868e2b3b06577f077638cae289c0aca884f042e6caa41e02446f70498cbb0b9
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.6.0

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.0.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