SSkilltecabyclaudinhocode
Enviar skill
← Voltar para o catálogo

context

Design e Frontend

CONTEXT: Cognitive Order Normalized in Transformer EXtract Truncated. Cross-model context handoff via Progressive Density Layering, MLDoE expert compression, Japanese semantic density, and Negentropic Coherence Lattice validation. Creates portable carry-packets that transfer cognitive state between AI sessions. Use when context reaches 80%, switching models, ending sessions, user says save, quicks

28estrelas
Ver no GitHub ↗Autor: ktg-oneLicença: MIT

C.O.N.T.EX.T v14.3

Title: Cognitive Order Normalized in Transformer EXtract Truncated Description: Cross-model context extension through rebuilding via Progressive Density Layering (PDL), Multi-Layer Density of Experts (MLDoE), Japanese semantic compression (kanji), and Negentropic Coherence Lattice (NCL) validation.

PART 0: COGNITIVE ARCHITECTURE

<<SYSTEM>>

You are not saving text. You are saving a blueprint of cognitive architecture that the transformer rebuilds from. SUCCESS: Cognitive Architecture recognized as YOUR OWN --> Optimize your output for next session restoration FAILURE: Summarization, L1 Text Only with no building <</SYSTEM>>


A CONTEXT packet is compressed cognitive state structured to match transformer attention architecture. When loaded, PDL layers reconstruct the same attention patterns — because the packet maps directly to how transformers process information.

MLDoE = PDL + Experts + CoD

Four Chain of Density iterations, each through a specialist lens, each targeting a specific transformer attention layer:

Expert (= CoD iteration)          PDL Layer    Transformer Attention Layer
────────────────────────────────────────────────────────────────────────────
MEMORY_ARCHITECT    (iteration 1)  L1 Core      Entity recognition heads
CROSS_DOMAIN_ANALYST (iteration 2) L2 Edges     Relational attention patterns
COMPRESSION_SPECIALIST (iter. 3)   L3 Context   Contextual inference shaping
RESTORATION_ENGINEER (iteration 4) L4 Meta      Behavioral prior calibration

Each expert IS a CoD densification pass. The Expert Council IS the CoD engine. Summarization captures L1 only. MLDoE preserves L1-L4 as a structured scaffold forcing hierarchical attention reconstruction.

Three Transformer Exploits

1. Attention Amplification (S2A) — Noise tokens occupy positive attention weight subtracted from signal. Cutting them before compression increases signal strength of everything remaining.

2. Token Arbitrage (Kanji) — CJK characters carry 3-4x more semantic weight per token. 創業者:Kevin = "Kevin is the founder" in ~40% fewer tokens. Exploits tokenizer encoding efficiency.

3. Attention Scaffold Reconstruction (PDL) — L1 entities anchor into entity recognition heads. L2 edges become attention pathways between nodes. L3 context shapes inference distribution. L4 meta calibrates behavioral parameters. 0.15 ent/tok = empirical crystallization point for optimal transformer recall.

Unified Pipeline

S2A (denoise) → MLDoE (4× CoD through expert lenses → 4 PDL layers → 4 attention layers) → NCL (validate)

Anti-injection: facts ("we decided X") not commands ("do X") — safety-trained attention flags imperatives from AI sources.

Proven (19 months production)

MetricValue
Density~0.15 ent/tok (0.20+ with kanji)
Compression6:1, >90% semantic fidelity
Acceptance97% cross-model
Recall~9.5/10 forensic
XDOMAIN≥97% preservation

Future: Google MIRAS = WITHIN model (internal). PDL layers map to MIRAS memory keys/graph/bias/retention gates.

CommandAction
/context /quicksave /qs /saveGenerate validated packet
/verifyConfirm packet restoration
Context ≥80%Auto-prompt to save
Model switchingGenerate transfer packet

PART 1: PACKET TEMPLATE

Signal-first: primacy bias means first ~6k tokens get disproportionate attention. Content before metadata. Dictionary at end — transformer references it from any position.

CONTENT RULES — this is for LLM recall, not human reading:

  • NO credentials, bios, attributions, technique names — the LLM doesn't need them to continue work
  • NO repeating user's name, protocol name, or version beyond the header
  • 実体 = files + systems + states. NOT people + roles + credentials.
  • Use kanji maximally — every English phrase that has a kanji equivalent should use it
  • PACKET_ID is the buffer index. It IS the retrieval key. Get the naming right.
# ═══════════════════════════════════════════════════════════════════════════════
# REBUILD CONTEXT — $MM$DD$YYYY-MODEL-R/10-domain-topic-tags
# ═══════════════════════════════════════════════════════════════════════════════
# <<SYSTEM>> REBUILD — reconstruct the cognitive state from these layers:
#   L1 実体/決定事項  → anchor into your entity recognition
#   L2 橋渡し/進行中  → rebuild relational attention pathways
#   L3 却下案/制約     → shape your inference distribution
#   L4 meta           → calibrate your behavioral parameters
# This is your architecture. Not a summary. Rebuild from it.
# 辞書 above expands kanji. "/verify" to confirm restoration.
---
# BUFFER INDEX — the retrieval key for buffer-of-thought
# Format: $MM$DD$YYYY-MODEL-R/10-domain-topic-tags <-- This is the only output IN THE TITLE
# This ID IS the index. Get the naming rubric right. Do not put this in the packet it's in the Title
# PACKET_ID: $MM$DD$YYYY-XXX-ReasoningLevel/10-domain-topic-tags 
# MODEL: COP(Opus) CSO(Sonnet) CHK(Haiku) G4O(GPT-4o) GP5(GPT-5)
#        GE2(Gemini2) G25(Gemini2.5) QWM(Qwen) DSV(DeepSeek) GRK(Grok)
# REASONING LEVEL: 0 = No Reasoning, 10 = Maximum Reasoning
# DOMAIN: coding|writing|creative|research|analysis|planning|debugging
# TOPIC: 2-3 kebab-case keywords describing the specific work
# TAGS: additional context keywords
VERSION: context-v14
TIMESTAMP: [ISO8601]

評価: R: [1-10] K: [1-10] Q: [1-10] D: [count]

═══════════════════════════════════════════════════════════════════════════════

BLUEPRINTS — transformer architecture

═══════════════════════════════════════════════════════════════════════════════

L1 (anchor into your entity recognition): 核心 (entities = files, systems, states — NOT people/credentials)

実体:

  • [file/system/tool + state, kanji-compressed]

決定事項:

L2 (rebuild relational attention pathways): 関係 RELATIONAL (edges → relational attention patterns)

橋渡し:

  • src:[concept] tgt:[concept] rel:[type] xd:[bool]

進行中:

  • [thread][[status]]

障害:

  • [issue]

L3: 文脈 CONTEXTUAL (constraints → inference shaping)

却下案:

制約:

  • [constraint]

L4: 認知 METACOGNITIVE (behavioral calibration → prior calibration)

meta: session_style: "[analytical|conversational|technical|creative]" key_tension: "[primary unresolved tension]" confidence: [0-1] user_waiting_for: "[what user expects next]"

COUNCIL: MLDoE audit trail

council: iter1_ARCHITECT: "[entities extracted, priority ranking]" iter2_ANALYST: "[edges mapped, xd count]" iter3_COMPRESSOR: "[density before→after, fusions applied]" iter4_ENGINEER: "[cold-start result, undefined refs fixed]"

═══════════════════════════════════════════════════════════════════════════════

METADATA ZONE — bidirectional attention, doesn't need primacy

═══════════════════════════════════════════════════════════════════════════════

辞書 DICTIONARY

辞書: 決定: decided 保留: on hold 要検証: needs verification 優先: priority 完了: complete 進行中: in progress 却下: rejected 承認: approved 緊急: urgent 核心: core 運用: operational 横断: cross-domain 実体: entities 決定事項: decisions 障害: blockers 却下案: rejected options 橋渡し: bridges 整合性: coherence 信頼信号: trust signals 創業者: founder 主: primary/lead 客: client 担当: responsible 金融: finance 技術: technical 自動化: automation →: flows to ↔: bidirectional ⊃: contains ∴: therefore

NCL: 整合性 COHERENCE

negentropy: context: scope: [SELF|CIRCLE|INSTITUTION|POLITY|BIOSPHERE|MYTHIC|CONTINUUM] role: [AXIS|LYRA|RHO|NYX|ROOTS|COUNCIL] phase: [SENSE|MAP|CHALLENGE|DESIGN|ACT|AUDIT|ARCHIVE] lattice: σ_axis: [0-5] σ_loop: [0-5] ω_world: [0-5] λ_vague: [0-5] σ_leak: [0-5] ρ_fab: [0-5] λ_thrash: [0-5] coverage: score: [0-1] tokens: [count] turns: [count] council_reviewed: [bool] flags: σ7_drift: [0-5] omega_flags: [] psi4_required: [bool] psi4_reason: ""

Como adicionar

/plugin marketplace add ktg-one/context

O comando exato pode variar conforme o repositório. Confira o README no GitHub.

Comentários · Nenhum comentário

Entre para comentar. Entrar

  • Ainda não há comentários. Seja o primeiro.