PSClaudeCode: a 250-line PowerShell reimplementation of Claude Code's agent loop

dfinke · x · 2026-09-28

Developer dfinke open-sourced PSClaudeCode, a Claude Code reimplementation in just 250 lines of PowerShell (Install-Module PSClaudeCode). The repo demonstrates the core agent loop — command runner evolving into function calling, file operations and conversations, with a permissions layer — via staged files (agent-v0/v1/v2). In the demo, the agent has no built-in CSV or Excel logic: it autonomously reads monthly sales CSVs and produces quarterly Excel workbooks using the ImportExcel module through iteration and tool use. A compact way to see how agents like Claude Code actually work under the hood.

Original post →

More from coding & agent

coding & agent channel →