BYTENAI

ByteCLI

Workspace

A repository, one file in context, and a patch you approve before it exists. The three states are the whole promise: nothing is applied that you have not read.

Worked example — illustrative · demo state is per session

  1. 1 proposed
  2. 2 applied
  3. 3 tested
Read the session
patch · src/config.rsdiff
--- a/src/config.rs
+++ b/src/config.rs
@@ -3,8 +3,8 @@
 
-/// Default network timeout for outbound requests.
-pub const REQUEST_TIMEOUT_SECS: u64 = 10;
+/// Default network timeout for outbound requests: 30 s, enough for a cold compiler.
+pub const REQUEST_TIMEOUT_SECS: u64 = 30;
 
 pub fn request_timeout() -> Duration {
     Duration::from_secs(REQUEST_TIMEOUT_SECS)
@@ -14,8 +14,8 @@ mod tests {
     use super::*;
 
     #[test]
-    fn timeout_is_ten_seconds() {
-        assert_eq!(request_timeout(), Duration::from_secs(10));
+    fn timeout_is_thirty_seconds() {
+        assert_eq!(request_timeout(), Duration::from_secs(30));
     }
 }

byten · one file in context

You

Raise the default timeout from 10 seconds to 30 seconds in src/config.rs.

ByteCLI

One constant, its comment, and the test that names the behaviour. Nothing else in the file changes.

3 steps · 1 file · 14 lines touched (+7 −7)

This build records no model call. The answer below is the worked example every host of this build shows; the apply and test steps are real.

What is real on this page

  • The diff is a unified diff, and Apply runs a hunk-by-hunk applier over the file text. The "after" block is the output of that applier, not a second copy of the same sample.
  • The test step re-reads the patched text and refuses to advance unless the constant is 30 and the test's name changed with it.
  • The state is kept per session, so a reload does not rewind your work — and a new session starts at step one.
  • Not real: the cargo test transcript. It is sample output, labelled, because this host runs no compiler and records no model call.

When a model endpoint and a sandbox are wired, this page keeps the same three states; only the middle column's source changes. A patch that fails its test is refused, not applied.