Skip to content

Instantly share code, notes, and snippets.

View ruvnet's full-sized avatar
💭
hacking the multiverse.

rUv ruvnet

💭
hacking the multiverse.
View GitHub Profile
@ruvnet
ruvnet / Napster.md
Created June 28, 2025 18:45
a single‑file, ~200‑line Rust program that gives you both a central index server and a peer client in the spirit of the original Napster

Below is a single‑file, ~200‑line Rust program that gives you both a central index server and a peer client in the spirit of the original Napster:

  • Central server keeps an in‑memory map file → Vec<Peer>.
  • Each peer starts a tiny file server, registers its song list, can search, and then pulls files directly from the chosen peer.
  • Blocking I/O, zero external crates, so it compiles with plain rustc.
  • Run as napster server 0.0.0.0:8080 for the index, and napster client 127.0.0.1:8080 ./music 9000 on each peer (share dir + local port).

Educational use only. No authentication, encryption, or rate‑limiting—so never expose to the open Internet.

@ruvnet
ruvnet / performance.md
Last active July 12, 2025 05:20
AI Trading Platform with NeuralForecast Integration

Performance Analysis Report

NeuralForecast NHITS Integration Performance Validation

Date: June 2025
Analysis Period: Complete Integration Lifecycle
Report Type: Comprehensive Performance Validation


🎯 Key Features Documented

@ruvnet
ruvnet / Super-Turing.md
Last active July 11, 2025 22:13
a Rust implementation of a ferroelectric HfZrO-based synaptic resistor

Rust Implementation Plan for a 'Super-Turing' Spiking AI Chip Simulation

Imagine a chip that learns like a brain — not by uploading data to train on later, but by adjusting itself in real time, using almost no power. That’s what the new “Super-Turing” AI chip does. Instead of separating learning and inference like traditional neural networks (train first, deploy later), this chip learns and makes decisions at the same time, directly in hardware.

At the heart of this system is a device called a synstor — a synaptic transistor that acts both as memory and as a learning engine. It doesn’t just store weights like a normal neural network. It changes them dynamically based on electrical pulses, mimicking how biological synapses adjust when neurons fire. This change happens through a mechanism called Spike-Timing Dependent Plasticity (STDP) — if a signal comes in just before the output neuron fires, the connection strengthens; if it comes after, it weakens. All of this happens instantly and locally

@ruvnet
ruvnet / quad-vault.md
Last active June 21, 2025 12:46
QuDAG Vault is a Rust-based password and secret manager built on a quantum-resistant DAG architecture. It uses Kyber for key exchange, Dilithium for signatures, and AES-256-GCM for encrypting vault data. Secrets are stored as encrypted nodes in a DAG, enabling flexible organization, versioning, and delegation. It includes a CLI and bindings for …

Implementation Plan for QuDAG-Based Password Vault Library

Project Structure & Dependencies

We will organize the project as a Rust workspace with modular crates (following QuDAG’s architecture), ensuring separation of concerns and future extensibility. A suggested structure:

  • qudag-vault-core (library crate): Core vault logic and data structures. Integrates QuDAG modules for cryptography and DAG storage. Key dependencies:

  • QuDAG Crates: Use qudag-crypto for cryptographic primitives (Kyber KEM, Dilithium signatures, BLAKE3 hash) and qudag-dag for DAG data structures/consensus.

@ruvnet
ruvnet / QuDAG.md
Last active June 30, 2025 10:56
QuDAG Protocol (Quantum-Resistant DAG-Based Anonymous Communication System) - Claude Code implementation of a Test-Driven Development Implementation Plan for QuDAG Protocol with Claude Code

Executive Summary

This comprehensive implementation plan provides a structured approach to developing the QuDAG Protocol (Quantum-Resistant DAG-Based Anonymous Communication System) using Test-Driven Development (TDD) methodology, optimized for Claude Code’s multi-agent capabilities. The plan integrates cutting-edge cryptographic testing frameworks, distributed systems validation, and modern DevOps practices specifically tailored for Rust development.

1. Project Architecture and Initial Setup

1.1 Project Structure

qudag-protocol/
@ruvnet
ruvnet / *claude.md
Last active July 11, 2025 22:13
The Claude-SPARC Automated Development System is a comprehensive, agentic workflow for automated software development using the SPARC methodology with the Claude Code CLI

Claude-SPARC Automated Development System For Claude Code

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Overview

The SPARC Automated Development System (claude-sparc.sh) is a comprehensive, agentic workflow for automated software development using the SPARC methodology (Specification, Pseudocode, Architecture, Refinement, Completion). This system leverages Claude Code's built-in tools for parallel task orchestration, comprehensive research, and Test-Driven Development.

Features

@ruvnet
ruvnet / Autonomous.md
Created June 4, 2025 12:47
PyTorch-Based AI Agent System with Advanced Reasoning and Autonomy

Designing a PyTorch-Based AI Agent System with Advanced Reasoning and Autonomy

Overview and Goals

We propose an AI agent architecture in PyTorch that integrates state-of-the-art components to meet the following goals: (1) advanced reasoning with transformer models, (2) ingestion of large documents or histories via long context windows, (3) persistent memory without traditional vector-database RAG, (4) tool use for actions (API calls, code execution, etc.) similar to Anthropic’s MCP standard, and (5) declarative, goal-driven behavior with autonomous planning. The system will be compatible with both CPU and GPU environments. Below, we detail recommended models, libraries, and design choices for each aspect, followed by an overall architecture and example implementation steps.

1. Transformer Models for Advanced Reasoning

Model Selection: Use modern transformer-based LLMs known for strong reasoning and multitasking. For example, Meta’s LLaMA 2 (open-source, 7B–70B parameters) or **Mist

@ruvnet
ruvnet / agents.md
Created May 19, 2025 22:02
Codex Machine Learning Setup

Codex-one: OpenAI Codex Machine Learning Setup

Introduction

The OpenAI Codex Machine Learning Setup is a comprehensive environment designed for building advanced AI-powered applications with a focus on agentic capabilities. This project provides a robust foundation for creating AI systems that can reason about complex tasks, interact with external tools, and execute actions on behalf of users.

Built around a core set of modern AI libraries and tools, this setup enables the development of sophisticated machine learning pipelines, particularly those leveraging Large Language Models (LLMs) for reasoning and decision-making. The project structure integrates seamlessly with FastMCP for standardized API interfaces and provides connectivity with various external services through tool integrations.

Core Libraries

@ruvnet
ruvnet / Audit.md
Last active May 17, 2025 14:45
Security Audit: Agent Capability Negotiation and Binding Protocol (ACNBP) Platform

Security and Implementation Review Checklist

  • Environment Configuration

    • The .env file should be included in .gitignore to prevent committing sensitive information like API keys. This is mentioned in the README.md, but it must be enforced.
  • Database Files

    • The agent_registry.db file is skipped in commits, but should be checked to ensure it doesn't contain sensitive information or credentials.
  • Key Management

  • src/app/api/secure-binding/ca/route.ts stores CA keys in memory. Not secure for production. Use a secure key management service.

@ruvnet
ruvnet / *README.md
Last active July 8, 2025 21:04
ChatGPT Codex Agent.md and environment setup script

Getting Started with ChatGPT Codex + Mastra Agents

Step-by-Step Instructions

  1. Open the ChatGPT Codex task setup panel. This is where you configure your environment before starting a task.

  2. Locate the "Setup Script" field. You’ll see a note that internet access is disabled after the script runs.