This directory vendors pi-mono as source so MiniMax can patch, validate, and ship agent-loop fixes without waiting on upstream release cadence.
https://github.com/earendil-works/pi-mono.gitrefs/tags/v0.79.128df940f0d07b65284849a483be7b06e2ca046eeNo upstream source files are changed in the baseline import.
Parser.ParseInput, ScriptBlock.Create, and other restricted .NET APIs before user commands. Under enterprise App Control / AppLocker ConstrainedLanguage, the wrapper therefore failed before commands such as Python could run.packages/coding-agent (@earendil-works/pi-coding-agent).LanguageMode on first execution per PowerShell executable. FullLanguage retains UTF-8, #requires, and the full script-block path. ConstrainedLanguage transfers the original command through a one-use Unicode environment variable, removes it from the child environment, then uses Invoke-Expression within the same restricted language mode, without restricted .NET APIs.cd third_party/pi-mono/packages/coding-agent && node ../../../../node_modules/vitest/dist/cli.js --run test/graceful-terminate.test.ts covers preserved FullLanguage behavior and restricted-API avoidance, long commands, and Chinese command transport in ConstrainedLanguage; pnpm --filter @earendil-works/pi-coding-agent... build validates the affected vendor build; node scripts/test/focused-vitest.mjs --package @mavis/local-runtime packages/local-runtime/test/unit/local-background-bash-runner.test.ts packages/local-runtime/test/unit/local-background-bash-executor.test.ts checks runtime consumers. Real Windows App Control / AppLocker acceptance remains external.output_config.effort without falling back to legacy thinking.type=enabled plus budget_tokens.packages/ai (@earendil-works/pi-ai).[1m] for thinking classification; BYOK context configuration and the wire model ID remain untouched.packages/ai (@earendil-works/pi-ai), Codex Responses SSE transport and focused regression coverage.packages/ai/test/openai-codex-stream.test.ts (28 passed); downstream shared (178 passed), Agent Core (151 passed), and Cloud Runtime (10 passed) error-classification tests; targeted Biome, pinned-dependency, TypeScript-import, and browser-smoke checks passed. Full vendored npm run check remains blocked by the ignored canonical package-lock.json input and existing unrelated test type errors; pnpm check:pi-vendor-resolution remains blocked by the existing Local Runtime V2 Pi dependency allow-list drift.packages/coding-agent (@earendil-works/pi-coding-agent), built-in Bash and Read result details.packages/coding-agent/test/tools.test.ts; downstream @mavis/agent-tools Desktop Bash/Read and Local Runtime v2 vendor PostToolUse tests.UserPromptSubmit Plugin Hook can return continue: false after the ordinary turn_end stop check. Added a dedicated post-steering admission seam so the active run emits agent_end without issuing another provider request or reporting a failed turn.packages/agent (@earendil-works/pi-agent-core).terminate hint intentionally stops only when every result in a batch opts in, so it cannot represent a global Hook decision in a mixed parallel batch.packages/agent (@earendil-works/pi-agent-core), tool-hook result contracts and agent-loop batch termination.terminateAgent to before/after-tool results. Sequential execution stops immediately after publishing the current call result; parallel preflight stops admitting later calls. Calls that never execute receive synthetic error ToolResults so provider history remains fully paired. An already-started parallel batch stops after publishing that batch. The existing every-result terminate behavior remains unchanged.packages/agent/test/agent-loop.test.ts; downstream @mavis/agent-core and Local Runtime v2 Hook tests.PostToolUse.duration_ms measures tool execution only and excludes PreToolUse and permission latency. The existing tool_execution_start event intentionally fires before admission, so it cannot provide that timestamp.packages/agent (@earendil-works/pi-agent-core), loop config and Agent forwarding.onToolExecutionStart observation after argument validation and all before-tool admission succeeds, immediately before tool.execute; blocked calls never fire it.packages/agent/test/agent-loop.test.ts; downstream Cloud root/child Plugin Hook timing tests.AssistantMessage projection.packages/ai (@earendil-works/pi-ai), the shared stream option plus Anthropic Messages, OpenAI Chat Completions, OpenAI Responses, and Codex Responses parsed-event loops.pnpm --filter @earendil-works/pi-ai build; focused provider-observer and Local Runtime Inspector tests.packages/ai (@earendil-works/pi-ai), packages/coding-agent (@earendil-works/pi-coding-agent), packages/local-runtime (legacy Codex OAuth owner removed), and packages/local-runtime-v2 (sole Runtime OAuth owner).pnpm --filter @earendil-works/pi-ai exec vitest --run test/openai-codex-oauth.test.ts (10 passed); pnpm --filter @earendil-works/pi-coding-agent exec vitest --run test/auth-storage-fetch.test.ts (1 passed); local-runtime-v2 Codex OAuth focused test (17 passed); local-runtime-v2 typecheck; Pi AI, TUI, Agent, and Coding Agent builds.packages/coding-agent (@earendil-works/pi-coding-agent), specifically the image resize boundary and its PNG, JPEG, GIF, and WebP header checks.ImageProcessorUnavailableError when resizing, recompression, or full decoding is required. This benefits the read tool and CLI image attachment path without host-specific result parsing.CancellableLoader omitted an explicit constructor declaration, so the emitted declaration exposed untyped callback parameters to strict workspace typechecking. BorderedLoader passed the two theme callbacks contextually and was rejected for implicit any parameters.packages/tui (@earendil-works/pi-tui), CancellableLoader component.CancellableLoader constructor parameters explicitly (TUI, (str: string) => string color callbacks, optional message and indicator options) and forward them to the Loader superclass; runtime behavior is unchanged. The caller-side string annotations are not needed, keeping the vendored packages/coding-agent source at its imported baseline.pnpm --filter @earendil-works/pi-tui build; pnpm --filter @earendil-works/pi-coding-agent build; downstream @mavis/cli typecheck.__dirname. As a result, @image could reach the read tool while returning text-only metadata instead of an image block; the loader also collapsed a missing processor into the same result as an image that exceeded the inline size limit.packages/coding-agent (@earendil-works/pi-coding-agent), specifically the Photon loader, image-resize boundary, read tool, CLI file processor, and focused caller regressions.@image files to structured attachments and label terminal reads as Read Image.pnpm release:mcode:test:dry-run, including isolated tarball install, real read-tool image delivery, missing-processor classification, and uninstall smoke. pnpm check:pi-vendor-resolution remains blocked by the unchanged packages/local-runtime-v2 Pi dependency allow-list drift already present on origin/preview_train.Command-click hit testing to only part of the wrapped link when the sequence used ST (ESC \\) terminators. BEL termination is recognized consistently, and the existing wrapping logic closes/reopens the active hyperlink on every physical line.packages/tui (@earendil-works/pi-tui), hyperlink() output in src/terminal-image.ts plus regression coverage in test/terminal-image.test.ts and test/wrap-ansi.test.ts.node --test --import tsx third_party/pi-mono/packages/tui/test/terminal-image.test.ts third_party/pi-mono/packages/tui/test/wrap-ansi.test.ts; pnpm --filter @earendil-works/pi-tui build; local @minimax/code focused Markdown/foundation tests and build.MiniMax integration files added in this spike:
.minimax-vendor.json records the upstream source and local ownership metadata.MINIMAX_CHANGES.md tracks MiniMax-only changes and upstreaming status.../AGENTS.md defines the MiniMax vendored-code workflow for hotfixes, validation, and upstream sync.npm run copy-assets. The nested npm script can lose pnpm's package-local .bin path, so shx is not found even though the preceding shx chmod succeeds.packages/coding-agent (@earendil-works/pi-coding-agent), build-time asset copying only.shx glob/copy pipeline with a Node.js script that preserves the same JSON, PNG, HTML, CSS, and JavaScript asset set on every platform.node --test scripts/copy-assets.test.mjs; pnpm --filter @earendil-works/pi-coding-agent build; downstream Electron build remains covered by the Windows Jenkins job.errorMessage inside catch, leaving hosts with generic text such as Connection error. and no access to cause, DNS codes, HTTP status, or SDK-specific fields.StreamOptions, built-in text providers, and the faux provider in packages/ai (@earendil-works/pi-ai).onProviderError(error, model) before error formatting. Providers isolate callback exceptions so they cannot replace the original result. Serialization, encryption, and network reporting remain host-owned; third-party code does not depend on the MiniMax runtime.pnpm --filter @earendil-works/pi-ai exec vitest --run test/openai-completions-retry.test.ts --reporter=dot; pnpm --filter @earendil-works/pi-ai build; focused tests and builds for downstream agent-core and local-runtime.undici 8.3.0 advisories affecting TLS proxying, WebSocket fragmentation, cache parsing, response synchronization, header/cookie handling, and process stability. Its minimatch 10.2.5 closure also resolved a vulnerable brace-expansion release with an unbounded-expansion OOM path.packages/coding-agent (@earendil-works/pi-coding-agent), dependency metadata only.undici 8.10.0 and minimatch 10.2.6; no MiniMax product logic is added to the vendored source.pnpm --filter @earendil-works/pi-coding-agent build; published npm-shrinkwrap.json audit 0 vulnerabilities; MCode Unit + coverage 113 files / 1125 tests; compiled CLI 26/26; embedded Runtime 4/4; PTY 16/16; release contracts 73/73; Agent Tools 686/686; MCP module 14/14; fresh MCode tarball npm audit --omit=dev 0 vulnerabilities and offline install smoke PASS.packages/ai (@earendil-works/pi-ai), Anthropic Messages history serialization only.6731a0ba9e499d71916dd69200c05dfcbc0fa3e6 / upstream PR #6457. Adapt the predicate to the vendored v0.79.1 src/providers/anthropic.ts path without migrating later Pi package structure, versions, lockfile, or .minimax-vendor.json baseline.pnpm --filter @earendil-works/pi-ai test (349 passed, 727 skipped); pnpm --filter @mavis/agent-core exec vitest run --config vitest.config.ts test/unit/pi-ai-thinking-tiered.test.ts --reporter verbose (18 passed); pnpm --filter @earendil-works/pi-ai build; pnpm check:pi-vendor-resolution.spawn("taskkill", ...). When the utility process could not resolve the bare command, Node emitted an asynchronous error event that was not handled by the surrounding synchronous try/catch, crashing and reforking the runtime and leaving the active turn interrupted.packages/coding-agent (@earendil-works/pi-coding-agent), src/utils/shell.ts process-tree termination paths.taskkill.exe from SystemRoot / windir, attach an error listener to every graceful, forced, and emergency taskkill spawn, and fall back to killing the root shell so the Bash timeout/abort can settle even if the native tree killer is unavailable.node ../../../../node_modules/vitest/vitest.mjs --run test/windows-taskkill.test.ts test/graceful-terminate.test.ts test/bash-close-hang-windows.test.ts; pnpm --filter @earendil-works/pi-coding-agent build; downstream pnpm --filter @mavis/agent-tools exec vitest run test/desktop/local-bash-timeout.test.ts.net.fetch for enterprise CA, PAC, packet-capture proxy, and system proxy behavior, but expired OAuth credentials were refreshed from pi-coding-agent through provider defaults that could fall back to Node/global fetch. This left Codex/Anthropic/GitHub Copilot refresh requests vulnerable to the same runtime proxy failure after the user had already logged in successfully.packages/ai (@earendil-works/pi-ai) and packages/coding-agent (@earendil-works/pi-coding-agent).OAuthRequestOptions.fetch, pass it through refreshOAuthToken / getOAuthApiKey, and thread it through AuthStorage.getApiKey into OpenAI Codex, Anthropic, and GitHub Copilot refresh providers.pnpm --filter @earendil-works/pi-ai exec vitest --run test/openai-codex-oauth.test.ts test/openai-codex-stream.test.ts; pnpm --filter @earendil-works/pi-coding-agent exec vitest --run test/auth-storage-fetch.test.ts; pnpm --filter @earendil-works/pi-ai build; pnpm --filter @earendil-works/pi-coding-agent build.auto transport still tried WebSocket first. WebSocket construction cannot use the host's injected fetch, so enterprise proxy / CA handling was bypassed in the default Codex path.packages/ai (@earendil-works/pi-ai).OpenAICodexResponsesOptions.fetch is provided and transport is left at auto, route Codex through SSE so the host-owned fetch implementation handles egress. Explicit transport: "websocket" / "websocket-cached" remains unchanged for callers that intentionally choose WebSocket.pnpm --filter @earendil-works/pi-ai exec vitest --run test/openai-codex-stream.test.ts; pnpm --filter @earendil-works/pi-ai build; downstream pnpm --filter @mavis/local-runtime exec vitest run --config vitest.config.ts test/e2e/provider-headers.e2e.test.ts.agent.minimaxi.com or BYOK-compatible endpoints, local turns fail before an upstream trace/request id is issued.packages/ai (@earendil-works/pi-ai).fetch to stream/image options, copy it through simple provider options, pass it to internally constructed Anthropic/OpenAI SDK clients, and use it for the OpenAI Codex Responses SSE fallback request.corepack pnpm --filter @earendil-works/pi-ai exec vitest --run test/fireworks-models.test.ts test/openai-completions-retry.test.ts test/openai-codex-stream.test.ts test/openrouter-images.test.ts; corepack pnpm --filter @earendil-works/pi-ai build.AgentAgentLoopConfig.shouldStopAfterTurn already stops before polling steering and follow-up queues, but the stateful Agent wrapper did not expose or forward it. Hosts therefore could not terminate a rejected response at the same step boundary and a queued message could start another provider call first.packages/agent (@earendil-works/pi-agent-core).shouldStopAfterTurn to AgentOptions and the mutable wrapper callback surface, then forward it into the existing low-level loop config.pnpm --filter @earendil-works/pi-agent-core test -- agent.test.ts -t 'should stop after a turn'; pnpm --filter @earendil-works/pi-agent-core build; downstream pnpm --filter @mavis/agent-core test -- pi-turn-runner.test.ts -t 'stops before consuming'.realpath completed even though the keys were independent. The reftable watcher tests waited for the transient state execFile.mock.calls.length === 1, which could be skipped under root-suite load and turn a real duplicate into a timeout instead of reaching the exact-count assertion.packages/coding-agent (@earendil-works/pi-coding-agent), tests only.node ../../node_modules/vitest/dist/cli.js --run test/tool-execution-component.test.ts test/tools.test.ts test/file-mutation-queue.test.ts test/footer-data-provider.test.ts; five consecutive isolated footer-data-provider.test.ts runs; complete @earendil-works/pi-coding-agent package test./input_tokens count bodies from the same Pi message/tool conversion helpers used by the OpenAI Responses generator, without importing unexported source paths from outside the package boundary.packages/ai (@earendil-works/pi-ai).convertResponsesMessages / convertResponsesTools and their option types from the package root.pnpm --filter @mavis/local-runtime typecheck; pnpm --filter @mavis/local-runtime exec vitest run test/unit/local-remote-token-counter.test.ts test/unit/local-context-auto-compaction-remote-token-gate.test.ts test/unit/local-context-auto-compaction-token-gate.test.ts test/unit/local-dynamic-max-tokens.test.ts; pnpm --filter @mavis/local-runtime exec vitest run test/e2e/local-context-auto-compaction-gate.e2e.test.ts.anthropic-messages; the product also needs GPT-5.6's independent max effort without importing a later Pi release wholesale.packages/ai, packages/agent, and the minimum packages/coding-agent type/build adapters. MiniMax resolver and token-budget glue remains in packages/local-runtime.7df2a94e0fb1606aace92e662a176d668b93d20d (GPT-5.6 metadata), fbdd46389c3a0c03b62f5e9eabe31a85044ef8ce (first-class Max), 6c735db0605a9f453ecea793d2ff9524c6416448 (remove the nonexistent bare alias), and a9ecf301fb56c688570e0db0299926ce9009dbb8 (final limits and pricing metadata). Baseline, package versions, lockfile, and .minimax-vendor.json remain v0.79.1.earendil-works/pi#6097 was closed as completed after maintainer confirmation that Max had landed. The v0.79.1 Cost type has no pricing tiers, so this backport keeps base costs and omits the later tiered pricing shape.thinking.effort, and copies only the catalog's string thinkingLevelMap.max for an explicitly Max-capable model. Provider dispatch remains keyed by provider/API/model metadata rather than request payload presence.pnpm --filter @earendil-works/pi-ai exec vitest --run test/gpt-5-6-max-thinking.test.ts; pnpm --filter @earendil-works/pi-coding-agent... build; focused local-runtime resolver, token-budget, remote-counter, and GPT-5.6 wire E2E suites. pnpm check:pi-vendor-resolution remains blocked by the baseline packages/agent-runtime dependency guard, outside this patch.@earendil-works/pi-ai buildmodels.dev, OpenRouter, Vercel AI Gateway). The upstream build script regenerated model files before compiling, which made routine workspace builds non-deterministic and could leave generated files in a TypeScript-incompatible fallback shape when DNS failed.packages/ai (@earendil-works/pi-ai).refresh-models script, but make build compile the committed generated baselines only.pnpm --filter @earendil-works/pi-ai build; pnpm --filter @mavis/local-runtime... build; pnpm test:archon-guards.claude-fable-5 entries because its allow-list only covered Opus 4.6/4.7/4.8 and Sonnet 4.6.packages/ai (@earendil-works/pi-ai).pnpm --filter @earendil-works/pi-ai exec vitest --run test/anthropic-adaptive-thinking-models.test.ts --reporter verbose; pnpm --filter @earendil-works/pi-ai build.--session-id read-only regression file had one fork-target collision assertion that failed before reaching collision handling when the local test environment has no selected-model API key. Keep the metadata/read-only coverage in the same file and remove this unstable assertion.packages/coding-agent (@earendil-works/pi-coding-agent).pnpm --filter @earendil-works/pi-coding-agent exec vitest --run test/session-id-readonly.test.ts --reporter verbose; pnpm --filter @earendil-works/pi-coding-agent build.applyEditsToNormalizedContent, when any edit fell back to fuzzy matching, the whole file was rewritten with normalizeForFuzzyMatch before saving. A single fuzzy edit silently ASCII-folded every smart quote, Unicode dash, special space (including U+3000) and stripped all trailing whitespace across the entire file — a data-fidelity bug that is especially harmful for CJK / full-width content. Fuzzy matching now only locates the target: the normalized-space hit is mapped back to a span of the original content (per-line NFKC column mapping with monotonic prefix binary search) and the replacement splices that span only; bytes outside matched spans are never rewritten. Also adds a disproportionate-match guard for fuzzy hits (opencode thresholds) and improves self-correction hints in error messages (not-found suggests re-reading the file; duplicate errors list the first match line numbers).packages/coding-agent (@earendil-works/pi-coding-agent), src/core/tools/edit-diff.ts only; public fuzzyFindText result now always reports original-content coordinates and no longer exposes contentForReplacement (no other in-repo consumers).test/edit-diff-fuzzy-span.test.ts.pnpm --filter @earendil-works/pi-coding-agent exec vitest --run test/edit-diff-fuzzy-span.test.ts test/edit-tool-legacy-input.test.ts test/edit-tool-no-full-redraw.test.ts test/file-mutation-queue.test.ts; pnpm --filter @earendil-works/pi-coding-agent build.task_stop (and the per-command timeout) aborted through createLocalBashOperations's onAbort → killProcessTree, which sent an immediate SIGKILL (signal 9, uncatchable) to the process group. A script's trap ... TERM/INT cleanup handler therefore never ran — cleanup logic was silently skipped and its artifacts (marker/temp files) leaked. Confirmed by the mcode-test E2E harness (case L7) driving the real CLI TUI LOG runtime. This is the abort()-one-stage limitation deferred in .harness/docs/design/tools-optimize/bash-tool-optimization.md §5.packages/coding-agent (@earendil-works/pi-coding-agent), src/utils/shell.ts (new terminateProcessTreeGracefully + PROCESS_TREE_TERM_GRACE_MS) and src/core/tools/bash.ts (abort + timeout paths call the graceful variant). The pending SIGKILL escalation is cancelled only once the process GROUP is empty (kill(-pid, 0) throws ESRCH); if a command backgrounded a SIGTERM-ignoring descendant that outlives the shell, the escalation stays armed so the grace-window SIGKILL still reaps it (waitForChildProcess resolving on shell exit is not proof the group is gone). The emergency node-exit cleanup (killTrackedDetachedChildren → killProcessTree) intentionally keeps immediate SIGKILL.test/graceful-terminate.test.ts (Unix-guarded: SIGTERM lets a TERM trap run; ignored-SIGTERM escalates to SIGKILL; canceller disarms escalation; abort with a SIGTERM-ignoring backgrounded descendant still SIGKILLs it — no early cancel).pnpm --filter @earendil-works/pi-coding-agent exec vitest --run test/graceful-terminate.test.ts; pnpm --filter @earendil-works/pi-coding-agent build; downstream pnpm --filter @mavis/local-runtime exec vitest run --config vitest.config.ts test/unit/local-background-bash-runner.test.ts (L7 regression) + mcode-test node bin/run-case.mjs L7.fuzzyFindText widens outward (start rounds down, end rounds up) so a replacement never splits an original code point. That widening could otherwise SWALLOW a whole compatibility character the model only partly named — e.g. oldText "ix" against a line "fix" (NFKC fi→fi) matches in normalized space starting inside the ligature, then the back-map maps onto the entire "fix" and the replacement silently destroys the fi. Added a fidelity guard: after mapping, normalizeForFuzzyMatch(content.slice(start, end)) must reproduce exactly the located fuzzyOldText; if widening pulled in extra characters it won't, so the match fails closed (returns not-found) and the model retries with an unambiguous oldText instead of clobbering bytes it never named. Legitimate fuzzy matches (whose mapped span re-normalizes to exactly the located text) are unaffected.packages/coding-agent (@earendil-works/pi-coding-agent), src/core/tools/edit-diff.ts only (fuzzyFindText). Extends the 2026-07-04 span-mapping change.test/edit-diff-fuzzy-span.test.ts (ligature-partial-name fails closed; a full-width run named cleanly still applies — guard not over-strict).pnpm --filter @earendil-works/pi-coding-agent exec vitest --run test/edit-diff-fuzzy-span.test.ts test/edit-tool-legacy-input.test.ts test/edit-tool-no-full-redraw.test.ts test/file-mutation-queue.test.ts; pnpm --filter @earendil-works/pi-coding-agent build.SIGKILL is uncatchable, so an embedded CLI/TUI host could die before its JS abort and shutdown handlers reclaimed Pi's detached Bash process group. The B-A4 mcode-test left the long-running script alive after the CLI host was killed, allowing continued file, network, CPU, port, and lock side effects.packages/coding-agent (@earendil-works/pi-coding-agent), src/utils/shell.ts (one shared detached IPC guardian per host process) and src/core/tools/bash.ts (opt-in createLocalBashOperations({ parentDeathGuard: true })). The default remains off; packages/local-runtime enables it only for managed local Bash, so cloud-runtime sandbox lifecycle is unchanged.sh gate independent of the command PATH, then execs the real shell after ACK, preserving shell PID=PGID; Windows uses a minimal-environment Node launcher and sends the real shell environment with the post-ACK payload, so host NODE_OPTIONS cannot poison the launcher. PowerShell 5.1 encoding setup uses a short inline launcher and sends the untouched command over stdin into an in-memory ScriptBlock, preserving first-statement syntax without Base64 argv expansion, .ps1 policy checks, or crash-persistent command files; it validates the parsed top-level ScriptRequirements before execution. Stdout/stderr use independent streaming decoders, including the truncated full-output file, so interleaved split UTF-8 bytes remain valid text. If the host IPC lease disappears, the guardian terminates every armed process group with SIGTERM → 3s grace → SIGKILL; Windows uses native taskkill /T then /F /T.pnpm --filter @earendil-works/pi-coding-agent exec vitest --run test/graceful-terminate.test.ts test/windows-taskkill.test.ts test/bash-close-hang-windows.test.ts test/tools.test.ts; pnpm --filter @earendil-works/pi-coding-agent build; node scripts/test/focused-vitest.mjs --package @mavis/local-runtime packages/local-runtime/test/unit/local-background-bash-runner.test.ts packages/local-runtime/test/unit/local-background-bash-executor.test.ts packages/local-runtime/test/unit/local-background-task.test.ts.onProcessEvent in BashOperations.exec of @earendil-works/pi-coding-agent. Default behavior is unchanged and observer exceptions are isolated. Guardian launchers and ordinary shells are explicitly distinguished.local-runtime-v2 and verify workspace:* and source resolution.pnpm --filter @earendil-works/pi-coding-agent build; pnpm --filter @earendil-works/pi-coding-agent exec vitest --run test/bash-process-observation.test.ts test/bash-close-hang-windows.test.ts; affected local-runtime-v2 sandbox focused tests. Windows-only tests were skipped on macOS; no real Windows validation is claimed.For future changes, add one entry per MiniMax patch with:
Agent.steerBatch added to @earendil-works/pi-agent-core; individual steer / followUp and default modes remain compatible.pnpm --filter @earendil-works/pi-agent-core build; node scripts/test/focused-vitest.mjs --package @earendil-works/pi-agent-core --skip-workspace-build third_party/pi-mono/packages/agent/test/agent.test.ts (19 tests); agent-core focused pi-turn-runner.test.ts covers local batches and machine-only individual consumption.