External CLI Agent Runner
Runs frontier CLI coding/terminal agents inside an isolated sandbox under Neusym’s safety rules.
External CLI agents run on your machine with full access to your secrets, network, and files, with no budget cap.
External CLI agents work inside a locked offline box, respect file leases, and hand back clean verifiable patches.
What It Does (In Plain English)
Instead of writing a custom coding agent from scratch, CLI Executor lets you run external CLI agents (via ACP or custom adapters) inside an offline container or microVM. Neusym governs their file locks, tracks their budget via an outside relay proxy (so API keys never enter the container), and captures their file changes as clean archives.
Real-World Example
- 1A coding task is assigned to a builder workspace running CLI Executor.
- 2CLI Executor opens an isolated offline sandbox session and acquires file path locks on Blackboard.
- 3The external CLI agent edits files inside the box while Neusym watches its timeout and spend.
- 4When finished, CLI Executor exports a clean file-diff archive for independent testing.
When Should You Turn It On?
Use in dedicated builder workspaces (Level 2 draft) when orchestrating external CLI agents.
Safety level note: Level 2 · Draft — Can create saved drafts and run offline sandbox checks.
How to Add It (workspace.yaml)
kits:
- "@neusym/kit-cli-executor@0.1.0"
kitConfigs:
cli-executor:
adapter: acp-default
timeoutMs: 300000
requireBlackboardLease: trueKits It Works With
Technical Details & Configuration Options (15 settings)
| Package | @neusym/kit-cli-executor |
|---|---|
| Provides Ports | executor@1 |
| Requires Ports | cli-harness@1runner@1tasks@1artifacts@1 |
| Optional Ports | blackboard@1budget@1secrets@1 |
| Publishes Events | agent.tool_calledmodel.called |
| Owned DB Collections | agent_defsrun_manifests |
Configuration Options (kitConfigs.cli-executor)
| Setting | Type | Default | Description |
|---|---|---|---|
adapter | string | "default" | Adapter name passed to the bound cli-harness@1 driver. |
image | string | — | Container image pinned for sessions opened by this executor (defaults to runner default when omitted). |
timeoutMs | integer | 900000 | Maximum duration in milliseconds for one CLI agent run. |
watchdogIntervalMs | integer | 5000 | How often in milliseconds a running CLI agent is checked against kill switch, budget limits, and run claim epoch. |
sessionTtlMs | integer | 3600000 | Session time-to-live in milliseconds passed to runner.openSession. |
defaultSession | object | — | Fallback session source when a task does not specify procedureInput.session. |
billingMode | string | "local" | Controls whether usage observations charge the local budget kit ('local') or delegate billing to an external proxy ('external-proxy'). |
relaySocketPath | string | — | Optional host Unix relay socket path forwarded to runner.openSession. |
maxRawStreamBytes | integer | 1048576 | Maximum raw stream log bytes saved as a data artifact (0 disables saving raw stream). |
maxTokenRequeues | integer | 10 | Consecutive transient step refusals (TOKENS_RESERVED, GUARD_COMMIT_CONFLICT) allowed before halting with REQUEUE_LIMIT_EXCEEDED. |
requireBlackboardLease | boolean | false | When true, fail closed at boot if blackboard@1 is unbound and refuse tasks lacking procedureInput.lease. |
enforceLeasePaths | boolean | true | Verify every mutated entry in the exported RunnerSessionArchive is covered by the held lease paths. |
leaseConflictBehavior | string | "requeue" | Action when blackboard.acquireLease returns RESOURCE_LOCK_CONFLICT. |
maxLeaseRequeues | integer | 10 | Consecutive RESOURCE_LOCK_CONFLICT requeues allowed before halting with REQUEUE_LIMIT_EXCEEDED. |
leaseTtlMs | integer | 300000 | Default blackboard path lease TTL in milliseconds when procedureInput.lease.ttlMs is omitted; must be at least twice watchdogIntervalMs (the watchdog renews below half the TTL). |