The three harnesses share the decision model, the tool mapping, the guards and the run state. They differ in naming, framework adapters, and a few features.
Features#
| Feature | TypeScript | Python | Ruby |
|---|---|---|---|
| Guards: permissions, verify the person, approval, requester only, grounding, args, budget, content, custom | Yes | Yes | Yes |
| decoy guard | Yes | No | Yes |
| Plans (requestPlan, planStatus) | Yes | No | Yes |
| Dry-run preview | Yes | No | Yes |
| Tool drift (reportTools) | Yes | No | Yes |
| check, after, wrap | Yes | Yes | Yes |
| Vercel AI SDK v7 adapter | Yes | No | No |
| RubyLLM adapter | No | No | Yes |
| Human tools | AI SDK tools | HumanTool callables with JSON Schema | RubyLLM tools, or plain callables |
| Verification, confirmations, reviewer approvals | Yes | Yes | Yes |
| Properties (property, sign) | Yes | Yes | Yes |
| Runs on a backend task token | Yes | Yes | Yes |
| Grounding requireTranscript | Yes | No | No |
| Built-in stores | memoryStore() | MemoryStore | MemoryStore, CacheStore (Rails.cache) |
| Sync or async | Async (promises) | Sync | Sync |
Names#
| TypeScript | Python | Ruby |
|---|---|---|
| createHarness({ agent, ... }) | Harness(agent=..., ...) | Scute::Harness.new(agent: ..., ...) |
| guards.verifyPerson | guards.verify_person | Scute::Guards.verify_person |
| guards.requesterOnly | guards.requester_only | Scute::Guards.requester_only |
| defaultTier, onDecision, onAlert | default_tier, on_decision, on_alert | default_tier:, on_decision:, on_alert: |
| harness.run({ actsFor, task: { actions } }) | harness.run(acts_for=..., actions=...) | harness.run(acts_for:, task: { actions: }) |
| run.startVerification(), submitCode(), verificationStatus() | start_verification(), submit_code(), verification_status() | same as Python |
| run.complete(), run.revoke() | run.complete(), run.revoke() | run.complete!, run.revoke! |
| run.budgetExhausted() | run.budget_exhausted() | run.budget_exhausted? |
| run.allowedTools() | run.allowed_tools() | run.allowed_tools |
| run.recordUsage({ usd }) | run.record_usage(usd=...) | run.record_usage(usd:) |
| Verdict runs: kind is proceed or transform | verdict.runs | verdict.runs? |
| Decision kinds and modes as strings | strings | symbols (:deny, :monitor, :high) |
| Event field callId | call_id | call_id |
Guard names, as they appear in results and events: TypeScript uses verifyPerson and requesterOnly; Python and Ruby use verify_person and requester_only. The others are the same everywhere.
Behavior differences#
- Confirmations. A run.confirm() confirmation is used up when the call runs in Python and Ruby. In TypeScript it is used up when approval passes the call, even if a later guard stops it.
- after return value. TypeScript returns { result, results }; Python and Ruby return the result.
- wrap. TypeScript wraps an async function of the arguments object. Python wraps a function called with keyword arguments, works as a decorator, and takes messages for grounding. Ruby wraps a block and returns a lambda. TypeScript and Ruby pass no conversation to grounding.
- Bad guard answers. TypeScript turns an unknown decision kind into deny with reason invalid_decision. Python and Ruby raise inside the harness, which becomes deny with reason guard_error.
- Content scanning. TypeScript scans results as JSON-serialized and also checks object keys and text behind invisible characters for injections. Python scans pydantic models, dataclasses and named tuples as dicts; Ruby scans objects through as_json or to_h. Python also treats scak_ keys as credentials.
- Arg patterns. pattern is a RegExp in TypeScript, a regex string in Python, and a Regexp or string in Ruby.
- Snapshots. Python and Ruby mask tokens in run.snapshot(). The TypeScript snapshot includes the task token.
- Errors. TypeScript throws ScuteHarnessError (status, code, body). Python raises APIError, ConfigurationError and ValueError. Ruby raises Scute::APIError, Scute::ConfigurationError and ArgumentError. See types and errors.
- Closing token runs. TypeScript closes a backend token's task when it has the secret, and throws no_credentials when it does not. Python and Ruby stop the run locally and leave the task to your backend.
Tool drift reports are compatible: Ruby computes the same tool definition hash as TypeScript.