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: The caller resets a session

  Scenario: A reset clears the globals and the next status says so
    When the model executes x = 1
    And the caller resets the sandbox
    And the model executes x
    Then the status is failed with an error naming NameError
    And the status says the session restarted

  Scenario: A reset drops the open run and its call
    Given a host whose `search` answers only when told to
    And a sandbox whose execute wait is 100 ms and poll wait is 100 ms
    When the model executes search(query="a")
    Then the status is {"status": "running", "run_id": 1}
    When the caller resets the sandbox
    And the model polls run 1
    Then the status is failed with an error naming no run 1
    And answering `search` finds no run waiting