Skip to content

About

The flame chase as an hmz flow: two agents take turns on the same task, each turn a fresh session, until the budget is spent.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

flame_chase (flame-chase-flow)

The flame chase as an hmz flow: two agents take turns on the same task, each turn a fresh session, until the budget is spent.

Two agents take turns on the same task. Each turn is a fresh session, so the two share nothing but the repository. It is the flame_chase that FlowBench scores; its variants are in flame_chasoid.

Table of Contents

Install

You need hmz. In hmz, open /flow, go to Flowverses → official → flame_chase and Install it.

To run a release without installing it, name it by its git ref:

hmz exec -f git+https://github.com/humanfia/flame-chase-flow@v0.1.0#flame_chase ...

Usage

❯ $flame_chase the task
hmz exec -f flame_chase -a first_chaser=claude/claude-opus-5:high \
    -a second_chaser=codex/gpt-5.6-sol:high \
    -p budget.cost=10 "the task"
Role Needs
first_chaser nothing Takes the first turn, and every other one after.
second_chaser nothing Takes the turns between.

Each chaser's turn may be given a quota of its own. A turn that reaches its quota is cut off at once, and the other chaser takes over from what it left in the repository.

Param Default
first_chaser_duration none Seconds one turn of the first chaser may run for.
first_chaser_cost none USD one turn of the first chaser may spend.
first_chaser_output_tokens none Tokens one turn of the first chaser may write.
second_chaser_duration none Seconds one turn of the second chaser may run for.
second_chaser_cost none USD one turn of the second chaser may spend.
second_chaser_output_tokens none Tokens one turn of the second chaser may write.
hmz exec -f flame_chase -a first_chaser=claude/claude-opus-5:high \
    -a second_chaser=codex/gpt-5.6-sol:high \
    -p budget.cost=10 -p first_chaser_cost=1.5 -p second_chaser_duration=600 "the task"

What ends it

The run's budget: the turn that finds it spent ends the run. A turn that fails ends the run with that failure, once hmz has retried what could be retried.

Picking it up

Whose turn is next is kept, so --resume picks up with that chaser.

Another flow can call it by ref, load("flame_chase"); see A flow that calls a flow.

Maintainers

@futrime, as listed in .github/CODEOWNERS.

Contributing

Issues and pull requests are welcome. The flow is the flame_chase/ directory; its tests are in tests/. With uv:

uv sync
uv run ruff check
uv run ruff format --check
uv run pytest

CI runs the same on every pull request. A release is a vX.Y.Z tag on main; it reaches hmz users once a flows/flame_chase/X.Y.Z/flow.yaml pointing at it is merged into humanfia/flowverse.

License

Apache-2.0 © Humanfia

About

The flame chase as an hmz flow: two agents take turns on the same task, each turn a fresh session, until the budget is spent.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages