aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/aflow/flow/patching/patching.go
Commit message (Collapse)AuthorAgeFilesLines
* pkg/aflow: add Tools functionDmitry Vyukov7 days1-3/+2
| | | | | | When we combine tool sets for agents, there is always a protential problem with aliasing existing slices and introducing subtle bugs. Add Tools function that can append tool/tool sets w/o aliasing problem.
* pkg/aflow: delete SyzkallerCommitTaras Madan9 days1-5/+4
| | | | It is not used.
* syz-agent: wipe codesearch binaryDmitry Vyukov2026-02-061-6/+5
| | | | Now it's compiled into the syz-agent binary itself.
* pkg/aflow/tool/grepper: add the toolDmitry Vyukov2026-02-021-1/+2
| | | | | | Add a tool that executes git grep with the given expression. It can handle long tail of cases that codesearcher can't handle, while still providing less output than reading whole files.
* pkg/aflow: abstract away LLM temperatureDmitry Vyukov2026-02-021-3/+3
| | | | | | | | | | Introduce abstract "task type" for LLM agents instead of specifying temperature explicitly for each agent. This has 2 advantages: - we don't hardcode it everywhere, and can change centrally as our understanding of the right temperature evolves - we can control other LLM parameters (topn/topk) using task type as well Update #6576
* pkg/aflow/flow/patching: use recent commit subjectsDmitry Vyukov2026-01-311-0/+7
| | | | | | | Give LLM the recent commit subjects when it generates description, so that it can use the same style. Add infrastrcuture to write end-to-end action tests to test it.
* pkg/aflow/flow/patching: improve promptsDmitry Vyukov2026-01-301-3/+33
| | | | | More instructions slightly more concrete, and add details about some bug types.
* pkg/aflow/flow/patching: move Outputs type to ai packagesDmitry Vyukov2026-01-301-21/+1
| | | | | | Move it so that it can be accessed by the dashboard as well. Add kernel branch to output (it's needed for gerrit), provide actual kernel commit hash instead of tag name.
* pkg/aflow: adding sliding window summary featureYulong Zhang2026-01-301-47/+60
| | | | | | | | | This adds a flow feature (and creates a new flow using it) called "sliding window summary". It works by asking the AI to always summarize the latest knowledge, and then we toss the old messages if they fall outside the context sliding window.
* pkg/aflow/flow/patching: find maintainers for patchesDmitry Vyukov2026-01-291-0/+11
| | | | Provide base kernel repo/commit and recipients (to/cc) for patches.
* pkg/aflow/flow/patching: provide some WARNING-specific instructionsDmitry Vyukov2026-01-281-2/+12
|
* pkg/aflow/flow/patching: remove temp workaround for KernelScratchSrcDmitry Vyukov2026-01-271-1/+0
|
* pkg/aflow/flow/patching: harden against empty generated patchesDmitry Vyukov2026-01-271-4/+10
| | | | | | | | Make codeeditor error on nop changes that don't actually change the code. Make patch testing error on empty patch. Perhaps we need a notion of "mandatory" tools that must be called successfully at least once... not sure yet.
* pkg/aflow: add explicit DoWhile.MaxIterationsDmitry Vyukov2026-01-271-1/+2
| | | | | | Add DoWhile.MaxIterations and make it mandatory. I think it's useful to make workflow implementer to think explicitly about a reasonable cap on the number of iterations.
* pkg/aflow/flow/patching: use code editing/patch testingDmitry Vyukov2026-01-241-14/+51
| | | | | Add code editing tool, and patch testing action to the workflow. Add a loop that asks to fix/regenerate patch on test errors.
* pkg/aflow/action/kernel: add CheckoutScratch actionDmitry Vyukov2026-01-231-0/+2
| | | | The action checks out a temp dir for code edits and patch testing.
* pkg/aflow: unexport Pipeline typeDmitry Vyukov2026-01-231-35/+33
| | | | | | | I've added NewPipeline constructor for a bit nicer syntax, but failed to use it in actual workflows. Unexport Pipeline and rename NewPipeline to Pipeline. This slightly improves workflows definition syntax.
* pkg/aflow/tool/researcher: add researching LLM toolDmitry Vyukov2026-01-231-1/+2
| | | | | It can answer complex questions about kernel, and provide a concise answer to other LLMs.
* pkg/aflow: support setting a custom repositoryFlorent Revest2026-01-211-0/+1
| | | | | For situations where the user wants to reproduce bugs against a different repository than mainline.
* pkg/aflow: make LLM model per-agent rather than per-flowDmitry Vyukov2026-01-201-1/+3
| | | | | | Having LLM model per-agent is even more flexible than per-flow. We can have some more complex tasks during patch generation with the most elaborate model, but also some simpler ones with less elaborate models.
* pkg/aflow: allow to specify model per-flowDmitry Vyukov2026-01-141-0/+1
| | | | | We may want to use a weaker model for some workflows. Allow to use different models for different workflows.
* pkg/aflow/flow/patching: add bug fix patching workflowDmitry Vyukov2026-01-091-0/+138