Wrapper skill for the TMUX Swarm toolkit by Alastair Thomson. Original repo: https://github.com/AlastairThomson/Medium
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // src/timestamp-inject.ts | |
| import { readFileSync } from "fs"; | |
| /*! | |
| * Timestamp Injection Hook (UserPromptSubmit) | |
| * | |
| * Injects the current local time into every prompt as additionalContext, | |
| * enabling time-aware capabilities: | |
| * - Session pacing alerts | |
| * - Elapsed-time diagnostics | |
| * - Calendar awareness |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // src/session-id-inject.ts | |
| import { readFileSync } from "fs"; | |
| /*! | |
| * SessionID Injection Hook (SessionStart) | |
| * | |
| * Injects the current session ID into SessionStart as additionalContext, | |
| * enabling session-aware capabilities | |
| * in your hooks. This is especially useful for tracking and debugging | |
| * conversations across multiple interactions. | |
| */ |
| name | permission-tuner | ||||
|---|---|---|---|---|---|
| description | Analyze permission logs and optimize settings.local.json to reduce permission prompts | ||||
| allowed-tools |
|
Analyze the permission-requests.jsonl log to find frequently prompted permissions, then batch-update settings.local.json to reduce interruptions.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // src/bash-error-pause.ts | |
| import { readFileSync } from "fs"; | |
| //! @hook PostToolUse:Bash @preserve | |
| var WARNING_PATTERNS = [ | |
| /\bwarn(ing)?\b/i, | |
| /\bdeprecated\b/i, | |
| /\bWARN\b/ | |
| ]; | |
| var ERROR_PATTERNS = [ | |
| /\berror\b/i, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { describe, it, expect } from "vitest"; | |
| import { | |
| processInput, | |
| isSubagentTypeValid, | |
| suggestAgents, | |
| buildDenyResponse, | |
| type HookInput, | |
| } from "../agent-subagent-guard"; | |
| describe("agent-subagent-guard", () => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Get-SystemInfo.ps1 | |
| # Outputs key system hardware information | |
| $cpu = Get-CimInstance -ClassName Win32_Processor | Select-Object -First 1 | |
| $os = Get-CimInstance -ClassName Win32_OperatingSystem | |
| $gpus = Get-CimInstance -ClassName Win32_VideoController | |
| $info = [ordered]@{ | |
| "Windows Version" = "$($os.Caption) ($($os.Version))" | |
| "Processor Brand" = $cpu.Name.Trim() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """Re-embed archival_memory learnings from BGE to Voyage embeddings. | |
| Converts all stored learnings from local BGE (BAAI/bge-large-en-v1.5) to | |
| Voyage embeddings (voyage-code-3 by default). Both are 1024-dim so no schema | |
| change is needed for the embedding column. | |
| Uses an embedding_model column as a progress queue — idempotent and restartable. | |
| Any row not yet marked as the target model gets processed. If an API call fails | |
| after retries, that row is skipped and will be picked up on the next run. |
mkcert is a simple tool for making locally-trusted development certificates. It is available for a number of platforms. Youu can find additional install instructions and project details at https://github.com/FiloSottile/mkcert
I'm currently working from my Mac, so homebrew it is:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from collections import defaultdict | |
| def parse_gcode(path): | |
| usage = defaultdict(float) | |
| curr_t = None | |
| prev_e = 0.0 | |
| with open(path) as f: | |
| for line in f: | |
| if line.startswith('T') and line[1].isdigit(): |
NewerOlder