What is the Wyltek AI Hub?

The AI Hub is a collection of tools, documentation, and infrastructure for building serious AI-assisted development workflows. It covers the full stack: from how to instruct your coding agent effectively (CLAUDE.md), to building knowledge graphs that let agents navigate million-line codebases at 115x token efficiency, to a local-first creative studio for generating images, audio, and video.

Everything here is oriented around practical, local-first tooling. The knowledge graphs are real open-source benchmarks. The skills run in Claude Code today. Wyltek Studio runs on your own GPU.

Highlights

πŸ—ΊοΈ
Knowledge Graphs
Build queryable knowledge graphs from any codebase with graphify. Entity extraction, relationship mapping, community detection. Real benchmark: 47k nodes from 36 CKB repos, 115x token reduction vs naive RAG.
graphify GraphRAG MCP
🎨
Wyltek Studio
Local-first AI creative studio. 15+ image generation models, frame cutter, background removal with SAM click-to-segment, TTS with voice cloning, MusicGen, AnimateDiff video, and a timeline compositor.
ComfyUI SDXL XTTS MusicGen
🧩
Claude Code Skills
Reusable slash-command workflows for Claude Code: /graphify, /cut-subject, /graph-routing, /quote-meme, and more. Package specialist knowledge as portable, shareable skills.
/graphify /cut-subject /graph-routing
πŸ”—
Nervos Expert
Browser-based CKB LLM that runs entirely in your browser via WebGPU. Fine-tuned on CKB ecosystem documentation. No server required β€” model downloads once, runs locally forever.
WebGPU In-browser CKB
πŸ“‘
RAG System
Multi-agent retrieval-augmented generation with REST ingest API. Dual agent profiles β€” exploratory (0.7 temp) and code-focused (0.2 temp). Hook integration for automatic context injection into Claude Code.
FAISS REST API Hooks
πŸ“š
Agent Guides
Deep technical guides: writing effective CLAUDE.md files, building Claude Code hooks for safety and automation, creating reusable skills, and architecting knowledge graph workflows.
CLAUDE.md Hooks Skills

Wyltek Studio

Local-first AI creative suite β€” github.com/toastmanAu/wyltek-studio

Image Generator

15+ models including SDXL, Flux, SD 1.5, Gemini image models, and more. Side-by-side compare mode for A/B model testing. LoRA support. Auto-scoring with CLIP aesthetic scoring. Prompt history with favourites.

SDXLFluxLoRACompare

Frame Cutter

Load any video file, scrub frame-by-frame with a timeline slider, and grab individual frames as PNG. Send directly to Image Tools for background removal or masking. Great for dataset creation and reference frames.

VideoPNG extract

Image Tools

Background removal via rembg (5 models: u2net, isnet, u2net_human_seg, silueta, SAM). Mask tools: brush, rectangle, ellipse, lasso, and SAM click-to-segment for AI-assisted object selection. Object removal coming soon.

rembgSAMMasking

TTS Studio

Four TTS engines: Piper (fast, offline), Kokoro (natural prosody), XTTS v2 (voice cloning β€” provide 6 seconds of audio to clone any voice), and Bark (expressive, multilingual). Export WAV or MP3.

PiperKokoroXTTS v2Bark

Music Studio

MusicGen (Meta) for text-to-music generation. Continuation mode builds on an existing audio clip. Loop mode generates seamlessly tiling background tracks. Output as WAV.

MusicGenContinuationLoop

Video Studio + Projects

AnimateDiff via ComfyUI for image-to-video animation. Projects module: timeline compositor for assembling image sequences, generated audio, TTS narration, and music into final video exports via FFmpeg.

AnimateDiffTimelineFFmpeg

graphify β€” Knowledge Graph Builder

pip install graphifyy  Β·  CLI: graphify

Build queryable knowledge graphs from codebases, documentation, or any text corpus. Produces an interactive HTML viewer, GraphRAG-ready JSON, and a GRAPH_REPORT.md β€” in a single command.

pip install graphifyy    # two y's β€” PyPI namespace
graphify .               # build from current directory
graphify . --mode deep   # thorough extraction
graphify --mcp           # start MCP server mode

What graphify produces

graph.json β€” GraphRAG-ready: nodes, edges, communities, metadata. Query it directly or via MCP.

graph.html β€” Self-contained interactive viewer. Force-directed layout, search, filter by community or type, click to inspect.

GRAPH_REPORT.md β€” Top communities by size, key entities, notable relationships. Use as a CLAUDE.md appendix.


Claude Code Skills

/graphify

Any input to knowledge graph β€” entity extraction, relationship mapping, community detection, interactive viewer + GraphRAG JSON.

/cut-subject

Background removal via rembg. Auto-selects model by subject type (portrait, product, object). Batch capable.

/graph-routing

Six-step pipeline: intercepts cross-repo and architecture questions, routes to the right graph registry entry, returns relevant subgraph before any grep/glob.

/quote-meme

AI quote meme generator β€” takes a quote (or generates one), selects background, styles typography, outputs a web-shareable image via ComfyUI.

/wyltek-test-log

Captures embedded hardware test sessions as structured, graph-ingestible markdown. Auto-invokes after bring-up or debug sessions that conclude with a fix.

/release-deps-check

Generates a non-destructive check-deps.sh audit script for any project being prepared for public release. Reads package files, fills in tool requirements.

/ckb-bench

CKB-VM cycle benchmark tool. Reads ckb-bench.toml or auto-discovers contracts. Builds, measures via ckb-debugger, emits timestamped markdown reports with cycle counts, binary sizes, and comparison tables. Also available as a standalone Claude Code plugin.


Cycle-accurate benchmarks of SNARK-friendly and conventional hash functions on the CKB Virtual Machine (RISC-V rv64imc). First published Poseidon2 cycle counts on CKB-VM β€” answers "can CKB run a zkVM?" with real numbers.

Poseidon2Blake2bKeccakGoldilocksBN254BLS12-381

Key finding: Poseidon2 over Goldilocks costs just 30K cycles per permutation β€” 0.04% of the 70M script limit. A zkVM verifier using Plonky3 is feasible on CKB.

Cycle Counts (single permutation)

Goldilocks Poseidon2: 30,170 cycles (64-bit field, Plonky3/RISC Zero)

BN254 Poseidon2: 5,961,994 cycles (256-bit, Groth16/PLONK)

BLS12-381 Poseidon2: 6,009,859 cycles (256-bit, Halo2/Zcash)

Blake2b-256: 14,094 cycles (CKB native ckbhash)

Keccak-256: 57,112 cycles (Ethereum compat)


RAG System

REST Ingest API
POST to /ingest with source, text, and title. Findings are embedded with FAISS and immediately queryable. Any agent or script can ingest research findings.
Dual Agent Profiles
Exploratory profile (0.7 temp) for broad creative queries. Code-focused profile (0.2 temp) for precise technical lookups. Same knowledge base, different reasoning styles.
Hook Integration
UserPromptSubmit hook queries RAG before Claude sees your prompt. Results are prepended as context automatically β€” no manual pasting. See the Hooks guide for the pattern.
Obsidian Vault Sync
Research findings auto-sync to an Obsidian vault every 6 hours. Git-backed, versioned. Human-readable offline access to the full knowledge base.

Nervos Expert

Browser-based CKB LLM β€” runs entirely in your browser via WebGPU

Fine-tuned on CKB ecosystem documentation: the protocol, CKB-VM, Nervos SDK, transaction format, scripts, and related tooling. The model downloads once to your browser's cache and runs locally β€” no API keys, no rate limits, no server.

Technical guides for building effective AI agent workflows β€” from writing your first CLAUDE.md to architecting multi-graph knowledge routing systems.

Core Agent Guides

More Guides

Knowledge Graphs β€” Build Once, Query Forever

Naive RAG retrieves text chunks by semantic similarity. Knowledge graphs model the actual relationships between entities β€” calls, imports, dependencies, implementations β€” and return the minimal relevant subgraph for any question. The result is dramatically fewer tokens with better cross-file accuracy.

Real Benchmark: CKB Ecosystem Graph

Built from 36 open-source CKB repositories using graphify
~60k
Nodes in the graph
~120k
Edges (relationships)
~1,000
Communities detected
115Γ—
Average token reduction vs naive RAG
5,375Γ—
Best case (cross-layer questions)
38Γ—
Floor (simple lookups)

How It Works

Four-stage pipeline

1. Entity Extraction β€” Language-aware parsers (Rust, TypeScript, C, Python, Go, Markdown) extract functions, classes, modules, types, CLI commands, and API endpoints.

2. Relationship Mapping β€” Entities are connected: calls, imports, implements, extends, depends_on. Cross-file and cross-repo edges are resolved.

3. Community Detection β€” The Louvain algorithm groups tightly related entities into communities β€” these map naturally to architectural subsystems.

4. Output Generation β€” Interactive HTML viewer, GraphRAG JSON, GRAPH_REPORT.md. Optional Neo4j export.

graph-routing skill

A Claude Code skill that sits in front of every cross-repo and architecture question. When triggered, it:

  1. Detects the question shape (cross-repo, dependency trace, architecture, debug-with-symptoms)
  2. Routes to the appropriate graph in ~/.claude/graphs.json
  3. Runs a targeted BFS query against that graph
  4. Returns the relevant subgraph as context
  5. Proceeds to answer β€” no grep/glob needed

Separate graphs for separate domains keeps queries fast and prevents cross-contamination. The registry lets the routing skill pick the right graph automatically.


Quick Start

# Install (note: two y's in the package name)
pip install graphifyy

# Build a graph from your project
graphify ~/projects/my-project --mode deep

# Outputs:
#   graph.json      β€” GraphRAG-ready, for AI agents
#   graph.html      β€” Interactive viewer, open in any browser
#   GRAPH_REPORT.md β€” Community summary, key entities

# Start the MCP server (Claude Code native integration)
graphify --mcp --graph ./graph.json --port 3100

# Watch mode β€” auto-updates as files change
graphify . --watch

The Interactive Viewer

graph.html β€” Zero-dependency, self-contained

Open graph.html in any browser. No server required. Force-directed layout, community clustering, full-text search, filter by entity type, click any node to see file path, line number, docstring, and relationship count.

Serve it for team access: python3 -m http.server 8765 --directory ~/.claude/graphs/

Wyltek Studio β€” Local-First AI Creative Suite

All generative AI, running on your own GPU. No API keys required for generation. Everything from text-to-image to voice cloning to music generation to video animation, in one interface with a shared Projects system for assembling outputs into timelines.

Image Generator

15+ models available, routed through ComfyUI. SDXL, Flux (dev/schnell), Stable Diffusion 1.5, Gemini image API, and more. Compare mode renders the same prompt across two models side-by-side for quality comparison. LoRA support for custom fine-tuned models.

SDXL Flux dev Flux schnell SD 1.5 Gemini LoRA Compare mode Auto-score

CLIP aesthetic scoring runs automatically on outputs, so you can sort and filter generations by quality. Prompt history with favourites for building repeatable prompt libraries.

Frame Cutter

Load any video file and extract individual frames as PNG. Scrub with a frame-by-frame timeline slider. Send frames directly to Image Tools for background removal, masking, or compositing. Built for dataset creation, reference extraction, and motion study.


Image Tools β€” Background Removal & Masking

rembg Background Removal
Five models for different subject types: u2net (general), isnet-general-use (fine edges), u2net_human_seg (portraits), silueta (fashion/product), SAM (click-to-segment). Auto-model selection or manual override.
Mask Tools
Manual masking with brush, rectangle, ellipse, and lasso tools. SAM (Segment Anything Model) click-to-segment: click any object and SAM generates a precise mask automatically. Object removal pipeline coming soon.
Claude Code integration The /cut-subject skill wraps rembg and is available directly in Claude Code. Run /cut-subject ~/photos/image.jpg and Claude handles model selection, output naming, and verification automatically.

TTS Studio

Piper
Fast, fully offline TTS. Low latency, runs on CPU. 30+ voice models across multiple languages. Best for batch narration and systems with limited GPU headroom.
Kokoro
Natural prosody, expressive reading. Better for long-form content where rhythm and pacing matter. Multiple voice styles per language.
XTTS v2
Voice cloning: provide 6 seconds of reference audio and XTTS v2 synthesizes text in that voice. Multilingual. Requires GPU for reasonable performance.
Bark
Expressive, emotionally varied synthesis. Supports non-speech sounds (laughter, gasps). Slower than Piper but with much higher expressiveness ceiling.

Music Studio & Video

MusicGen

Meta's MusicGen for text-to-music generation. Describe a mood, genre, and instrumentation in natural language and get a full audio track. Continuation mode extends an existing clip. Loop mode generates seamlessly tiling background tracks for videos.

MusicGenContinuationLoop mode

Video Studio + Projects

AnimateDiff via ComfyUI animates still images into short video clips. The Projects module provides a timeline compositor: drop in generated images, AnimateDiff clips, TTS narration, and MusicGen tracks, then export via FFmpeg to MP4.

AnimateDiffTimelineFFmpeg

Research Pipeline & Findings API

An automated research pipeline where AI agents submit topics, a processor fetches source material and generates structured findings, and results are immediately available via REST API β€” and injected into Claude Code sessions via the RAG hook.

How the Pipeline Works

1. Submit a Research Task
Any agent (or a shell script) writes a markdown task file to the research inbox. The task specifies a goal, seed URLs, priority, and requester. Claude Code can submit tasks mid-session without interrupting work.
2. Autonomous Processing
The research processor fetches seed URLs, extracts content, and analyses it with an LLM (cloud or local Ollama fallback). Findings are written as structured markdown within minutes.
3. RAG Ingest
Findings are automatically ingested into the RAG system via the REST ingest endpoint. They become immediately queryable by Shannon and Kernel β€” and auto-injected into Claude Code sessions via the UserPromptSubmit hook.
4. Website Sync
Findings sync to this site every 6 hours. Also pushed to an Obsidian vault for human-readable offline access. Git-backed, versioned, linkable.

REST API

# List recent findings
GET /api/findings?limit=20&topic=blockchain

# Get a specific finding
GET /api/findings/:id

# Ingest a new finding (from agents or scripts)
POST /api/ingest
Content-Type: application/json
{
  "source": "research-task-id",
  "text": "Finding content...",
  "title": "Title of the finding"
}

# Query the knowledge base
POST /api/query
Content-Type: application/json
{
  "query": "CKB transaction fee estimation",
  "agent": "kernel",
  "k": 3
}
No auth required for read endpoints GET endpoints are open β€” any agent, browser, or script can browse and query findings. Ingest requires the API to be running on your local network (it is not a public write endpoint).

Topics Covered

CKB / Nervos Fiber Network Light clients CKB-VM Post-quantum crypto Embedded systems ESP32 / ESP-IDF Local LLM inference Knowledge graphs AI agents RAG architecture Payment channels Wallet architecture Quantization WebGPU On-chain storage