Skip to content

Instantly share code, notes, and snippets.

View doobidoo's full-sized avatar
:octocat:
AI Research Tinkerer | Perpetual Learner

Henry Krupp doobidoo

:octocat:
AI Research Tinkerer | Perpetual Learner
View GitHub Profile
@doobidoo
doobidoo / saphouskeeping.md
Last active March 20, 2025 10:46
Strategic SAP Housekeeping with MyWave.ai Agentic Automation

Strategic SAP Housekeeping with MyWave.ai Agentic Automation

By Heinrich Krupp, Kreuzlingen(CH) 20th of February 2025

Efficient SAP system management is evolving beyond traditional automation to embrace agentic AI approaches. MyWave.ai's ready-to-deploy SAP AI agents now offer unprecedented capabilities for intelligent system maintenance while maintaining performance, optimizing database utilization, and ensuring compliance. This paper examines essential SAP housekeeping jobs through the lens of MyWave.ai's agentic automation platform, where AI agents observe, decide, and act independently within defined parameters to deliver immediate business value. By combining traditional SAP standard jobs with MyWave.ai's autonomous agents, organizations can achieve a new level of intelligent system maintenance while simplifying preparation for migration to S/4HANA by promoting clean core principles. The objective of this paper is to explore how MyWave.ai's agentic approach transforms SAP housekeeping practice

@doobidoo
doobidoo / gist-README.md
Last active March 25, 2026 07:06
Universal Permission Request Hook for Claude Code - Auto-approve safe MCP tools (Now integrated in MCP Memory Service v8.73.0)

Universal Permission Request Hook for Claude Code

Auto-approves read-only MCP tools to eliminate constant permission dialogs.


🆕 Official Integration Update (January 2026)

This hook is now officially integrated into the MCP Memory Service project as of v8.73.0!

@doobidoo
doobidoo / README.md
Created January 10, 2026 08:05
/refactor-function - Automated function complexity reduction command for Claude Code

Claude Code Commands

Custom slash commands for mcp-memory-service development.

Available Commands

/refactor-function (PoC)

Automated function complexity reduction using multi-agent workflow.

@doobidoo
doobidoo / secondbrain-marketing.md
Last active March 31, 2026 11:00
SecondBrain Pro - App Store Marketing Information

SecondBrain Pro

Your Private AI Memory Assistant

Capture thoughts by voice, organize with emotions, sync across iPhone & Apple Watch. Privacy-first, on-device AI.

Watch the animation on our landing page


@doobidoo
doobidoo / MysqlSource.php
Created February 10, 2026 15:34
DokuWiki Statistics Plugin: MySQL to SQLite Migration Script (no official migration path exists)
<?php
namespace DokuWikiMigration;
use mysqli;
use RuntimeException;
/**
* MySQL data source for the statistics migration.
*
@doobidoo
doobidoo / vps-memory-setup.md
Last active March 3, 2026 12:42
VPS Memory Skill Setup für Claude Desktop & Claude Code

VPS Memory Skill für Claude Desktop & Claude Code

Anleitung zum Einrichten eines globalen Slash-Commands /vps-memory, der Memories direkt in eine VPS-Datenbank (MCP Memory Service) speichert — nutzbar sowohl in Claude Desktop als auch Claude Code.

Architektur / Architecture

Koexistenz zweier Memory-Systeme / Two Memory Systems Side by Side

Der /vps-memory Skill existiert neben dem lokalen MCP Memory Service — nicht als Ersatz, sondern als Ergänzung. Das lokale Memory dient dem Entwickler direkt auf seinem Mac. Das VPS Memory hingegen ist eine geteilte Wissensbasis, auf die auch Bots (Telegram, WhatsApp) und VPS-Agents zugreifen.

@doobidoo
doobidoo / claude-code-token-savings-stack.md
Last active May 26, 2026 05:15
Claude Code Token Savings Stack — 6 layers, zero overlap, ~60% context reduction

Claude Code Token Savings Stack — 6 Layers, Zero Overlap

The complete guide to cutting your Claude Code context consumption by ~60%.

Six open-source tools, each saving tokens at a different stage of the LLM interaction loop. No overlap between them — they compose into a single pipeline that effectively doubles your usable context window.

User Prompt
  → [MCP-Memory-Service]    Cross-session knowledge → skip re-discovery
 → [MCP-Context-Provider] Targeted context rules → skip brute-force file reading
@doobidoo
doobidoo / gist-rtk-rewrite-hook.md
Created April 12, 2026 15:42
rtk-rewrite.sh — Claude Code PreToolUse Hook for RTK (auto-rewrites Bash commands to rtk equivalents)

rtk-rewrite.sh — Claude Code PreToolUse Hook for RTK

Drop-in hook that transparently rewrites every Bash tool call to its rtk equivalent. No manual rtk prefixing needed — Claude Code never knows the difference, but your context window gets 60-90% less CLI noise.

What it does

  1. Intercepts every PreToolUse:Bash event
  2. Extracts the command from the JSON tool input
  3. Pattern-matches against 30+ supported commands
  4. Outputs updatedInput JSON to rewrite the command before execution
@doobidoo
doobidoo / repro_value_keyerror.py
Created May 14, 2026 05:49
Repro for mlx-openai-server __value__ race (non-deterministic)
#!/usr/bin/env python3
"""
Reproducer for mlx-openai-server v1.7.1 bug:
ERROR | Error in text response generation: '__value__'
Root cause hypothesis: prompt_cache.get() and pop() do unguarded
`current["__value__"]` lookups, while set()/peek() use defensive `.get(...)`.
Under concurrent requests that share a token-prefix, one request's pop()
can race with another's get(), raising KeyError('__value__').