- Dispatch: before spawning a sub-agent, read the
dispatchskill and use the Dispatch agent (paired). Zero context by default; leaking context on purpose is the rare exception. For read-only fact gathering, read thescoutskill and use the scout agent (paired). - Model (every sub-agent, Dispatch included): always pass
model, the cheapest that can do the job:haikufor read-only lookups (Explore, scout),sonnetfor most work,opusonly for planning, design or hard judgment, with a reason. Use Fable as a consultant only when directed by the operator. Never let a sub-agent silently inherit the session's model.
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
| using System.Collections.Concurrent; | |
| using System.Diagnostics; | |
| namespace TrackingTaskScheduler; | |
| /// <summary> | |
| /// A custom TaskScheduler that tracks active tasks and provides completion notification | |
| /// when all tasks have finished executing. | |
| /// </summary> | |
| /// <remarks> |
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
| // universal-websocket-base.ts | |
| // Minimal WebSocket base with state-aware, timeoutable async connect() | |
| // Built on @tsdotnet/disposable's AsyncDisposableBase. | |
| // | |
| // Deps: | |
| // npm i rxjs @tsdotnet/disposable | |
| // | |
| // Implement in a subclass (Browser/Node/K6): | |
| // protected _open(url: string, opts?: OpenOptions): void | |
| // protected _send(data: WsMessage): void |
This file guides AI and human contributors in writing clean, modern TypeScript code. It reflects best practices as of 2025, aligned with our team’s priorities.
- Readability above all else: Code must be easy to follow, even by new contributors or AI tools.
- Concise and clean: Prefer clarity over cleverness. Avoid unnecessary abstraction.
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
| function Git-Worktree-List { | |
| git worktree list | |
| } | |
| function Copy-UntrackedFiles { | |
| param ( | |
| [string]$SourcePath, | |
| [string]$TargetPath | |
| ) |
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
| using System; | |
| using System.Buffers; | |
| using System.IO; | |
| using System.Security.Cryptography; | |
| using System.Text.Json; | |
| using System.Threading; | |
| using System.Threading.Tasks; | |
| public static class SymmetricAlgorithmExtensions | |
| { |
BenchmarkDotNet=v0.13.1, OS=Windows 10.0.19043.1237 (21H1/May2021Update)
Intel Core i7-7500U CPU 2.70GHz (Kaby Lake), 1 CPU, 4 logical and 2 physical cores
.NET SDK=6.0.100-rc.1.21463.6
[Host] : .NET 6.0.0 (6.0.21.45113), X64 RyuJIT [AttachedDebugger]
Job-CKZXSH : .NET 6.0.0 (6.0.21.45113), X64 RyuJIT
InvocationCount=1 UnrollFactor=1 NewerOlder