@@ -51,3 +51,51 @@ To run SeedGen2 for the `libxml2` project with the `xml` harness:
5151``` shell
5252python3 oss-fuzz.py libxml2 xml
5353```
54+
55+ To run seedmind for libxml2 project for all harnesses:
56+
57+ ``` shell
58+ # set up the LiteLLM variables
59+ export LITELLM_BASE_URL=https://your.litellm.host
60+ export LITELLM_KEY=sk-your_private_key
61+ export SEEDGEN_KNOWLEDGEABLE_MODEL=openai/gpt-5-mini
62+ export SEEDGEN_GENERATIVE_MODEL=openai/gpt-5-mini
63+ export SEEDGEN_INFER_MODEL=openai/gpt-5.1
64+ export GEN_MODEL_LIST=openai/gpt-5-mini,openai/gpt-5.1
65+ export OSSFUZZ_PATH=/workspaces/oss-fuzz-harnessagent
66+
67+ # src_path is the external source code path of target project
68+
69+ python infra/oss-fuzz.py --root /workspaces/oss-fuzz-harnessagent --model gpt-5-mini --src_path " $src_path " libxml2 --all
70+ ```
71+
72+ ### Run with Docker:
73+
74+ set up the environment variables
75+
76+ ``` shell
77+ cat << 'EOF ' > .env
78+ LITELLM_BASE_URL=https://your.litellm.host
79+ LITELLM_KEY=sk-your_private_key
80+ SEEDGEN_KNOWLEDGEABLE_MODEL=openai/gpt-5-mini
81+ SEEDGEN_GENERATIVE_MODEL=openai/gpt-5-mini
82+ SEEDGEN_INFER_MODEL=openai/gpt-5.1
83+ GEN_MODEL_LIST=openai/gpt-5-mini,openai/gpt-5.1
84+ OSSFUZZ_PATH=/workspaces/oss-fuzz-harnessagent
85+ PROJECT=libxml2
86+ HARNESSNAME=html
87+ EOF
88+ ```
89+
90+
91+ ```
92+ docker run -it \
93+ --env-file .env \
94+ --privileged \
95+ --entrypoint=/entrypoint_harnessagent.sh \
96+ --rm \
97+ -v $PWD/entrypoint_harnessagent.sh:/entrypoint_harnessagent.sh \
98+ -v /path/to/save/corpus:/workspaces/corpus \
99+ -v /path/to/ossfuzz:/workspaces/oss-fuzz-harnessagent \
100+ ghcr.io/emptyiscolor/sunflower-seedmind:latest
101+ ```
0 commit comments