X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/baf7a940be8927278e3b4b87e7366cebfc16532f..7c84ed87ef71088b880a3765b2653e1ded57bf14:/probe.go?ds=inline diff --git a/probe.go b/probe.go index ba656ff..92a35b1 100644 --- a/probe.go +++ b/probe.go @@ -8,6 +8,7 @@ import ( "errors" "fmt" "io" + "log" "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), } - 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 } @@ -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 -// probeName, without instructions. +// probeName, without instructions and with a fixed instructions file path. 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