Build a domain-specific agent harness with PowerShell and PSAISuite
dfinke · x · 2026-09-13
Developer dfinke published a tutorial on building a small custom agent harness in PowerShell using the PSAISuite module, exposing existing PowerShell functions as model-callable tools. Key points: install PSAISuite and configure provider keys via env vars (OpenAIKey, AnthropicKey); the core is Invoke-ChatCompletion, which accepts messages, a model, and tool definitions — PowerShell command names can be passed directly as tools with registration and the tool-calling loop handled; New-AgentHarness picks the model, tools, instructions, and iteration limit for the task, and GetResponse drives the loop. Inspired by LangChain's custom-harness guidance: match the surrounding code to the task. Handy for wiring models into real Windows ops/file tools.
More from coding & agent
- Codex autonomously won a Swiss Air reimbursement worth about a month of PRO 20X — intellectronica · 2026-09-13
- Dev uses Astra with 12 principles of animation to clean up motion — andrew_n_carr · 2026-09-13
- Dev: vibe coding without reading code leaves you helpless at debug time — weswinder · 2026-09-13
- Dev recreates childhood wire-loop toy in browser in under a day with GPT + Blender MCP — chongdashu · 2026-09-13
- SWE builds a 3x RTX 3090, 64GB VRAM local coding workstation: full parts and pitfalls — trytoinfect74 · 2026-09-13
- Behind the Craft episode live: Brex's AI employees, CrabTrap and an OpenClaw life demo — petergyang · 2026-09-13