Skip to content

Instantly share code, notes, and snippets.

@danregima
danregima / nl_to_atomese.py
Created May 2, 2026 22:22
nl_to_atomese_v2
#!/usr/bin/env python3
"""
Natural Language → Atomese Converter.
Converts English sentences into OpenCog Atomese s-expressions using:
1. Rule-based pattern matching (fast, deterministic)
2. LLM-assisted parsing (complex sentences, fallback)
Usage:
python3 nl_to_atomese.py "The cat sat on the mat"
"""
knowledge_miner.py — LLM Response → AtomSpace Knowledge Encoding Pipeline
Encodes Phive Senses LLM outputs as first-class atoms in the AtomSpace with:
- GenerationLink provenance (which model generated what)
- SenseNode truth values (model accuracy tracking)
- PLN cross-validation against existing knowledge
- Confidence scoring for knowledge mining
Architecture:
"""
phive_senses.py — The Phive Senses Cognitive Router
OpenCog-driven dispatch to hyperspecialized micro-models.
Architecture:
Input → OpenCog AtomSpace (classify task type) → Route to Sense → Response
Senses:
1. LOGOS — NL↔Atomese translation, structured extraction (Qwen3.5-0.8B)
2. NOESIS — Chain-of-thought reasoning, inference (DeepSeek-R1-Distill-1.5B)
@danregima
danregima / SYNC_INSTRUCTIONS.md
Created December 3, 2025 17:47
Deep Tree Echo A000081 Evolution - Sync Instructions

Repository Sync Instructions

Current Status

  • Repository: cogpy/cogpilot.jl
  • Branch: unified-a000081-evolution (local)
  • Commit: 4499870c
  • Status: Changes committed locally, unable to push due to authentication

Changes Summary

  • 5 new modules (~2,250 lines)
@danregima
danregima / EVOLUTION_SUMMARY.md
Created December 3, 2025 17:47
Deep Tree Echo A000081 Evolution - Summary

Deep Tree Echo Evolution Summary

Session Date

November 24, 2025

Objective

Evolve the Deep Tree Echo system by integrating Julia packages into a cohesive deep tree echo state reservoir computer with b-series ridges, p-system reservoirs, j-surface elementary differentials, and rooted tree feedback mechanisms unified under OEIS A000081.

@danregima
danregima / 0001-Evolve-Deep-Tree-Echo-Unify-all-components-under-A00.patch
Created December 3, 2025 17:46
Deep Tree Echo A000081 Evolution - Patch File
From 4499870c55234408f6777f79c876c2959ca41986 Mon Sep 17 00:00:00 2001
From: danregima <10253941+danregima@users.noreply.github.com>
Date: Sun, 23 Nov 2025 19:12:39 -0500
Subject: [PATCH] Evolve Deep Tree Echo: Unify all components under A000081
ontogenetic framework
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
This commit implements the complete unification of the Deep Tree Echo State