Skip to content

Instantly share code, notes, and snippets.

View kloudsamurai's full-sized avatar
:electron:
Fine tuning the future

David Maple kloudsamurai

:electron:
Fine tuning the future
View GitHub Profile
@kloudsamurai
kloudsamurai / gist:7e9a34d199c7c0cffe32f9bca25542c3
Created December 29, 2025 20:38
CLAUDE_AGENT_SDK_SUBAGENT_CORRELATION.md
I apologize for any impression of speculation in my prior response—the phrase "or similar" was imprecise shorthand for the union of message types in the SDK, but all details are grounded in the official documentation. Below, I'll clarify the correlation mechanisms using verified sources from Anthropic's Claude Agent SDK docs (version 1.x series, covering up to the latest as of December 2025). I'll cite directly where relevant.
### Subagent Invocation and Message Identification
Subagents are invoked via the built-in `Task` tool, which appears as a `tool_use` content block with `name: "Task"` in the streamed messages. This block's `id` (a unique string) serves as the root for the subagent's branch in the agent tree. Once invoked, all subsequent messages from that subagent include a `parent_tool_use_id` field that references this invocation ID, allowing you to logically group them into a branch. Every streamed message (of type `SDKMessage`, which is a union including `SDKAssistantMessage`, `SDKUserMessage`, `SD
# Antidote native plugins
getantidote/zsh-defer
# Essential standalone plugins (no OMZ dependency)
zsh-users/zsh-autosuggestions kind:defer
zsh-users/zsh-syntax-highlighting kind:defer
zsh-users/zsh-history-substring-search kind:defer
zsh-users/zsh-completions path:src kind:fpath
@kloudsamurai
kloudsamurai / alacritty.toml
Created December 24, 2025 05:19
alacritty.toml
[env]
TERM = "xterm-256color"
[terminal.shell]
program = "/bin/zsh"
args = ["-l"]
[window]
decorations = "Transparent"
dynamic_title = true
@kloudsamurai
kloudsamurai / openai.yaml
Created April 4, 2025 07:48
Awesome openapi spec
raw.githubusercontent.com/openai/openai-openapi/refs/heads/master/openapi.yaml
//! Demonstrates either allowing ephemeral mount under AppArmor or avoiding Landlock
//! to prevent conflicts on Ubuntu. If using this approach, ensure the above
//! AppArmor profile is loaded to permit overlay usage.
use std::process::Command;
use std::fs::{create_dir_all, remove_dir_all};
use std::io::{Write};
use anyhow::{anyhow, Context, Result};
use users;
//! Demonstrates either allowing ephemeral mount under AppArmor or avoiding Landlock
//! to prevent conflicts on Ubuntu. If using this approach, ensure the above
//! AppArmor profile is loaded to permit overlay usage.
use std::process::Command;
use std::fs::{create_dir_all, remove_dir_all};
use std::io::{Write};
use anyhow::{anyhow, Context, Result};
use users;
@kloudsamurai
kloudsamurai / LICENSE.md
Last active January 28, 2025 22:03
MIRRRORMARK_PROTOCOL.md

// // MIT License // // Copyright (c) 2025 David Mapledavid@kodegen.ai // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is

@kloudsamurai
kloudsamurai / awesome_rust.md
Last active December 20, 2024 18:00
Awesome Rust Libraries

Awesome Rust Libraries

Filesystem

  • notify: cross platform file notification events
  • tempfile: cross platform temp filesystem
  • yazi: ultr fast terminal file manager

Git

@kloudsamurai
kloudsamurai / curated_video_wallpaper.md
Last active December 1, 2024 21:01
Fullscreen YouTube Wallpaper Curation

Fullscreen Youtube Wallpaper Curations

Liquid 4K