ghostmode 0.1.1

Code Mode for Rust agents. The model writes a Python script that calls your tools, and ghostmode runs it in a sandbox.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Feature: A run that outlives its wait keeps going until poll finds it finished

  Scenario: A slow call runs past execute, turns a second execute away, and finishes on poll
    Given a host whose `search` answers only when told to
    And a sandbox whose execute wait is 300 ms and poll wait is 200 ms
    When the model executes search(query="a")
    Then the status is {"status": "running", "run_id": 1}
    And the model waited at least 300 ms but under 10 seconds
    When the model executes 1 + 1
    Then the status is failed with an error naming run 1 is still running
    When the model polls run 1
    Then the status is {"status": "running", "run_id": 1}
    And the model waited at least 200 ms but under 10 seconds
    When `search` answers {"hits": []}
    And the model polls run 1
    Then the status is {"status": "finished", "value": {"hits": []}}
    When the model polls run 1
    Then the status is failed with an error naming no run 1