]> git.giacomolli.uk - onechat/blobdiff - probe.go
Reread the rules from disk in the diff review
[onechat] / probe.go
index ba656ffa536d971e70f3d3d160861b0fdbcf3296..92a35b175400a7c056c732c1b9088dba8182ecad 100644 (file)
--- a/probe.go
+++ b/probe.go
@@ -8,6 +8,7 @@ import (
        "errors"
        "fmt"
        "io"
        "errors"
        "fmt"
        "io"
+       "log"
        "maps"
        "os"
        "path/filepath"
        "maps"
        "os"
        "path/filepath"
@@ -105,7 +106,9 @@ func probe(ctx context.Context, args []string, out io.Writer) (err error) {
                slots: make(chan struct{}, builds),
        }
 
                slots: make(chan struct{}, builds),
        }
 
-       memory, err := openMemory(ctx, root, time.Now, summarizer)
+       // The report of the probe counts the failed calls, so the lines of the
+       // failed builds are not needed.
+       memory, err := openMemory(ctx, root, time.Now, summarizer, log.New(io.Discard, "", 0))
        if err != nil {
                return err
        }
        if err != nil {
                return err
        }
@@ -287,9 +290,9 @@ func probeReadLog(path string, count int) (entries []ProbeEntry, err error) {
 }
 
 // probePrompt returns the system prompt of a probe run: the prompt of the agent
 }
 
 // probePrompt returns the system prompt of a probe run: the prompt of the agent
-// probeName, without instructions.
+// probeName, without instructions and with a fixed instructions file path.
 func probePrompt() (string, error) {
 func probePrompt() (string, error) {
-       return prompt(probeName, ""), nil
+       return prompt(probeName, "/PROBE/instructions.md", ""), nil
 }
 
 // probeModelLines returns the sizes of the nodes that the model wrote, in tree
 }
 
 // probeModelLines returns the sizes of the nodes that the model wrote, in tree