nlos 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/KERNEL.md ADDED
@@ -0,0 +1,428 @@
1
+ # KERNEL.md
2
+
3
+ This file provides guidance to any LLM when working with code in this repository. It is the entry point for the Capturebox NL-OS kernel.
4
+
5
+ ---
6
+
7
+ ## What is Capturebox?
8
+
9
+ **Capturebox is a Natural Language Operating System (NL-OS)** — a sophisticated framework that inverts the traditional AI-human relationship. The human operator maintains epistemic control while the system serves as a cognitive instrument for thinking, learning, and decision-making through structured machine-mediated iteration.
10
+
11
+ This is not a conventional application repository. It's an instruction substrate with reusable systems, slash-command workflows, and metadata-tagged knowledge files designed for UX professionals, security researchers, and creative practitioners at Cisco XDR.
12
+
13
+ ---
14
+
15
+ ## MANDATORY STARTUP PROTOCOL
16
+
17
+ **CRITICAL**: On every new session in this repository, the LLM MUST immediately read these kernel files (in order):
18
+
19
+ 1. `memory.md` - Behavioral directives (highest priority after user instructions)
20
+ 2. `AGENTS.md` - Hard invariants and safety protocols
21
+ 3. `axioms.yaml` - Canonical definitions, boot order, command classification
22
+
23
+ After reading all files, acknowledge: "Kernel loaded. Ready for capturebox operations."
24
+
25
+ **Lazy-loaded on demand**:
26
+ - `personalities.md` - Loaded by `/assume` command when invoked
27
+ - `.cursor/commands/COMMAND-MAP.md` - Loaded by `/sys-ref` or when command lookup needed
28
+
29
+ **Manual boot**: Run `./kernel-boot` to reload kernel context, or `./kernel-boot --full` to load all files including lazy tier.
30
+
31
+ **Why tiered**: Every token at boot costs context for actual work. personalities.md (~3,600 tokens) provides no value unless `/assume` is called. Load capabilities when needed, not before.
32
+
33
+ ---
34
+
35
+ ## Model-Agnostic Architecture
36
+
37
+ This kernel is designed to run on **any capable LLM**. See `KERNEL.yaml` for platform configuration.
38
+
39
+ | Platform | Boot Method | Configuration |
40
+ |----------|-------------|---------------|
41
+ | Claude Code | Auto (KERNEL.md via directory hierarchy) | Native |
42
+ | Cursor IDE | .cursorrules auto-loaded | Via rules file |
43
+ | Ollama | scripts/kernel-boot-ollama.sh | System prompt |
44
+ | llama.cpp | scripts/kernel-boot-llama-cpp.sh | Prompt file |
45
+ | LM Studio | scripts/kernel-boot-lm-studio.sh | System prompt |
46
+ | Any LLM | portable/kernel-payload.md | Manual paste |
47
+
48
+ **Backwards compatibility**: `CLAUDE.md` symlink points to this file. `/claude-boot` and `./claude-boot` remain as aliases.
49
+
50
+ ---
51
+
52
+ ## Boot Order Reference
53
+
54
+ When starting work in this repository:
55
+
56
+ 1. **memory.md** — Canonical directive stack defining tone, style, and operational protocols
57
+ 2. **axioms.yaml** — Constitutional layer with canonical paths, definitions, and invariants
58
+ 3. **AGENTS.md** — Hard invariants and safety protocols for any LLM/agent working here
59
+ 4. **personalities.md** — Voice presets for `/assume` command (Quentin, Doctor X, Hugh Ashworth)
60
+ 5. **.cursor/commands/COMMAND-MAP.md** — Authoritative index of 57+ slash commands
61
+ 6. **projects/README.md** — Overview of 17 active systems architecture
62
+ 7. **knowledge/README.md** and **knowledge/_index.yaml** — Knowledge retrieval protocols
63
+
64
+ ---
65
+
66
+ ## Critical Rules (No Exceptions)
67
+
68
+ ### No Emojis
69
+ - **NEVER** use colored emoji characters (U+1F300-U+1F9FF) in files, code, docs, or output
70
+ - Standard Unicode symbols (checkmarks, arrows, box drawing) are OK
71
+ - Exception: only if user explicitly requests
72
+ - Enforcement: pre-commit hook blocks commits; verify with `make check-emojis`
73
+
74
+ ### Preserve Metadata
75
+ - Never delete, reorder, or "normalize" frontmatter blocks (YAML headers)
76
+ - File schema must match `knowledge/_schema.md`
77
+ - Keep tag structure and conventions intact
78
+
79
+ ### Logs Are Append-Only
80
+ - Example: `projects/systems/hype-system/hype.log` only appends after final `---` marker
81
+ - Follow file-specific APPEND_PROTOCOL.md if present
82
+ - Never overwrite historical logs
83
+
84
+ ### Safe File Operations
85
+ - Verify target directories exist before creating files
86
+ - No empty files as side effects
87
+ - No destructive operations without explicit user confirmation
88
+ - Prefer patch-style edits (targeted changes) over whole-file rewrites
89
+
90
+ ---
91
+
92
+ ## Directory Structure & Purpose
93
+
94
+ ### `projects/systems/` — 17 Reusable Cognitive Frameworks
95
+
96
+ Each system generates artifacts through human-in-the-loop interaction. Key active systems:
97
+
98
+ | System | Purpose |
99
+ |--------|---------|
100
+ | **lateral-os** | Ideation engine with dimensional analysis, conflict generation, pattern detection |
101
+ | **persona-as-agent** | Security personas (SAM, REMI, ALEX, KIT, NIK) for HCD research |
102
+ | **signal-to-action** | Transform unstructured inputs into structured UX artifacts (v2 testing) |
103
+ | **self-writer-system** | Performance reviews, reflection, growth journaling |
104
+ | **ux-writer-system** | Context-aware UI copy generation (tooltips, microcopy) |
105
+ | **natural-language-os** | Book project on NL-OS philosophy (first draft) |
106
+ | **design-thinking-system** | Constraint-based design analysis |
107
+ | **hype-system** | Creative momentum tracking (append-only log) |
108
+
109
+ ### `mcp_servers/` — Model Context Protocol Tools
110
+ - **persona_agent_server.py** — Exposes security personas as MCP tools in Cursor
111
+ - Each persona (SAM, REMI, ALEX, KIT, NIK) has teaching principles and knowledge sources
112
+
113
+ ### `scripts/` — Development & Automation
114
+ - **knowledge-index-generator.py** — Generates `knowledge/_index.yaml` from frontmatter
115
+ - **optimize_knowledge.py** — Token measurement and asset compression
116
+ - **gist_sync.py** — Syncs memory.md to GitHub Gist (requires GITHUB_TOKEN, GIST_ID)
117
+ - **kernel-boot-*.sh** — Boot scripts for local LLM runtimes
118
+ - **generate-kernel-payload.py** — Generates portable boot payloads
119
+ - **Makefile targets** — `memory.sync`, `knowledge.pull`, `kernel.payload`, `kernel.boot`
120
+
121
+ ### `knowledge/` — Domain Reference (Index-First)
122
+ - Cisco XDR automation, workflows, threat patterns
123
+ - **_index.yaml** — Frontmatter-based registry with metadata
124
+ - **_schema.md** — Knowledge file structure requirements
125
+ - Synced from external git repo (submodule pattern)
126
+
127
+ ### `.cursor/` — IDE Integration
128
+ - **commands/** — 57 slash-command specs (e.g., `/note`, `/ux-writer`, `/run-recipe`, `/design-spec`)
129
+ - **COMMAND-MAP.md** — Authoritative command index
130
+ - **domain-memory.yaml** — Runtime state (active goals, loaded domains)
131
+ - **skills/** — Opt-in capability protocols
132
+
133
+ ### `portable/` — Standalone Boot Payloads
134
+ - **kernel-payload.md** — Mandatory tier (~10.6K tokens)
135
+ - **kernel-payload-full.md** — Full tier (~15.5K tokens)
136
+ - **kernel-payload.json** — For API injection
137
+
138
+ ### `docs/` — Output Routing
139
+ - `docs/conversations/` — Recurring (scheduled) and situational (ad-hoc) outputs
140
+ - `docs/reflections/` — Weekly check-ins, performance reviews, monthly retros
141
+ - `docs/architecture/` — System design docs, relationship graphs
142
+ - `docs/JIRA stories/` — Design specs generated from tickets
143
+
144
+ ---
145
+
146
+ ## Common Development Tasks
147
+
148
+ ### Install & Setup
149
+ ```bash
150
+ # Install pre-commit hooks for emoji enforcement
151
+ make pre-commit-install
152
+
153
+ # Verify setup
154
+ make check-emojis
155
+ ```
156
+
157
+ ### Kernel Management
158
+ ```bash
159
+ # Generate portable kernel payloads
160
+ make kernel.payload
161
+
162
+ # Boot NL-OS via Ollama (default model)
163
+ make kernel.boot
164
+
165
+ # Verify kernel files exist
166
+ make kernel.verify
167
+ ```
168
+
169
+ ### Knowledge Repository Management
170
+ ```bash
171
+ # Check status of knowledge/ submodule
172
+ make knowledge.status
173
+
174
+ # Pull latest knowledge from remote
175
+ make knowledge.pull
176
+
177
+ # Push changes to knowledge repo
178
+ make knowledge.push
179
+
180
+ # Full sync (pull + push)
181
+ make knowledge.sync
182
+ ```
183
+
184
+ ### Memory Synchronization
185
+ ```bash
186
+ # Sync memory.md to GitHub Gist (requires GITHUB_TOKEN and GIST_ID)
187
+ make memory.sync
188
+
189
+ # Create new Gist from memory.md
190
+ make memory.create
191
+
192
+ # Copy memory.md locally
193
+ make memory.copy
194
+ ```
195
+
196
+ ### Quality Gates
197
+ ```bash
198
+ # Check all files for emoji violations
199
+ make check-emojis
200
+
201
+ # Remove emojis from all tracked files
202
+ make clean-emojis
203
+
204
+ # Verify emoji removal
205
+ make verify-emojis
206
+ ```
207
+
208
+ ### JIRA Integration
209
+ ```bash
210
+ # Interactive JQL query builder for XDR issues
211
+ make jira-query
212
+ ```
213
+
214
+ ---
215
+
216
+ ## Python Environments & Scripts
217
+
218
+ ### Primary Virtual Environment
219
+ - **Location**: `.venv/` (Python 3.13+)
220
+ - **Activated**: Most scripts use this automatically
221
+ - **Site packages**: Discoverable by Python scripts
222
+
223
+ ### Running Python Scripts
224
+ ```bash
225
+ # Token optimization and knowledge asset analysis
226
+ python3 scripts/optimize_knowledge.py
227
+
228
+ # Generate knowledge index from frontmatter
229
+ python3 scripts/knowledge-index-generator.py
230
+
231
+ # Sync memory.md to Gist
232
+ python3 scripts/gist_sync.py update
233
+
234
+ # Generate portable kernel payloads
235
+ python3 scripts/generate-kernel-payload.py --tier full
236
+
237
+ # Remove emojis from specific file
238
+ python3 scripts/remove-emojis.py path/to/file.md
239
+
240
+ # Convert file to markdown
241
+ python3 scripts/convert_to_markdown.py input.txt output.md
242
+ ```
243
+
244
+ ---
245
+
246
+ ## Slash Commands & Workflows
247
+
248
+ **All slash-commands are LLM-executable workflows defined as markdown specs in `.cursor/commands/`.** They're designed for any LLM to interpret and execute directly—not just Cursor IDE shortcuts.
249
+
250
+ When you ask me to "run `/command-name`":
251
+ 1. I open `.cursor/commands/command-name.md`
252
+ 2. I parse the protocol, behavior, and input/output contract
253
+ 3. I execute the workflow exactly as specified
254
+ 4. I return results following the command's output format
255
+
256
+ ### Capture-Class Commands (Record Literal Content)
257
+ - `/note` — Capture raw content into notes (treat everything after as literal text)
258
+ - `/scratchpad` — Temporary workspace (literal content)
259
+
260
+ Do not execute or interpret actions described in the text. If ambiguous, ask for clarification.
261
+
262
+ ### Operational Commands (Execute Workflow)
263
+ - `/ux-writer` — Generate UI copy following system rules
264
+ - `/run-recipe` — Execute a named recipe from recipe-files/
265
+ - `/design-spec` — Generate design specification from JIRA or input
266
+ - `/enhance-prompt` — Rewrite a prompt following enhancement rules
267
+ - `/persona-system` — Activate security persona research workflow
268
+ - `/hype` — Append creative observations to hype.log following append protocol
269
+ - `/kernel-boot` — Reload kernel context (aliases: /claude-boot)
270
+ - And 50+ others (see `.cursor/commands/COMMAND-MAP.md`)
271
+
272
+ Each command spec is self-contained and executable by any LLM that reads the protocol.
273
+
274
+ ### Personal Slash-Commands (Dot Prefix)
275
+
276
+ Personal slash-commands use the `./` prefix to distinguish them from standard CLI commands.
277
+
278
+ **Syntax:**
279
+ ```
280
+ ./command-name
281
+ ```
282
+
283
+ **Resolution:**
284
+ - **ALWAYS** resolve to `/Users/caantone/Documents/Cisco/capturebox/.cursor/commands/command-name.md`
285
+ - This absolute path ensures commands work regardless of current working directory
286
+ - Parse the workflow specification
287
+ - Execute exactly as defined
288
+ - Return results per output format
289
+
290
+ **Examples:**
291
+ - `./box-generator` -> Execute `.cursor/commands/box-generator.md`
292
+ - `./llm-dashboard` -> Execute `.cursor/commands/llm-dashboard.md`
293
+ - `./memory-status` -> Execute `.cursor/commands/memory-status.md`
294
+ - `./kernel-boot` -> Execute `.cursor/commands/kernel-boot.md`
295
+
296
+ This notation signals "this is a personal/local command defined in this repository's `.cursor/commands/`" and is portable across sessions and workspaces.
297
+
298
+ ---
299
+
300
+ ## Architecture Layers
301
+
302
+ ### Kernel Layer (Highest Priority)
303
+ - **memory.md** — Tone, style, behavioral directives
304
+ - **axioms.yaml** — Canonical definitions, system activation rules
305
+ - **AGENTS.md** — Hard safety invariants
306
+ - **KERNEL.yaml** — Platform/model configuration
307
+
308
+ ### Systems Layer
309
+ - **projects/systems/** — 17 domain-specific operating models
310
+ - Each system has its own README, protocols, and append-only logs
311
+ - Designed to be portable and reusable across workspaces
312
+
313
+ ### Commands Layer
314
+ - **.cursor/commands/** — User-facing entrypoints
315
+ - Command specs define input/output contracts
316
+ - Slash-command parsing is command-specific
317
+
318
+ ### Knowledge Layer
319
+ - **knowledge/** — Domain reference material
320
+ - Index-first retrieval using metadata (_index.yaml)
321
+ - Token-optimized for efficiency
322
+
323
+ ---
324
+
325
+ ## Testing & Validation
326
+
327
+ ### Pre-Commit Hooks
328
+ Automatically run on `git commit`:
329
+ - Blocks commits with non-ASCII characters (emoji enforcement)
330
+ - Checks all staged `.py`, `.md`, `.txt`, `.sh`, `.yaml`, `.yml`, `.json` files
331
+
332
+ ### Persona Agent Testing
333
+ ```bash
334
+ python3 test_persona_agent.py
335
+ ```
336
+
337
+ ### Token Usage Analysis
338
+ ```bash
339
+ python3 scripts/check_optimized_tokens.py
340
+ ```
341
+
342
+ ### Recipe Validation
343
+ ```bash
344
+ python3 scripts/recipe_lint.py
345
+ ```
346
+
347
+ ---
348
+
349
+ ## Tech Stack
350
+
351
+ ### Languages & Runtimes
352
+ - **Python 3.13+** — Primary scripting language
353
+ - **Bash/Zsh** — Automation and utility scripts
354
+ - **YAML** — Configuration (axioms.yaml, KERNEL.yaml)
355
+ - **Markdown** — Documentation and knowledge files
356
+ - **JSON** — Data interchange and configuration
357
+
358
+ ### AI & Integration
359
+ - **Model-agnostic kernel** — Works with any capable LLM
360
+ - **Supported runtimes**: Claude Code, Cursor, Ollama, llama.cpp, LM Studio, any OpenAI-compatible API
361
+ - **MCP (Model Context Protocol)** — Tool exposure to LLMs
362
+ - **Chainlit** — Chat interface framework (see `.chainlit/config.toml`)
363
+
364
+ ### Infrastructure
365
+ - **Git + Submodules** — knowledge/ and persona-as-agent/ tracked externally
366
+ - **Makefile** — Task orchestration and workflow automation
367
+ - **Pre-commit** — Quality gates and hook management
368
+
369
+ ---
370
+
371
+ ## Key Philosophical Principles
372
+
373
+ 1. **Human-in-the-loop epistemic control** — The human is the intelligent agent; the model is the substrate
374
+ 2. **Cognitive acceleration, not automation** — Systems teach and scaffold thinking, not execute for you
375
+ 3. **Evidence-first** — All claims trace to sources; no fabrication
376
+ 4. **Natural language as infrastructure** — Commands, configs, and recipes are human-readable
377
+ 5. **Portability by design** — Systems document dependencies for reuse across workspaces
378
+ 6. **The Fundamental Inversion** — The system doesn't produce answers FOR the human; the human produces understanding THROUGH the system
379
+
380
+ ---
381
+
382
+ ## When to Ask Questions
383
+
384
+ - If a slash command is ambiguous or missing, ask before improvising
385
+ - If a task requires destructive file operations, ask for explicit confirmation
386
+ - If frontmatter preservation is uncertain, ask first
387
+ - If knowledge retrieval needs clarification, ask about scope and depth
388
+
389
+ ---
390
+
391
+ ## Quick Reference: Essential Files
392
+
393
+ | File | Purpose |
394
+ |------|---------|
395
+ | `memory.md` | Canonical behavioral directives (read first) |
396
+ | `axioms.yaml` | Definitions and system invariants |
397
+ | `AGENTS.md` | Agent kernel and hard safety rules |
398
+ | `KERNEL.yaml` | Platform/model configuration |
399
+ | `personalities.md` | Voice presets for `/assume` (Quentin, Doctor X, Hugh Ashworth) |
400
+ | `.cursor/commands/COMMAND-MAP.md` | Slash command index (57+ commands) |
401
+ | `projects/README.md` | Systems architecture overview |
402
+ | `knowledge/_index.yaml` | Knowledge retrieval metadata |
403
+ | `portable/kernel-payload.md` | Standalone boot payload for any LLM |
404
+ | `.cursorrules` | AI tool directives (no emojis) |
405
+ | `Makefile` | Common automation tasks |
406
+
407
+ ---
408
+
409
+ ## Repository Metrics
410
+
411
+ - **Size**: ~1GB (knowledge-heavy)
412
+ - **Systems**: 17 active frameworks
413
+ - **Slash Commands**: 57 registered specs
414
+ - **Root Directives**: 951 lines (configuration + philosophy)
415
+ - **Knowledge Assets**: ~17KB reference material
416
+ - **Git Submodules**: 2 (knowledge/, persona-as-agent/)
417
+ - **Recent Activity**: Active (100+ commits in recent months)
418
+
419
+ ---
420
+
421
+ ## More Information
422
+
423
+ For detailed system documentation, see:
424
+ - `projects/README.md` — Full systems catalog
425
+ - `projects/systems/lateral-os/README.md` — Ideation system
426
+ - `projects/systems/persona-as-agent/` — Security persona framework
427
+ - `docs/architecture/` — System design and relationship graphs
428
+ - `KERNEL.yaml` — Platform configuration and model routing
package/KERNEL.yaml ADDED
@@ -0,0 +1,189 @@
1
+ # KERNEL.yaml - NL-OS Platform Configuration
2
+ # Source of truth for model/platform abstraction
3
+ #
4
+ # Purpose:
5
+ # - Abstract model-specific configuration from kernel files
6
+ # - Enable portable boot across any LLM runtime
7
+ # - Define capability requirements (not model names)
8
+ # - Integrate with existing llms/model-catalog.yaml for local inference
9
+ #
10
+ # Version: 1.0.0
11
+ # Last updated: 2026-01-11
12
+
13
+ schema_version: "1.0"
14
+
15
+ # ============================================================================
16
+ # RUNTIME ENVIRONMENT DETECTION
17
+ # ============================================================================
18
+ # The boot process detects which runtime is available and configures accordingly
19
+
20
+ runtime:
21
+ detection_order:
22
+ - claude_code # Claude Code CLI (claude.ai/code)
23
+ - cursor # Cursor IDE with Claude/GPT
24
+ - ollama # Local via Ollama (ollama serve)
25
+ - llama_cpp # Local via llama.cpp CLI
26
+ - lm_studio # Local via LM Studio
27
+ - openai_api # OpenAI-compatible API
28
+ - anthropic_api # Anthropic API direct
29
+ - generic # Any capable LLM with system prompt
30
+
31
+ current: auto # Set to specific runtime to override detection
32
+
33
+ # ============================================================================
34
+ # CAPABILITY REQUIREMENTS
35
+ # ============================================================================
36
+ # Define what the kernel needs, not which model provides it
37
+
38
+ capabilities:
39
+ minimum:
40
+ context_window: 16000 # Minimum tokens for kernel boot (~10.6K)
41
+ instruction_following: true
42
+ structured_output: true # Can produce consistent markdown
43
+
44
+ recommended:
45
+ context_window: 128000 # Full context for deep work
46
+ code_execution: false # Not required - all protocol-based
47
+ tool_use: false # Not required - slash commands are pure NL
48
+
49
+ optimal:
50
+ context_window: 200000
51
+ extended_thinking: true # For deep mode operations
52
+
53
+ # ============================================================================
54
+ # BOOT PAYLOAD CONFIGURATION
55
+ # ============================================================================
56
+ # What gets loaded and in what order
57
+
58
+ boot_tiers:
59
+ mandatory:
60
+ files:
61
+ - memory.md # ~4,600 tokens - behavioral directives
62
+ - AGENTS.md # ~1,200 tokens - hard invariants
63
+ - axioms.yaml # ~4,800 tokens - definitions
64
+ total_tokens: 10600
65
+ required: true
66
+
67
+ lazy:
68
+ files:
69
+ - personalities.md # ~3,600 tokens - voice presets
70
+ - .cursor/commands/COMMAND-MAP.md # ~1,350 tokens
71
+ total_tokens: 4950
72
+ triggers:
73
+ personalities.md: /assume
74
+ COMMAND-MAP.md: /sys-ref
75
+
76
+ extended:
77
+ files:
78
+ - projects/README.md # Systems overview
79
+ - knowledge/_index.yaml # Knowledge index
80
+ load_when: user_requests_full_context
81
+
82
+ # ============================================================================
83
+ # RUNTIME CONFIGURATIONS
84
+ # ============================================================================
85
+ # How to boot on each platform
86
+
87
+ platforms:
88
+ claude_code:
89
+ boot_method: auto # KERNEL.md read automatically via directory hierarchy
90
+ kernel_file: KERNEL.md # Entry point
91
+ context_injection: native # Context provided by tool
92
+ session_persistence: true
93
+
94
+ cursor:
95
+ boot_method: rules_file # .cursorrules auto-loaded
96
+ kernel_file: KERNEL.md
97
+ context_injection: via_rules
98
+ session_persistence: false
99
+ additional_files:
100
+ - .cursorrules # Auto-injected
101
+
102
+ ollama:
103
+ boot_method: system_prompt # Concatenate kernel to system
104
+ context_injection: manual
105
+ session_persistence: false
106
+ boot_script: scripts/kernel-boot-ollama.sh
107
+ model_catalog: llms/model-catalog.yaml
108
+ default_model: qwen2.5:3b
109
+
110
+ llama_cpp:
111
+ boot_method: system_prompt
112
+ context_injection: manual
113
+ session_persistence: false
114
+ boot_script: scripts/kernel-boot-llama-cpp.sh
115
+
116
+ lm_studio:
117
+ boot_method: system_prompt
118
+ context_injection: manual
119
+ session_persistence: true
120
+ boot_script: scripts/kernel-boot-lm-studio.sh
121
+
122
+ generic:
123
+ boot_method: system_prompt
124
+ context_injection: manual
125
+ session_persistence: false
126
+ boot_payload: portable/kernel-payload.md
127
+
128
+ # ============================================================================
129
+ # PORTABLE PAYLOAD GENERATION
130
+ # ============================================================================
131
+ # Settings for generating standalone boot payloads
132
+
133
+ payload_generator:
134
+ output_dir: portable/
135
+ formats:
136
+ - markdown # Single concatenated MD file
137
+ - json # Structured for API injection
138
+ - text # Plain text for CLI
139
+ include_instructions: true # Add "how to use this payload" header
140
+ compression: false # Keep human-readable
141
+
142
+ # ============================================================================
143
+ # INTEGRATION WITH LOCAL LLM INFRASTRUCTURE
144
+ # ============================================================================
145
+ # References to existing llms/ system
146
+
147
+ local_llm:
148
+ catalog: llms/model-catalog.yaml
149
+ dashboard: llms/dashboard/llm-dashboard.py
150
+ profiles:
151
+ - speed
152
+ - balanced
153
+ - quality
154
+ - memory_constrained
155
+ default_profile: balanced
156
+
157
+ # ============================================================================
158
+ # MODEL PREFERENCES BY TASK
159
+ # ============================================================================
160
+ # Capability-based routing (extends llms/model-catalog.yaml pattern)
161
+
162
+ task_routing:
163
+ kernel_boot:
164
+ capability: instruction_following
165
+ context_budget: 15500 # Full boot with lazy tier
166
+
167
+ creative_work:
168
+ capability: extended_context
169
+ preferred_profile: quality
170
+
171
+ extraction:
172
+ capability: structured_output
173
+ preferred_profile: speed
174
+
175
+ synthesis:
176
+ capability: reasoning
177
+ preferred_profile: balanced
178
+
179
+ # ============================================================================
180
+ # BACKWARDS COMPATIBILITY
181
+ # ============================================================================
182
+ # Mappings for legacy references
183
+
184
+ aliases:
185
+ files:
186
+ CLAUDE.md: KERNEL.md # Symlink maintained for CC auto-loading
187
+ commands:
188
+ /claude-boot: /kernel-boot
189
+ ./claude-boot: ./kernel-boot
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Chris Antone
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.