Skip to content

Examples ​

Each example is a flow under examples/rein/<flow>/, with a package.json manifest. Open one to read its files and run it.

  • incident-triage: Decide how the on-call agent handles a new production alert.
  • merge-pr: Decide the next step for a pull request task.
  • pr-handling: Decide the next step for a pull request: review it, fix it, or merge it.
  • priority-work: Find the high priority projects of a workplace, then work on their pull requests.
  • support-ticket: Decide how the support agent handles a customer ticket.

Run rein list from the examples folder to list them. Then run one by name. See Install a program:

sh
cd examples
rein list
rein run support-ticket