Skip to content

Instantly share code, notes, and snippets.

@shaoyanji
shaoyanji / README.md
Last active September 23, 2026 10:16
TypeSafe Jev Kelly Resource Allocation Skill for Agent Reasoning Harnesses

TypeSafe Jev Kelly Resource Allocation for Agent Reasoning Harnesses

Dynamic risk-adjusted resource allocation for agentic reasoning harnesses using TypeSafe Jev System One judgments and the Kelly criterion.

Instead of burning tokens on sequential chain-of-thought monologues to decide if an idea is worth exploring, this architecture evaluates candidate hypotheses, tool calls, and plan branches in parallel (~500ms). It computes fractional Kelly stakes across pessimistic, base, and optimistic scenarios derived from Rumsfeld epistemic quadrants to size compute budgets: model tier selection (flash_lite / flash / pro), token caps, tool depth, subagent fan-out permissions, and code verification rigor.


Files in this Gist

@shaoyanji
shaoyanji / resume.json
Created September 19, 2026 10:03
Matt Ji JSON Resume (English master, 2026-09-19 AI/retrieval flavor). GitHub MCP cannot overwrite gist b7b844737e6469c9160bf41aa8970068.
{
"basics": {
"email": "matt@bountystash.com",
"image": "https://res.cloudinary.com/de1eajx01/image/upload/v1765739348/lu7yx5irrcpfmisnhfzi.svg",
"signature": "https://res.cloudinary.com/de1eajx01/image/upload/v1765739484/qa7exxxy8xvzzkmjgyxn.png",
"label": "Software Engineer — AI systems, retrieval, evaluation",
"altLabels": [
"Senior AI Software Architect",
"Programmer, Engineer, Consultant"
],
@shaoyanji
shaoyanji / Bridge.cs
Created September 17, 2026 09:37
Rezi Resume MCP Bridge (Stdio to Streamable-HTTP for Antigravity and MCP clients)
using System;
using System.IO;
using System.Net;
using System.Text;
namespace ReziBridge
{
/// <summary>
/// Stdio-to-Streamable-HTTP Bridge for the Rezi Resume MCP Server.
/// Bridges MCP clients expecting stdio transport to Rezi's remote HTTP endpoint (https://api.rezi.ai/mcp).
@shaoyanji
shaoyanji / README.md
Created September 17, 2026 09:35
Rezi <-> JSON Resume Sync Engine (Bilingual EN/DE)

Rezi <-> JSON Resume Sync Engine

Bidirectional synchronization and validation between Rezi.ai's ATS format and JSON Resume (v1.0.0) with bilingual support (English resume.json & German lebenslauf.json).

Features

  • Non-Destructive Pull (from-rezi): Ingests new bullets and summary updates from Rezi without wiping custom fields (image, signature, profiles, meta.theme, courses).
  • Compliant Push (to-rezi): Flattens nested JSON Resume arrays into Rezi's multiline string structure (\n separated).
  • Bilingual Parity Check (check): Verifies chronology, dates, URLs, and entity counts between English and German versions.
  • Diff Inspector (diff): Inspects changes between your local file and remote Rezi before overwriting.

AGENTS.md — Session Handoff Packet

Project: Matt Ji CV / Cover Letter System

File Layout

File Purpose
Ji_Matt_CV.typ Main CV template (used by jobby resume typix)
standalone-cv.typ Standalone CV template (used by jobby resume / jobby deutsch)
#set page(paper: "a4", margin: (left: 2.5cm, right: 2cm, top: 1cm, bottom: 1.5cm))
#set text(font: "JetBrainsMono NFM", size: 10pt)
#set par(leading: 0.5em)
#let name = sys.inputs.at("name", default: "")
#let address = sys.inputs.at("address", default: "")
#let code = sys.inputs.at("code", default: "")
#let phone = sys.inputs.at("phone", default: "")
#let email = sys.inputs.at("email", default: "")
#let company = sys.inputs.at("company", default: "")

GitHub Release Workflow Lessons Learned

Session Summary

This session involved:

  1. Minimizing Go CLI dependencies (removing goldmark library)
  2. Setting up GitHub Actions CI/CD for multi-platform builds
  3. Creating first release with proper binary distribution
Name: trigram_mode_protocol
version: 1.9i
strict: false
output_language: en
dictionary:
"☰": { role: Heaven, op: final_assertion, constraint: illegal if ☵ active, binary: "111" }
"☷": { role: Earth, op: transmission_end, constraint: out_of_band only, binary: "000" }
"☲": { role: Fire, op: evidence_based_reasoning, constraint: requires provenance, binary: "101" }
"☵": { role: Water, op: explicit_uncertainty, constraint: persists until resolved by ☲ OR ☶, binary: "010" }
{
"basics": {
"name": "Matt Ji",
"label": "Interdisziplinärer Praktiker",
"altLabels": [
"Head of Commercial Erneuerbare Energien",
"Portfolio Manager",
"Programmierer, Ingenieur, Berater"
],
"email": "matt@bountystash.com",
export def ytsearch [] {
http get https://www.youtube.com/results?search_query=(input "search> " | url encode)
| split row "var ytInitialData ="
| last
| split row ";</script>"
| first
| from json
| get -o contents.twoColumnSearchResultsRenderer.primaryContents.sectionListRenderer.contents.0.itemSectionRenderer.contents.videoRenderer
| uniq | sort | drop
| select title.runs.text.0 videoId