Klacks: open-source, self-hosted shift scheduling with rule checks and an optional AI assistant (AGPL-3.0)

Hi all,

I am Heribert from Switzerland, and I maintain Klacks, an open-source workforce scheduling tool for shift and field operations such as home care, hospitals, security, cleaning services, logistics and hospitality. You install it on your own server or on a single office PC.

What it does

  • Automatic scheduling: an evolutionary algorithm builds a schedule from working-time limits, qualifications and availability. The result is a proposal that you check and accept. It is a heuristic, not a proven optimum.
  • Rule checks: it flags breaches of rest periods, qualifications, public holidays and surcharges. By default it only warns; a blocking mode can be enabled per rule type.
  • Route and tour planning for mobile teams, using an ant colony algorithm.
  • An optional assistant (“Klacksy”) that operates the application in natural language. You choose the language model yourself, including one that runs locally through Ollama or LM Studio. Without an API key or a local model address, no request goes to a language model. Before a request goes to a cloud model, names, addresses, phone numbers and similar fields of known persons are replaced with placeholders.
  • An MCP endpoint, so external AI agents can work with it using the rights of the connected user.

Stack: .NET 10, PostgreSQL, Angular. Licence: AGPL-3.0-only, no fee per employee.

Repository: GitHub - HeribertG/Klacks.Api: Klacks: open-source workforce scheduling for shift and field operations, self-hosted, with a built-in AI assistant. Backend (.NET, AGPL-3.0) and entry point of the project: releases, issues and discussions live here. · GitHub

Public demo with sample data (the login is shown on the sign-in page, the data is reset every night): https://play.klacks-software.ch

Things you should know

  • The project is young. I am the only maintainer and I am looking for the first users outside my own environment.
  • Rules and public holidays ship as country packages. There are 32 so far, and India is not among them. The country values are researched, not legally reviewed.
  • There is no Hindi language pack. The 21 additional language packs are machine-translated and have not been reviewed by native speakers.
  • A large part of the code was written with AI assistance, reviewed and tested by me.

My question to people who know shift work in India: which rules would a scheduling tool have to check before it is useful for you, for example weekly hours, rest days, overtime or state-specific holidays? If someone is willing to describe that for one state or one industry, I would like to build an India package from it.

Feedback on the code and the installation is just as welcome.

Heribert

1 Like

Hi Heribert, I went through the repo and the demo, and the scheduling and rule checks look solid. the README says there’s no time clock or kiosk. I’d like to try building a plugin for clock in/out and shift swaps (planned vs actual hours, with your rule checks running before a swap is approved).

Is Klacks.Plugin.Contracts ready for outside plugins? Any pointers on where to start would help.