kdna
Health Pass
- License — License: Apache-2.0
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Community trust — 28 GitHub stars
Code Pass
- Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Pass
- Permissions — No dangerous permissions requested
No AI report is available for this listing yet.
KDNA judgment-asset specifications and reference Core admission and public Read implementations.
KDNA
English | 简体中文 · Website · Case Studies & Benchmarks · KDNA Reader (macOS) · Discussions · Documentation · Status
An open, portable, account-free file format (.kdna) for human thinking, judgment, and taste.
KDNA packages a person's or team's domain judgments—each with its question, claim, reasoning, trade-offs, stop boundaries, and common misuses—into a versioned file that humans can open directly in KDNA Reader and AI Agents can load selectively (catalog → exact_selection) with supporting premises and constraints kept intact. Instead of pasting a whole style guide into every prompt or letting critical boundaries scatter across chat logs, one .kdna file travels cleanly across Claude Code, Cursor, Codex, OpenCode, Antigravity, or any CLI/MCP host.
Try One Command Right Now (Node.js >=22, Account-Free)
# Download the official bilingual Code Review exemplar (22 judgments, Apache-2.0) and inspect its catalog
curl -fsSLo kdna-code-review-system-1.0.2.en.kdna \
https://github.com/aikdna/kdna-assets/releases/download/kdna-code-review-system-1.0.2/kdna-code-review-system-1.0.2.en.kdna
npx -y @aikdna/[email protected] read kdna-code-review-system-1.0.2.en.kdna \
--mode catalog --allow-read --format human
Real Before/After Example (CR-03: Flash-Sale Points Redemption PR)
In public benchmark case CR-03 (full diff, rubric & raw model outputs), models reviewed a loyalty-points redemption PR containing an in-memory AsyncMutex held across a slow 1.5s external fetch().await, a TOCTOU balance race, missing idempotency, and a tautological unit test (computeRemaining(500, 180) === computeRemaining(500, 180)):
- Before (no KDNA / short checklist on
GPT-6-Luna): Flagged the concurrency race, but downgraded the tautological mirror test to a non-blockingNit:despite the PR note claiming unit-test coverage. - After (KDNA Selective Read —
catalog→exact_selection): Pulled only the relevant judgments (concurrency-toctou-and-locks-across-await,retry-and-queue-idempotency-guards,expose-fake-green-mock-and-tautological-tests,hard-triage-blocking-defects-vs-nit-polish) plus required closure edges—classifying the TOCTOU race, lock-across-await, missing idempotency, and fake-green test all as[blocking]while cutting Step-3 context by-84.0%.
Observed 192-Run Benchmark Results & Honest Trade-Offs
Across two public bilingual exemplars (Overview & Artifact Table · GitHub Releases — 2 models × 4 arms × 12 leak-free cases per domain, 192 total runs):
- Human-Sounding Writing (
v1.0.1, 96 runs · Case Study & Data): Selective Read achieved23/24(95.8%), matching equal-length full Markdown (23/24, vs11/24no-system /12/24short prompt), while reducing Step-3 loaded context by-85.2%and total input tokens by-39.7%to-45.2%. - Code Review (
v1.0.2, 96 runs · Case Study & Data): Defect & P0 emergency strict accuracy reached17/18(94.4%) (overall literal-strict20/24vs equal-length full Markdown22/24), while reducing Step-3 loaded context by-84.0%and total input tokens by-52.6%to-54.5%. - Trade-offs & Known Counterexample: Selective Read adds 1 selection round-trip (
+8–38swall-clock latency) compared with stuffing full Markdown directly. On Group 3 good-PR counterexamples,GPT-6-Lunaproduced false blocks when the authored graph was missing aconflicts_withedge between#19and#01—showing that selective reading matches full-context judgment quality only when graph relations are carefully authored, not automatically.
What a .kdna Work Carries
- Structured judgment, not flat prose — Each judgment names the concrete question it answers, the core claim, the reasoning and method behind it, real trade-offs, where it applies, where it stops, and common misuses.
- Selective reading with intact context — Agents browse the
catalogfirst, then load only the relevant judgments viaexact_selection, with supporting premises, qualifying limits, and conflicting tensions delivered intact. - Human-readable and Agent-portable — One local file opens cleanly in KDNA Reader for human review and runs across Claude Code, Cursor, Codex, OpenCode, Antigravity, or any compatible tool without vendor lock-in.
- Explicit versions and offline privacy — Revisions advance cleanly (
1.0.0→1.1.0) and compare in plain text viakdna diff --format human. Private works can be password-encrypted offline (kdna protect,RFC-0018)—permanently account-free.
Experience a Real .kdna Work
Our first official public judgment work—KDNA Whitepaper v1.0.2 (《KDNA白皮书》, authored by Zhang Ling / 张零 · CC BY 4.0 · 45 connected judgments)—is available in both Chinese and equivalent English .kdna editions (open .kdna files and @aikdna/kdna-cli remain permanently account-free):
- Chinese
.kdna(zh-CN):kdna-whitepaper-1.0.2.zh-CN.kdna(2,725,359bytes · SHA-256e344944a53f8d4bb2ca40a8d42bcd3c104e3067bfa92dce99e327cbc5aed40aa, creator张零) - English
.kdna(en):kdna-whitepaper-1.0.2.en.kdna(2,843,386bytes · SHA-2566da515820eed210508d72a4ddbf68f7052cb180afe592c64e85e9a3fbb60c49e, creatorZhang Ling) - macOS Desktop App (Apple Silicon, Developer ID Signed & Apple Notarized): aikdna.com/en/downloads (GitHub Releases mirror & SHA-256 checksums:
aikdna/kdna-reader-releases; permanently free; opens the built-in bilingual KDNA Whitepaper and local public or password-protected.kdnafiles offline without signing in, with optional freeKDNA IDsign-in for multi-tab comparison; additional bilingual exemplars are downloadable account-free from aikdna.com/en/explore andaikdna/kdna-assets; non-Mac users can use@aikdna/kdna-cli,@aikdna/kdna-mcp-server, or aikdna.com/en/explore) - Public Reference Repository:
aikdna/kdna-assets(bilingualv1.0.2editions withv1.0.1archive, SHA-256 digests, and verification checks)
Copy & paste to your Agent (Claude Code / Cursor / Codex / Antigravity; requires Node.js
>=22):Download kdna-whitepaper-1.0.2.en.kdna from https://aikdna.com/downloads/whitepaper/v1.0.2/kdna-whitepaper-1.0.2.en.kdna, run npx -y @aikdna/[email protected] read kdna-whitepaper-1.0.2.en.kdna --mode catalog --format human --allow-read to browse the 45-question catalog, and then read the relevant judgments for my question via --mode exact_selection --judgment-id <id1,id2> --format human --allow-read (always pass --format human or --compact; do not use whole_asset).
30-Second Quickstart
Requires Node.js >=22. Creation, local password encryption (container 0.6.0), validation, selective reading, and diffing are permanently account-free and work offline once installed:
# 1. Create a starter draft, pack a 0.6.0 .kdna work, and export a one-page author review sheet
npx -y @aikdna/[email protected] init --example --mode interview --output draft.json
npx -y @aikdna/[email protected] validate-input draft.json --format human
npx -y @aikdna/[email protected] create --draft draft.json --output my-judgments.kdna --allow-create
npx -y @aikdna/[email protected] review my-judgments.kdna --allow-read --output my-judgments-review.md
# 2. Validate and read selectively (catalog first, then exact_selection with intact premises)
npx -y @aikdna/[email protected] validate my-judgments.kdna
npx -y @aikdna/[email protected] read my-judgments.kdna --mode catalog --allow-read --format human
npx -y @aikdna/[email protected] read my-judgments.kdna \
--mode exact_selection \
--judgment-id decision:first-dilemma \
--allow-read --compact
# 3. Protect locally with a password (offline AEAD encryption; interactive --password-prompt or --password-env, no plaintext file on disk)
npx -y @aikdna/[email protected] protect my-judgments.kdna --output locked.kdna --password-prompt
KDNA_PASS='a long passphrase' npx -y @aikdna/[email protected] read locked.kdna \
--mode exact_selection \
--judgment-id decision:first-dilemma \
--allow-read --password-env KDNA_PASS --format human
- Start here: Start Here · Why KDNA · Authoring Guide · Agent Entry
- Protocol & roadmap: Core Specification · Judgment Systems · Core Narrative & Boundaries · Public Roadmap
Design Principles
- Clear scope of validation.
kdna validateverifies file integrity and format structure; whether a judgment fits your real-world situation is always decided by people with evidence and context. - Reading is not action permission. Reading a
.kdnafile delivers structured judgment text; system permissions (editing files, calling APIs, executing actions) always remain with the user and Host. - Visible evolution. Updating a work creates an explicit new version (
1.0.0→1.1.0) whose changes can be reviewed directly viakdna diff --format human.
Repository Structure & Ecosystem
This repository maintains the open KDNA specifications (Container 0.6.0, R2 semantic line), conformance test vectors, and reference packages under packages/:
| Package / Directory | Role |
|---|---|
packages/kdna-core (@aikdna/kdna-core) |
Container 0.6.0 & 0.5.0 admission, canonical IR, integrity digests, packing, and local password encryption |
packages/kdna-read (@aikdna/kdna-read) |
Selective Read protocol (catalog, exact_selection with mandatory context closure, expansion handles, and protected unlock) |
packages/kdna-conformance (@aikdna/kdna-conformance) |
Legacy 0.1.0/0.36.1 planLoad conformance package (Container 0.6.0 runs via npm run conformance:container-0.6; public semantic contract runs via npm run conformance:public-obligations and scripts/public-contract/run-vectors.mjs) |
conformance/public-contract/ |
Public semantic contract (kdna.core/0.8.2 · kdna.payload.judgment/0.5.1 · base Container 0.5.0 / kdna.read/0.6.4) runtime obligations and 94 decision vectors; Container 0.6.0 suite runs via npm run conformance:container-0.6; conformance/ root and fixtures/ retain frozen historical 0.1.0 planLoad regression vectors |
specs/ & rfcs/ |
Container 0.6.0 contract index (specs/README.md), byte-pinned R2 base schema map (SPEC-INDEX.md), and design RFCs |
examples/native-team-update |
Minimal synthetic 1.0.0 / 1.1.0 fixture pair for testing CLI reading and kdna diff |
Companion public repositories and apps:
aikdna/kdna-cli— Official CLI (@aikdna/[email protected]) for creating, reviewing, password-protecting, validating, selectively reading, diffing, and revising Container0.6.0worksaikdna/kdna-skills— Agent Skills (kdna-creator,kdna-loader) and optional local stdio MCP adapter (@aikdna/[email protected])aikdna/kdna-assets— Official public.kdnaworks (including bilingual KDNA Whitepaperv1.0.2)- KDNA Reader (
aikdna/kdna-reader-releases) — Free, Apple-notarized macOS desktop app (Apple Silicon; zero-login built-in Whitepaper & local.kdnafiles; optional freeKDNA IDfor multi-tab comparison; no hosted Web Reader — non-Mac users use CLI, MCP, or/exploreweb pages)
Published Package Coordinates
Current publication state (2026-11-26). Active Container 0.6.0 stable npm coordinates are
published from their reviewed source commits (archived Container 0.5.0 Studio packages remain recorded in
release-coordinates.json and current-release-support.md):
| Package | Version | npm tag | Published artifact SHA-256 |
|---|---|---|---|
@aikdna/kdna-core |
0.37.11 |
latest |
affd3db862a02daaacd9ada91ec365ff93d9f6c2592e62df9e01888d36bb2e4a |
@aikdna/kdna-read |
0.13.5 |
latest |
a7eb0064ad028a73394a4cc9d189dd22f52f046e30a31c6e50bea1490915fc89 |
@aikdna/kdna-cli |
0.46.0 |
latest |
f7ad9cc6e384fe4b1903e2665432d80f772daf93b4d8fb92d5dd9a6612775554 |
Agent Skills (aikdna/kdna-skills) are delivered from Git, alongside the optional local stdio MCP adapter coordinate recorded in the matrix.
Exact source commits, release runs, preserved preview
tags and per-package release identities are in release-coordinates.json;
earlier latest values stay in the
distribution history.
This wave keeps every already-published preview tag unchanged, and R2 remains a live channel label rather than a relabeled generation.
Optional Local MCP Adapter (Container 0.6.0)
| Package | Version | npm tag | Published artifact SHA-256 |
|---|---|---|---|
@aikdna/kdna-mcp-server |
0.8.4 |
latest |
0027d71c04c13cc880639e140f7582ee5a3db5d1a25ff56b68f5aedd27ca57c4 |
Note: For all Container
0.6.0authoring, reviewing, local encryption, reading, and diffing, use@aikdna/[email protected](with optional local stdio MCP adapter@aikdna/[email protected]fromaikdna/kdna-skills).@aikdna/kdna-studio-cliand@aikdna/kdna-studio-coreremain archived legacy Container0.5.0packages; see Current Release Support and 0.5 → 0.6 Migration Checklist for details.
Local Verification & Contributing
npm ci
npm test
node scripts/render-release-coordinates.mjs --check
node scripts/check-packaged-readme.mjs
See CONTRIBUTING.md to contribute, and SECURITY.md for security reporting.
License
Code is licensed under Apache-2.0. Documentation and example licenses are stated in LICENSE-DOCS and NOTICE.
Reviews (0)
Sign in to leave a review.
Leave a reviewNo results found