aethershell 12.0.2

The world's first multi-agent shell with typed functional pipelines and multi-modal AI
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Agent that can list files and run safe external commands (whitelist via env)
# Be sure to allow commands:
#   export AGENT_ALLOW_CMDS=ls,git

// This example calls a live AI provider. Without one it says so and stops,
// rather than failing partway through with a provider error.
if env("AETHER_AI") == null {
  print("Skipping: set AETHER_AI (openai, ollama, irongate or compat) plus the matching API key to run this example.")
}
if env("AETHER_AI") == null { exit(0) }

goal = "Find the three largest files in the current directory and report their names and sizes."

# The second argument is tool names: "ls" (builtin table) and "!git" (external)
# The third argument is max_steps.
agent goal ["ls","!git"] 6
  | print