Skip to content

Commit 2c0487d

Browse files
phurynclaude
andcommitted
demo: add Windows PowerShell twin (portability-demo.ps1) + README note
Same offline audit + both compiles as the .sh, native to PowerShell so Windows users don't need bash. README points to it next to the .sh. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 8029209 commit 2c0487d

2 files changed

Lines changed: 33 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ $ agentlift audit ./examples/team --targets anthropic,google,openai
180180

181181
The audit's `degraded`/`unsupported` rows are exactly the lossy spots a compile would hit — so `audit` tells you what survives before `export` or `deploy` runs.
182182

183-
See the whole thing run offline (audit + both compiles, no API key) in [`demo/`](demo/): `./demo/portability-demo.sh`.
183+
See the whole thing run offline (audit + both compiles, no API key) in [`demo/`](demo/): `./demo/portability-demo.sh` (Windows: `.\demo\portability-demo.ps1`).
184184

185185
A subagent roster is a **universal** capability, not a per-provider lottery: `native` on Anthropic (server-side coordinator), `emulated` elsewhere via agent-as-tool. Confirmed by actually running it on OpenAI (Agents SDK `as_tool`) and Google (ADK `sub_agents`) in [`experiments/subagent-composition`](experiments/subagent-composition/) — the only difference is whether the delegation loop runs in the provider's runtime or yours. Full per-platform test receipts, including a **live Google Agent Engine deploy** (a real `reasoningEngine`, server-side delegation confirmed) and the console/docs links for each provider: [`docs/tested-platforms.md`](docs/tested-platforms.md).
186186

demo/portability-demo.ps1

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# agentlift portability demo (Windows / PowerShell) - a twin of portability-demo.sh.
2+
# Everything here is OFFLINE: no API key, nothing deployed. It shows the compiler,
3+
# not a live deploy.
4+
#
5+
# pip install agentlift # or: pip install -e . (from a clone)
6+
# .\demo\portability-demo.ps1
7+
#
8+
$ErrorActionPreference = "Stop"
9+
$Root = Split-Path -Parent $PSScriptRoot # repo root (parent of demo/)
10+
$Agent = Join-Path $Root "examples\team"
11+
$Out = if ($args.Count -ge 1) { $args[0] } else { Join-Path $Root "demo\out" }
12+
13+
# Use the installed CLI if present, else the module form from a checkout.
14+
if (Get-Command agentlift -ErrorAction SilentlyContinue) {
15+
$AlExe = "agentlift"; $AlArgs = @()
16+
} else {
17+
$AlExe = "python"; $AlArgs = @("-m", "agentlift.cli")
18+
}
19+
20+
if (Test-Path $Out) { Remove-Item -Recurse -Force $Out }
21+
22+
Write-Host "### 1. AUDIT - how portable is examples/team across providers?"
23+
& $AlExe @AlArgs audit $Agent --targets anthropic,google,openai
24+
25+
Write-Host "`n### 2. EXPORT -> Anthropic YAML (the shape the official 'ant' CLI consumes)"
26+
& $AlExe @AlArgs export anthropic-yaml $Agent --out (Join-Path $Out "anthropic")
27+
28+
Write-Host "`n### 3. EXPORT -> Google ADK (Vertex AI Agent Engine scaffold, preview)"
29+
& $AlExe @AlArgs export google-adk $Agent --out (Join-Path $Out "google")
30+
31+
Write-Host "`nDone. One folder -> audited across 3 providers and compiled to 2 formats."
32+
Write-Host "Artifacts: $Out"

0 commit comments

Comments
 (0)