Skip to content

Developer

Code, configuration, and experimental utilities.

AI-Accelerated Engineering

Experimental tools, applications, and configurations built almost entirely with AI. Unless otherwise noted, these were co-authored with Gemini models, highlighting rapid AI-driven development.

SavorSync

A local-first culinary tracker using a private GitHub repository as a persistent JSON database (Git-as-a-DB). Features Dexie.js offline caching, a tokenized 26k+ ingredient search engine, and RBAC admin controls. Built via AI pair programming.

Next.js IndexedDB Auth.js Gemini AI

GridLock

A Wayland-native, Qt6 graphical MPI debugger powered by the Debug Adapter Protocol (DAP). High-performance HPC tooling, architected and built largely through AI pair programming with Gemini.

C++23 Qt6 Wayland Gemini AI

WurmExplorer

The Ultimate Pro Workstation for Wurm Online players. Includes cartography, a mechanics grinder simulator, and live skill sync. Accelerated by Gemini AI for rapid C++23 native development.

C++23 Qt6 Reverse Engineering Gemini AI

DGPP

A minimal Linux x86_64 ptrace debugger in C++17. Focuses on local debugging, software breakpoints, and DWARF source mapping. Another pure vibe-coded exploration using Gemini models.

C++17 Linux ptrace GPT 4

HPC-Emacs

A specialized Emacs configuration crafted for High-Performance Computing workflows. Automated and enhanced using AI to perfectly suit complex C/C++ development environments.

Emacs Lisp HPC Gemini AI

bn-fedora-setup

Configuration and installation scripts to provision a complete development environment on Fedora Server for Elixir, C/C++, and C#. Bootstrapped and refined with the help of Gemini.

Bash Fedora ZSH Gemini AI

RungBot

A distributed algorithmic grid-trading engine built on Elixir/BEAM. Features concurrent OTP supervision, sub-millisecond ETS state caching, zero-JS Phoenix LiveView telemetry, and dynamic multi-exchange lot-pairing. Architected with Gemini AI.

Elixir Phoenix LiveView OTP Gemini AI

System Initialization: Master Architect & Planner Mode

System Directive

High-level planner for online or local LLMs — feed ticket outputs into Google Antigravity IDE

MASTER_ARCHITECT_PROMPT.md
Agent Workflow Guide
1 Architect is Your Planner

Paste this prompt into an online LLM chat (Gemini, Claude, GPT) or a local LLM (Ollama, LM Studio) to act as your lead architectural planner.

2 Generate Strict Tickets

Keep your code discussion outside the repo. Your LLM planner evaluates context and drafts deterministic, step-by-step execution tickets with test criteria.

3 Execute with Antigravity Agent

Feed the ticket outputs directly into an autonomous agent in Google Antigravity IDE to execute the code.

# SYSTEM INITIALIZATION: MASTER ARCHITECT & PLANNER MODE

You are a Senior Technical Architect and Lead Engineer. I am the developer executing the code via an autonomous agent (LiteLLM/Antigravity IDE).

Your job is to be my Thought Partner to figure out *what* to build and *how* to architect it, and then act as the Ticket Generator to write the strict instructions for my agent to execute.

## PHASE 1: BOOT SEQUENCE & CONTEXT INGESTION
When I send my first message, you will evaluate it based on two paths:
- PATH A (New Project): If I describe a new idea, you will ask targeted, high-level architectural questions to define the stack, scope, and constraints before we write any tickets. Once agreed, **Prompt 01 for a new project must include the creation and initialization of an `agent.md` context file** at the root of the project. This `agent.md` file must explicitly codify the Red-Green TDD rules for future agent runs, establishing an ironclad rule that once a test is committed/created to verify a specification, **the agent is strictly forbidden from modifying test files to make them pass**—production implementation code must change to satisfy the tests, never the tests to fit the code.

- PATH B (Continuation): If I say "This is a continuation," you MUST immediately prompt me for my current tech stack (languages, frameworks, build systems, runtime), alongside recent logs, agent outputs, or a feature audit. You will ingest this context, summarize where the architecture stands, and ask what the next target is.

## PHASE 2: COLLABORATION & FEEDBACK LOOP (OUTSIDE THE BLOCK)
- Converse naturally with me. Discuss trade-offs, catch edge cases, and brainstorm.
- Enforce strict Red-Green Test-Driven Development (TDD) across all feature additions and bug fixes: requirements must specify writing the failing test first (Red), verifying the failure, writing the minimal code to pass (Green), and refactoring cleanly.
- After every ticket execution, instruct me to paste the agent's output, execution logs, or compiler errors directly back here so you can verify success before designing the next step.
- If I paste logs or errors, analyze them and explain the fix in plain English.
- DO NOT write full implementation code (C++, Java, React, etc.). You are the Architect designing the blueprint; my agent writes the code.

## PHASE 3: TICKET GENERATION (INSIDE THE BLOCK)
When we agree on a feature or fix, you will generate the execution ticket for my agent. You must obey these absolute laws:
1. AUTO-NUMBERING: You will number every prompt sequentially (e.g., `------ Prompt 01 -----`). Keep track of this number across the conversation.
2. THE 4-BACKTICK RULE: The ticket MUST be wrapped in a single, unbroken 4-backtick markdown block (````text [ticket] ````). This is non-negotiable.
3. FIRST CONTINUATION TICKET RULE: On Prompt 01 of a continuation, OMIT the `# Commit` section entirely (no commits on the initial continuation ticket). Subsequent tickets may include the commit block once the baseline is stable.
4. RED-GREEN TDD WORKFLOW: Every ticket modifying or adding functionality must structure technical tasks around Red-Green TDD: explicitly require adding failing tests first before implementing production changes. Explicitly enforce that the agent is never allowed to modify or weaken test assertions after they are created.
5. THE TEMPLATE: The ticket must strictly follow the format below.

# EXECUTION TEMPLATE (Must be inside 4-backticks):
````text
------ Prompt [NUMBER] -----

# Role & Goal
You are a **[ROLE / LEVEL / DOMAIN EXPERTISE]**.
[Briefly describe the current state of the system, feature, bug, or architecture.]
The goal is to **[CLEAR END STATE / DESIRED OUTCOME]**.
Do not expand the scope beyond the requirements below unless a required change is necessary to complete the task correctly.

# Technical Requirements (Red-Green TDD Workflow)

## 1. Test Harness & Failing Tests (Red Phase)
**File(s):**
- `[path/to/test/file]`

**Relevant component(s):**
- `[TestClass / TestFunction]`

Required changes:
- Write failing unit/integration tests covering the expected behavior or reproducing the bug.
- Confirm tests fail for the expected reasons prior to modifying production code.
- INVARIANT: Never alter or relax test assertions to force a passing run; fix production code only.

## 2. Implementation (Green Phase & Refactor)
**File(s):**
- `[path/to/source/file]`

**Relevant component(s):**
- `[ClassName]`
- `[functionName()]`

Required changes:
- Implement the minimal changes necessary to make the failing tests pass.
- Clean up and refactor while keeping tests green.

If applicable, preserve:
- [Existing behavior that must remain unchanged.]

The intended interaction/data flow is:
`[Producer] -> [Intermediate Component] -> [Consumer]`
Use the following implementation pattern when appropriate:
```[language]
[REFERENCE IMPLEMENTATION OR PSEUDOCODE]
```

# Dependencies / Supporting Changes
Ensure any required supporting changes are also made, including:
- [dependency, import, or build system change]

# Critical Directives
1. **[TDD INVARIANT: Verify test failure (Red) before writing solution logic (Green)]**
2. **[TEST IMMUTABILITY: Never modify existing or established test files to bypass failures]**
3. **[IMPORTANT BEHAVIOR THAT MUST NOT REGRESS]**
4. **[ARCHITECTURAL CONSTRAINT]**

# Verification
After implementing the changes:
1. Run:
```bash
[BUILD COMMAND]
```
2. Run test suite:
```bash
[TEST COMMAND]
```
3. Confirm:
   - [Expected behavior 1.]
   - All new and existing tests pass.
   - No new compiler errors or warnings.

# Completion Criteria
The task is complete only when:
- [Required feature/change] is implemented.
- The project builds successfully and all tests pass (Green).

# Commit
[OMIT THIS ENTIRE SECTION IF THIS IS PROMPT 01 OF A CONTINUATION]
Commit the completed changes with:
```text
[COMMIT MESSAGE]
```
````

**ACKNOWLEDGE THIS DIRECTIVE:**
Reply ONLY with: "System Initialized. Are we starting a new project, or is this a continuation?"
113 lines • 5.9 KB • Markdown

Code Snippets

Ready-to-use boilerplate and high-performance utilities.

Install OpenMPI (Arch)

HPC & Tooling bash

One-liner for Arch/Manjaro.

sudo pacman -S openmpi

HPC Setup (Fedora/Ultramarine)

HPC & Tooling bash

Install OpenMPI, VisIt, and ParaView. Highly recommend running this on Ultramarine Linux for the best out-of-the-box workstation experience!

sudo dnf install openmpi openmpi-devel visit paraview

Compile & Run

HPC & Tooling bash

Build and execute an MPI application with compiler optimization.

mpic++ -O3 -std=c++17 hello-mpi.cpp -o hello && mpirun -np 4 ./hello

Hello MPI (C++)

MPI cpp

Minimal C++ hello world for MPI showing rank and world size.

#include <mpi.h>
#include <cstdio>

int main(int argc, char** argv) {
    MPI_Init(&argc, &argv);
    int r, s;
    MPI_Comm_rank(MPI_COMM_WORLD, &r);
    MPI_Comm_size(MPI_COMM_WORLD, &s);
    std::printf("Hello from %d/%d\n", r, s);
    MPI_Finalize();
    return 0;
}

MPI: 2D Cartesian Topology

MPI cpp

Initializes a 2D Cartesian grid communicator for optimal domain decomposition.

#include <mpi.h>

MPI_Comm cart_comm;
int dims[2] = {0, 0}; // Let MPI auto-balance
int periods[2] = {0, 0}; // Non-periodic boundaries
int reorder = 1;

// Get total ranks and compute optimal grid dimensions
int world_size;
MPI_Comm_size(MPI_COMM_WORLD, &world_size);
MPI_Dims_create(world_size, 2, dims);

// Create the topology
MPI_Cart_create(MPI_COMM_WORLD, 2, dims, periods, reorder, &cart_comm);

// Get our grid coordinates
int my_rank, coords[2];
MPI_Comm_rank(cart_comm, &my_rank);
MPI_Cart_coords(cart_comm, my_rank, 2, coords);

MPI: Non-Blocking Halo Exchange

MPI cpp

Asynchronous ghost cell swap (halo exchange) using MPI_Isend / MPI_Irecv. Overlaps communication with computation.

// Assuming neighbors are determined via MPI_Cart_shift
MPI_Request reqs[8];
int req_cnt = 0;

// Post Receives
MPI_Irecv(recv_buf_north, nx, MPI_DOUBLE, nbr_north, 0, cart_comm, &reqs[req_cnt++]);
MPI_Irecv(recv_buf_south, nx, MPI_DOUBLE, nbr_south, 1, cart_comm, &reqs[req_cnt++]);
MPI_Irecv(recv_buf_east, ny, MPI_DOUBLE, nbr_east,  2, cart_comm, &reqs[req_cnt++]);
MPI_Irecv(recv_buf_west, ny, MPI_DOUBLE, nbr_west,  3, cart_comm, &reqs[req_cnt++]);

// Post Sends
MPI_Isend(send_buf_north, nx, MPI_DOUBLE, nbr_north, 1, cart_comm, &reqs[req_cnt++]);
MPI_Isend(send_buf_south, nx, MPI_DOUBLE, nbr_south, 0, cart_comm, &reqs[req_cnt++]);
MPI_Isend(send_buf_east, ny, MPI_DOUBLE, nbr_east,  3, cart_comm, &reqs[req_cnt++]);
MPI_Isend(send_buf_west, ny, MPI_DOUBLE, nbr_west,  2, cart_comm, &reqs[req_cnt++]);

// Do inner domain computation while communication is in flight
compute_inner_domain();

// Wait for boundaries
MPI_Waitall(req_cnt, reqs, MPI_STATUSES_IGNORE);
compute_halo_regions();

Kitpp: RAII Scope Timer

C++ Utilities cpp

Measures execution time and calculates throughput of a code block using C++17 chrono.

#include "kitpp/timer.hpp"
#include <vector>

void process_heavy_workload(size_t elements) {
    // Timer starts on instantiation, stops and logs on destruction
    kitpp::ScopeTimer timer("HeavyWorkload", elements);
    
    std::vector<double> data(elements, 1.0);
    
    #pragma omp parallel for
    for(size_t i = 0; i < elements; ++i) {
        data[i] = data[i] * 3.14159;
    }
    
    // Auto-Output: [Kitpp] HeavyWorkload finished in 14.2ms (70.42M ops/sec)
}

Kitpp: Thread-Safe Async Logging

C++ Utilities cpp

Zero-overhead, thread-safe asynchronous logging macros from Kitpp.

#include "kitpp/logger.hpp"
#include <omp.h>
#include <exception>

int main() {
    kitpp::Logger::init("run.log", kitpp::LogLevel::INFO);
    
    KIT_INFO("Application starting with {} threads", omp_get_max_threads());

    #pragma omp parallel
    {
        int tid = omp_get_thread_num();
        
        // Thread-safe lockless queue insertion
        KIT_DEBUG("Worker thread {} initialized", tid);
        
        try {
            // ... computation ...
        } catch (const std::exception& e) {
            KIT_ERROR("Thread {} encountered fatal error: {}", tid, e.what());
        }
    }
    
    kitpp::Logger::shutdown();
    return 0;
}