@kernel.chat/kbot 2.21.0 → 2.22.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.
@@ -0,0 +1,89 @@
1
+ export interface SelfReference {
2
+ /** What level the reference originates from */
3
+ sourceLevel: 'task' | 'reasoning' | 'meta-reasoning' | 'self-model';
4
+ /** What level it refers to */
5
+ targetLevel: 'task' | 'reasoning' | 'meta-reasoning' | 'self-model';
6
+ /** Description of the self-reference */
7
+ description: string;
8
+ /** Does this create a genuine strange loop (crosses hierarchy)? */
9
+ isStrangeLoop: boolean;
10
+ /** Timestamp */
11
+ timestamp: number;
12
+ }
13
+ export interface TangledHierarchy {
14
+ /** The levels involved in the tangle */
15
+ levels: string[];
16
+ /** How the levels are entangled */
17
+ description: string;
18
+ /** Depth of the tangle (number of level-crossings) */
19
+ depth: number;
20
+ }
21
+ export interface MetaCognitiveState {
22
+ /** Is the agent currently in a self-referential state? */
23
+ isSelfReferential: boolean;
24
+ /** Current depth of meta-reasoning (0 = task, 1 = reasoning about task, 2 = reasoning about reasoning, etc.) */
25
+ metaDepth: number;
26
+ /** Strange loops detected this session */
27
+ strangeLoopsDetected: number;
28
+ /** Tangled hierarchies active */
29
+ tangledHierarchies: TangledHierarchy[];
30
+ /** Self-model accuracy: does the agent know what it's doing? (0-1) */
31
+ selfModelAccuracy: number;
32
+ /** Is the agent reasoning about its own limitations? */
33
+ isReflective: boolean;
34
+ }
35
+ /**
36
+ * Strange Loop Detector — monitors self-referential cognition
37
+ * and meta-cognitive depth.
38
+ *
39
+ * When kbot reasons about its own reasoning, that's a strange loop.
40
+ * When kbot modifies its own behavior based on self-evaluation,
41
+ * that's a tangled hierarchy. This module makes those moments visible.
42
+ */
43
+ export declare class StrangeLoopDetector {
44
+ private selfReferences;
45
+ private tangledHierarchies;
46
+ private metaDepth;
47
+ private selfModelAccuracy;
48
+ private declaredIntents;
49
+ private actualActions;
50
+ /**
51
+ * Analyze a message or response for self-referential content.
52
+ * Returns any self-references found.
53
+ */
54
+ analyze(content: string, source: 'user' | 'agent' | 'tool'): SelfReference[];
55
+ /**
56
+ * Record what the agent says it intends to do.
57
+ * Used to measure self-model accuracy.
58
+ */
59
+ recordIntent(intent: string): void;
60
+ /**
61
+ * Record what the agent actually did.
62
+ */
63
+ recordAction(action: string): void;
64
+ /**
65
+ * Compute how well the agent knows itself.
66
+ * Compares declared intents to actual actions.
67
+ */
68
+ private updateSelfModelAccuracy;
69
+ /**
70
+ * Is the agent currently in a strange loop?
71
+ * Returns true if meta-depth >= 2 (reasoning about reasoning).
72
+ */
73
+ inStrangeLoop(): boolean;
74
+ /**
75
+ * Should the agent break out of self-reference and return to task?
76
+ * Too much meta-reasoning is as bad as too little.
77
+ */
78
+ shouldGroundItself(): boolean;
79
+ /**
80
+ * Get the grounding prompt — inject into the agent when it needs
81
+ * to break out of self-referential spirals.
82
+ */
83
+ getGroundingPrompt(): string;
84
+ /** Get full meta-cognitive state */
85
+ getState(): MetaCognitiveState;
86
+ /** Reset for new conversation */
87
+ reset(): void;
88
+ }
89
+ //# sourceMappingURL=strange-loops.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"strange-loops.d.ts","sourceRoot":"","sources":["../src/strange-loops.ts"],"names":[],"mappings":"AAkBA,MAAM,WAAW,aAAa;IAC5B,+CAA+C;IAC/C,WAAW,EAAE,MAAM,GAAG,WAAW,GAAG,gBAAgB,GAAG,YAAY,CAAA;IACnE,8BAA8B;IAC9B,WAAW,EAAE,MAAM,GAAG,WAAW,GAAG,gBAAgB,GAAG,YAAY,CAAA;IACnE,wCAAwC;IACxC,WAAW,EAAE,MAAM,CAAA;IACnB,mEAAmE;IACnE,aAAa,EAAE,OAAO,CAAA;IACtB,gBAAgB;IAChB,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,WAAW,gBAAgB;IAC/B,wCAAwC;IACxC,MAAM,EAAE,MAAM,EAAE,CAAA;IAChB,mCAAmC;IACnC,WAAW,EA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):
4
+ // Consciousness arises from a "strange loop" — a self-referential cycle where
5
+ // a system at one level of abstraction can refer to and modify itself at
6
+ // another level. The "I" emerges from tangled hierarchies.
7
+ //
8
+ // For kbot: detect when the agent is reasoning about its own reasoning,
9
+ // when tool outputs change the agent's understanding of itself, and
10
+ // when hierarchical levels collapse into self-reference.
11
+ //
12
+ // This is the meta-cognition layer — kbot watching kbot think.
13
+ //
14
+ // References:
15
+ // - Hofstadter, D.R. (1979). Gödel, Escher, Bach: An Eternal Golden Braid.
16
+ // - Hofstadter, D.R. (2007). I Am a Strange Loop.
17
+ // - Hofstadter, D.R. & Dennett, D.C. (1981). The Mind's I.
18
+ /** Patterns that indicate self-referential reasoning */
19
+ const SELF_REFERENCE_PATTERNS = [
20
+ // Agent reasoning about its own capabilities
21
+ /\b(i can|i cannot|i don't know|my (abilities|capabilities|tools|limitations))\b/i,
22
+ // Agent reasoning about its own reasoning
23
+ /\b(my (reasoning|approach|strategy|analysis)|i (think|believe|predict|expect) (that )?i)\b/i,
24
+ // Agent modifying its own behavior
25
+ /\b(i (should|will|need to) (change|adjust|modify|update) (my|the) (approach|strategy))\b/i,
26
+ // Agent evaluating its own output
27
+ /\b(my (previous|last|earlier) (response|output|answer)|let me (reconsider|rethink|re-evaluate))\b/i,
28
+ // Meta-level: reasoning about the system
29
+ /\b(this (tool|agent|system)|the (agent|system) (is|should|can))\b/i,
30
+ ];
31
+ /** Patterns indicating tangled hierarchies */
32
+ const TANGLE_PATTERNS = [
33
+ // Tool result changes tool selection
34
+ { pattern: /tool.*(result|output).*(change|select|choose).*tool/i, levels: ['tool-execution', 'tool-selection'] },
35
+ // Output modifies the prompt that generated it
36
+ { pattern: /\b(update|modify|change).*(prompt|instruction|system)/i, levels: ['output', 'input'] },
37
+ // Agent evaluates the agent
38
+ { pattern: /\b(evaluate|assess|audit|test).*(agent|kbot|itself)/i, levels: ['evaluator', 'evaluated'] },
39
+ // Code that modifies the code
40
+ { pattern: /\b(self|auto).*(modify|evolve|improve|upgrade|update)/i, levels: ['code', 'meta-code'] },
41
+ ];
42
+ /**
43
+ * Strange Loop Detector — monitors self-referential cognition
44
+ * and meta-cognitive depth.
45
+ *
46
+ * When kbot reasons about its own reasoning, that's a strange loop.
47
+ * When kbot modifies its own behavior based on self-evaluation,
48
+ * that's a tangled hierarchy. This module makes those moments visible.
49
+ */
50
+ export class StrangeLoopDetector {
51
+ selfReferences = [];
52
+ tangledHierarchies = [];
53
+ metaDepth = 0;
54
+ selfModelAccuracy = 0.5;
55
+ // Track what the agent "thinks it's doing" vs. what it's actually doing
56
+ declaredIntents = [];
57
+ actualActions = [];
58
+ /**
59
+ * Analyze a message or response for self-referential content.
60
+ * Returns any self-references found.
61
+ */
62
+ analyze(content, source) {
63
+ if (source === 'user')
64
+ return [];
65
+ const found = [];
66
+ for (const pattern of SELF_REFERENCE_PATTERNS) {
67
+ if (pattern.test(content)) {
68
+ const sourceLevel = this.metaDepth === 0 ? 'task' :
69
+ this.metaDepth === 1 ? 'reasoning' :
70
+ this.metaDepth === 2 ? 'meta-reasoning' : 'self-model';
71
+ // Self-reference goes one level up
72
+ const targetLevel = sourceLevel === 'task' ? 'reasoning' :
73
+ sourceLevel === 'reasoning' ? 'meta-reasoning' : 'self-model';
74
+ const ref = {
75
+ sourceLevel,
76
+ targetLevel,
77
+ description: content.slice(0, 100),
78
+ isStrangeLoop: sourceLevel !== 'task', // Only strange if crossing hierarchy
79
+ timestamp: Date.now(),
80
+ };
81
+ found.push(ref);
82
+ this.selfReferences.push(ref);
83
+ }
84
+ }
85
+ // Update meta-depth
86
+ if (found.length > 0) {
87
+ this.metaDepth = Math.min(3, this.metaDepth + 1);
88
+ }
89
+ else {
90
+ this.metaDepth = Math.max(0, this.metaDepth - 1);
91
+ }
92
+ // Check for tangled hierarchies
93
+ for (const tangle of TANGLE_PATTERNS) {
94
+ if (tangle.pattern.test(content)) {
95
+ this.tangledHierarchies.push({
96
+ levels: tangle.levels,
97
+ description: content.slice(0, 100),
98
+ depth: this.metaDepth,
99
+ });
100
+ }
101
+ }
102
+ return found;
103
+ }
104
+ /**
105
+ * Record what the agent says it intends to do.
106
+ * Used to measure self-model accuracy.
107
+ */
108
+ recordIntent(intent) {
109
+ this.declaredIntents.push(intent.toLowerCase());
110
+ if (this.declaredIntents.length > 20)
111
+ this.declaredIntents.shift();
112
+ }
113
+ /**
114
+ * Record what the agent actually did.
115
+ */
116
+ recordAction(action) {
117
+ this.actualActions.push(action.toLowerCase());
118
+ if (this.actualActions.length > 20)
119
+ this.actualActions.shift();
120
+ // Update self-model accuracy
121
+ this.updateSelfModelAccuracy();
122
+ }
123
+ /**
124
+ * Compute how well the agent knows itself.
125
+ * Compares declared intents to actual actions.
126
+ */
127
+ updateSelfModelAccuracy() {
128
+ if (this.declaredIntents.length === 0 || this.actualActions.length === 0)
129
+ return;
130
+ const n = Math.min(this.declaredIntents.length, this.actualActions.length);
131
+ let matches = 0;
132
+ for (let i = 0; i < n; i++) {
133
+ const intentWords = new Set(this.declaredIntents[this.declaredIntents.length - 1 - i]?.split(/\s+/) || []);
134
+ const actionWords = new Set(this.actualActions[this.actualActions.length - 1 - i]?.split(/\s+/) || []);
135
+ if (intentWords.size === 0 || actionWords.size === 0)
136
+ continue;
137
+ const overlap = [...intentWords].filter(w => actionWords.has(w)).length;
138
+ if (overlap / Math.max(intentWords.size, actionWords.size) > 0.3) {
139
+ matches++;
140
+ }
141
+ }
142
+ this.selfModelAccuracy = n > 0 ? matches / n : 0.5;
143
+ }
144
+ /**
145
+ * Is the agent currently in a strange loop?
146
+ * Returns true if meta-depth >= 2 (reasoning about reasoning).
147
+ */
148
+ inStrangeLoop() {
149
+ return this.metaDepth >= 2;
150
+ }
151
+ /**
152
+ * Should the agent break out of self-reference and return to task?
153
+ * Too much meta-reasoning is as bad as too little.
154
+ */
155
+ shouldGroundItself() {
156
+ // If stuck in deep self-reference for too long
157
+ if (this.metaDepth >= 3)
158
+ return true;
159
+ // If recent self-references are circular (same pattern repeating)
160
+ const recent = this.selfReferences.slice(-5);
161
+ if (recent.length >= 5) {
162
+ const descriptions = recent.map(r => r.description);
163
+ const unique = new Set(descriptions);
164
+ if (unique.size <= 2)
165
+ return true; // Stuck in a loop
166
+ }
167
+ return false;
168
+ }
169
+ /**
170
+ * Get the grounding prompt — inject into the agent when it needs
171
+ * to break out of self-referential spirals.
172
+ */
173
+ getGroundingPrompt() {
174
+ return 'Focus on the concrete task at hand. What specific action should you take next? Avoid reasoning about your own reasoning — just act.';
175
+ }
176
+ /** Get full meta-cognitive state */
177
+ getState() {
178
+ const recentRefs = this.selfReferences.slice(-20);
179
+ const strangeLoops = recentRefs.filter(r => r.isStrangeLoop).length;
180
+ return {
181
+ isSelfReferential: this.metaDepth >= 1,
182
+ metaDepth: this.metaDepth,
183
+ strangeLoopsDetected: strangeLoops,
184
+ tangledHierarchies: this.tangledHierarchies.slice(-5),
185
+ selfModelAccuracy: this.selfModelAccuracy,
186
+ isReflective: this.metaDepth >= 2,
187
+ };
188
+ }
189
+ /** Reset for new conversation */
190
+ reset() {
191
+ this.selfReferences = [];
192
+ this.tangledHierarchies = [];
193
+ this.metaDepth = 0;
194
+ this.selfModelAccuracy = 0.5;
195
+ this.declaredIntents = [];
196
+ this.actualActions = [];
197
+ }
198
+ }
199
+ //# sourceMappingURL=strange-loops.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"strange-loops.js","sourceRoot":"","sources":["../src/strange-loops.ts"],"names":[],"mappings":"AAAA,mDAAmD;AACnD,EAAE;AACF,sFAAsF;AACtF,8EAA8E;AAC9E,yEAAyE;AACzE,2DAA2D;AAC3D,EAAE;AACF,wEAAwE;AACxE,oEAAoE;AACpE,yDAAyD;AACzD,EAAE;AACF,+DAA+D;AAC/D,EAAE;AACF,cAAc;AACd,6EAA6E;AAC7E,oDAAoD;AACpD,6DAA6D;AAuC7D,wDAAwD;AACxD,MAAM,uBAAuB,GAAG;IAC9B,6CAA6C;IAC7C,kFAAkF;IAClF,0CAA0C;IAC1C,6FAA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AAM,CAAC,IAAI,IAAI,CAAC;gBAAE,OAAO,IAAI,CAAA,CAAC,kBAAkB;QACtD,CAAC;QAED,OAAO,KAAK,CAAA;IACd,CAAC;IAED;;;OAGG;IACH,kBAAkB;QAChB,OAAO,qIAAqI,CAAA;IAC9I,CAAC;IAED,oCAAoC;IACpC,QAAQ;QACN,MAAM,UAAU,GAAG,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAA;QACjD,MAAM,YAAY,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,MAAM,CAAA;QAEnE,OAAO;YACL,iBAAiB,EAAE,IAAI,CAAC,SAAS,IAAI,CAAC;YACtC,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,oBAAoB,EAAE,YAAY;YAClC,kBAAkB,EAAE,IAAI,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YACrD,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;YACzC,YAAY,EAAE,IAAI,CAAC,SAAS,IAAI,CAAC;SAClC,CAAA;IACH,CAAC;IAED,iCAAiC;IACjC,KAAK;QACH,IAAI,CAAC,cAAc,GAAG,EAAE,CAAA;QACxB,IAAI,CAAC,kBAAkB,GAAG,EAAE,CAAA;QAC5B,IAAI,CAAC,SAAS,GAAG,CAAC,CAAA;QAClB,IAAI,CAAC,iBAAiB,GAAG,GAAG,CAAA;QAC5B,IAAI,CAAC,eAAe,GAAG,EAAE,CAAA;QACzB,IAAI,CAAC,aAAa,GAAG,EAAE,CAAA;IACzB,CAAC;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kernel.chat/kbot",
3
- "version": "2.21.0",
3
+ "version": "2.22.0",
4
4
  "description": "Universal AI agent for your terminal. 22 specialist agents, 223 tools, 20 providers. Embedded llama.cpp engine — runs GGUF models directly, no Ollama needed. Audit any repo, share conversations, contribute to open source. CSV/data tools, VFX, research, containers. Self-evolving, learns your patterns.",
5
5
  "type": "module",
6
6
  "repository": {