The open-source solver
What the open-source solver does, and where Custom starts.
A solver drafts one month of call at a time. There are two ways to get one. On Custom, we write your group’s rules down and build a solver for you. On Free, you connect your own agent, such as Claude Code or Codex, and the agent runs the open-source solver on your computer. The free app has no solver of its own. You fill the calendar by hand, or your agent saves a draft into it. This page lists every rule the open-source solver keeps, the settings it reads, and what it leaves to Custom.
What a draft is
First you set up the practice: your sites, your shift types, who can work what, and approved time off. Then you ask your agent for a month. The agent runs the solver on your practice’s data and saves the result as a draft. Nothing goes live until you publish it. The agent and the solver never publish.
The draft fills empty cells only. Every entry you already put on the calendar stays exactly as you entered it. If your group handles a day in its own way, such as a holiday or a special weekend, enter those assignments on the calendar before you ask for the draft. The draft does not overwrite them.
The solver makes the call schedule. You staff the daily assignments in Daily Staffing.
Rules it always keeps
These are hard rules. The draft never breaks one of them.
- Each shift on each day gets the number of clinicians your coverage asks for.
- No clinician gets more than one assignment per day.
- Each clinician works only the shifts they are set up for.
- Nobody works on approved vacation or a must-off day. Locked assignments stay in place.
- Nobody goes over their cap on shifts, or on weekend shifts, in the month.
- Two assignments for one clinician are at least the minimum rest gap apart.
- A shift set to “gives the next day off” gives the next day off, post-call.
- A shift closed to post-call never goes to someone who was on call the day before.
- A shift set to Same person Sat and Sun goes to one clinician for Saturday and the Sunday after it.
- A clinician with a yearly call target of zero takes no call.
Coverage is a hard rule too. If the solver cannot fill every slot without breaking a hard rule, it makes no schedule. The agent tells you why in plain words, and it saves no draft.
Rules it follows when it can
These are soft rules. The solver keeps them when the month allows.
- It spreads calls evenly against each clinician’s target and recent history. The target comes from the clinician’s yearly call number, or from FTE when there is none.
- It spreads weekend calls the same way, against each clinician’s weekend target.
- It avoids back-to-back weekends. Your practice can turn this off, and a clinician who agrees to them can be exempt.
- It avoids call the day before or after a vacation. When it must break this, it reports each break.
Settings it reads
The solver reads these settings from your practice. You can see and change each setting in the app.
- Per shift type
- Whether it gives the next day off, whether Same person Sat and Sun is on, whether it is closed to post-call, and its headcount by default, by weekday, or by date.
- Per clinician
- Which shifts they work, FTE, yearly calls, yearly weekend calls, consent to back-to-back weekends, and start and end dates.
- Per practice
- The switch for back-to-back weekends.
Where Custom starts
The open-source solver knows each clinician’s own facts: days off, which shifts they can work, a cap, a target. It has no rule that links one clinician to another, call to the OR schedule, or this year to last year. Three rules it does not keep:
- A junior partner covers one senior partner’s weekend calls. So the senior partner cannot be given a weekend call while the junior partner is on vacation.
- A cardiac day needs two cardiac anesthesiologists at work. So neither of them can be post call that day, which means neither can take call the day before.
- Thanksgiving is a Thursday to the solver. If your group rotates holiday call from one year to the next, enter those calls on the calendar before you ask for the draft.
Your agent can add a rule to the solver’s code, and the repo has worked examples. Then your group owns that code and keeps it correct.
If you just want this done for you, so good schedules take minutes, let’s talk Custom. Someone on our team will sit with your group and build every scheduling rule into the solver. Every month we dial it in based on your changes.
How to run it
Use these steps.
- Set up your practice: sites, shift types, who works which shifts, and approved time off.
- Connect your agent to PostCallMD.
- Type “Make my first schedule” in the agent.
- Review the draft in the app.
- Change the assignments you do not want.
- Press Publish.
The agent never assigns call by hand, and it never publishes. Read the walkthrough for each step, and the connector page for the connection.