beetlebug▾
/

jcode diff

Synopsis

jcode diff ID

Description

Prints the changes of the work folder of the agent ID: against its start commit with --clone, else against the first commit of the repository. The output has a summary, the status, the diff, and the full text of each new file that git does not ignore. The agent makes no commit: read the diff, then commit the change yourself.

Examples

$ jcode start --dir hello --model fake:run.json --brief brief.md --run all
a1
$ jcode wait a1 --timeout 20 > /dev/null
$ jcode diff a1
hello.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 M hello.sh
diff --git …
index …
--- …
+++ …
@@ -1,3 +1,3 @@
 #!/bin/sh
-# Prints a greeting.
-echo "hello"
+# Prints a greeting: hello, NAME, or hello, world.
+echo "hello, ${1:-world}"