# Absentra

> Phone attendance for Indonesian small businesses: location and selfie clock-in, shifts, leave and overtime, and a payroll recap under PP 35/2021, with an MCP server the owner's AI agent can use.

Cafes, shops, clinics and workshops still track attendance in paper books, shared spreadsheets or a fingerprint machine at one door, and someone turns those records into overtime pay by hand at the end of the month. Absentra moves clock-in to each employee's own phone, flags doubtful records for the owner instead of refusing them, and applies the Indonesian overtime rules in the payroll recap.

- Each clock-in gets a trust score from 0 to 100; weak GPS or a position outside the fence flags it for review instead of refusing an honest worker.
- Overtime pay follows PP 35/2021: the monthly wage divided by 173, with the legal multipliers for 5 and 6 day weeks.
- Every change an AI agent makes needs a single-use confirmation token bound to the exact arguments the owner saw.

- 30 MCP tools for the owner's agent
- PP 35/2021 overtime rules in the payroll recap
- 4 roles: owner, HR, branch admin, employee

- Role: Founder & CEO, designer and builder
- Company: AgentBuff
- Period: Since Jul 2026
- Stack: React 18, Vite, Tailwind CSS, TanStack Query, Node 22, Express, SQLite, MCP, Vitest, Docker
- Live app: absentra.agentbuff.id (https://absentra.agentbuff.id)
- Repository on GitHub: nugrahalabib/Agentbuff-Absentra (https://github.com/nugrahalabib/Agentbuff-Absentra)

## The problem

Many small businesses still track attendance in a paper book, a shared spreadsheet or a fingerprint machine at the door. The book and the spreadsheet are easy to fill in for a friend, and a fingerprint machine costs money, sits in one place and does not help a business with several outlets.

At the end of the month someone has to turn those records into pay. Indonesian overtime is not a flat rate: **PP 35/2021** sets the hourly wage at the monthly wage divided by 173, with different multipliers for the first hour, later hours, rest days and public holidays, and different tiers for 5 and 6 day weeks. Done by hand, it is slow and easy to get wrong.

Phone attendance has its own trap. Browser GPS can be weak indoors, and a strict app that refuses every doubtful clock-in punishes honest workers. The owner needs to see doubtful cases and decide, not have the app decide for them.

*What changes for the business*

| Before | With Absentra |
| --- | --- |
| A paper book or a fingerprint machine at one door | Each employee clocks in from their own phone, at any branch with its own fence |
| Anyone can sign the book for a friend | Location and a selfie on every clock-in, with a trust score the owner can review |
| Overtime pay worked out by hand at month end | A payroll recap that applies PP 35/2021, late deductions and meal allowance |
| Shift rotations a paper book cannot keep straight | Shift templates assigned in bulk, with each employee's schedule on their phone |
| The owner opens a dashboard to find out who is late | The owner can ask an AI agent, and any change it makes is confirmed first |

## Who uses it

*Roles in Absentra*

| Who | What they do |
| --- | --- |
| Owner | Sets up the company, branches with their fence, divisions, shifts and wages, approves requests, reads the dashboard and runs the payroll recap |
| HR or branch admin | Manages employees and schedules and decides leave and overtime, limited to the branches in their scope |
| Employee | Clocks in and out from a phone, sees the next two weeks of shifts and their own history, and requests leave or overtime |
| The owner's AI agent | Connects over MCP to answer questions such as who has not clocked in, prepares recaps, and decides requests only after the owner confirms |

## From setup to payroll

**One month in Absentra** (The phone gives instant feedback, but the server makes every decision.)
1. Set up: Business, work week, first location and hours
2. Invite: Staff join by email, link or QR and give consent
3. Clock in: Location and a selfie from the phone
4. Score: Fence check, trust score, on time or late
5. Approve: Leave, overtime and automatic overtime drafts
6. Recap: Payroll numbers exported to CSV

A new owner goes through a four-step wizard: the business and its work week (5 or 6 days, which selects the overtime tier), the first work location from the phone's position or a pasted Google Maps link with a radius slider, the working hours, and a ready screen that leads to inviting staff. Time zones cover WIB, WITA and WIT. A person who opens an invite link joins as staff instead of creating a company.

## Clocking in from the phone

*One clock-in: ready, selfie, review, recorded. The selfie is a placeholder.*

The employee screen is built for a low-end phone, and there is nothing to install. Clocking in is a short sequence: check today's shift, get the location, take a selfie, review, send.

- Distance from the branch point and GPS accuracy are shown before sending.
- The selfie comes from the front camera and is shrunk on the phone before upload.
- Without signal, the clock-in is kept on the phone with its real time and an idempotency key, so a retry never makes a second record.
- Location and photos are collected only after the employee gives consent.

The server then checks the fence, scores the clock-in and marks it on time or late against the shift. **Flag, do not block** is the rule: each clock-in gets a trust score from 0 to 100, and weak GPS or a position outside the fence lowers the score and puts the record on the owner's review list. The owner opens it and sees the photo, position, accuracy and the reasons it was flagged.

*A flagged clock-in: outside the fence, weak GPS, score 35.*

*Employee screens: schedule, leave and overtime requests, history.*

## Inside the product

**Dashboard**
The home screen answers the owner's first question of the day: who is in, who is late, who has not clocked in, who is on leave and who works overtime, filtered by branch, with a seven-day chart of presence and lateness. Opening someone else's photo and location is written to the audit log.

*The owner dashboard in dark mode.*

**Approvals**
Leave and overtime requests, and overtime drafts created automatically when someone clocks out 30 minutes or more past the shift end, wait in one list. A decision is one tap and is recorded with who made it. A manual request replaces the automatic draft for the same date, so overtime is never paid twice.

*Pending leave and overtime requests.*

**Team and branches**
The owner manages employees with their branch, division, role and wage components, imports or exports them as CSV, and invites new staff by link or QR code. Each branch has its own fence with a buffer zone counted as near.

**Shifts**
Shift templates hold start and end times, break and late tolerance, and are assigned in bulk over a date range. Overlap and minimum rest are checked on assignment, including shifts that cross midnight, and each employee sees the next two weeks on their phone.

*Shift templates and the weekly team schedule.*

**Reports and rules**
The per-employee report is a printable record of one person's period, saved as PDF from the browser, and attendance and payroll export as CSV for Excel. Settings hold the attendance and pay rules: late deduction mode, meal allowance, trust thresholds and photo retention, which is 90 days by default before photos are erased.

*Attendance report for one employee.*

*Attendance and pay rules, including photo retention.*

## Overtime by the rule book

The payroll recap turns a period of attendance into the numbers needed to pay wages: days present, late minutes and deductions, meal allowance, approved overtime hours and overtime pay. The hourly wage is basic wage plus fixed allowance divided by 173, and the PP 35/2021 multipliers follow the day type: workday, weekly rest, public holiday or shortest workday. Only approved overtime and approved leave count. A worked example, a monthly wage of Rp4,000,000 with 2 hours of overtime giving Rp80,924, is asserted in the server test suite.

*Payroll recap for the demo company. It calculates and never pays out.*

## The owner's agent, with a confirmation step

Absentra exposes the same data to AI agents through an MCP server with **30 tools** (17 read-only and 13 that write), 5 read-only resources and 3 workflow prompts for onboarding a company, a weekly review and running payroll. After purchase, AgentBuff connects the app to the owner's own agent on its own, so the owner can ask "who has not clocked in today" from chat without copying a token. Other MCP clients get a token with chosen scopes, optionally limited to some branches.

*Real MCP calls on the local demo: tool list, summary, and the two-step confirmation.*

### How an agent changes data

1. The agent calls a write tool without a token.
1. The server returns a preview and a single-use token.
1. The agent shows the preview to the owner.
1. The same call with the token runs the change.
1. The call is written to the audit log as an agent action.

An agent's own confirm flag proves nothing, so the token is bound on the server to the tool, the exact arguments and the preview the owner saw. A connection is limited to 20 calls per minute, every write and every read of attendance or payroll data is audited, and the owner can revoke a connection at any time.

*Agent page: the AgentBuff connection and an extra agent with its scopes.*

## How it is built

I designed and built Absentra as a business app on the AgentBuff marketplace. It is a TypeScript monorepo: a React 18 app built with Vite, and an Express API with SQLite that also serves the built app and the MCP endpoint from one Node process on one port. In a local run on 26 Nov 2026, 238 server tests and 43 web tests passed, and the type checks passed for both packages.

- One permission check: Every REST route and every MCP tool calls the same can() function, so an agent has no path the web app does not have.
- Company scope: Every tenant table carries company_id, and each route takes the company from the session, never from the request.
- Pure domain engines: Geofence, trust scoring, the clock-in steps and the PP 35/2021 payroll are plain functions shared by the phone and the server.
- Hardened sessions: httpOnly cookies, rotating refresh tokens that revoke the whole family on reuse, a strict CSP and a CSRF origin guard.
- Privacy by default: Location and photos only after consent, photos erased after the retention period, and viewing another person's record audited.
- Small to run: One Docker image and one database file on a volume, with a maintenance job every 6 hours for expired photos and sessions.

**At a glance**
- Product: Business app on the AgentBuff marketplace
- For: Indonesian small businesses with one or more branches
- Live since: July 2026, absentra.agentbuff.id
- Roles: Owner, HR, branch admin, employee
- MCP: 30 tools, 5 resources, 3 prompts, confirmation before every write
- Payroll: Overtime under PP 35/2021, late deductions, meal allowance, CSV export
- Licence: Source on GitHub, all rights reserved

**Attendance your team already carries** Absentra is live at absentra.agentbuff.id, and the repository on GitHub shows how it is built.

Source: https://nugrahalabib.com/work/absentra
Author: Nugraha Labib Mujaddid (https://nugrahalabib.com)
Published: 2026-11-27. Updated: 2026-11-27.
