<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Md. Abid Hassan</title>
    <description>The latest articles on Forem by Md. Abid Hassan (@abidnoyon).</description>
    <link>https://forem.com/abidnoyon</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3587907%2Fc72d17b1-cc07-4bfe-afce-db4e00518678.jpeg</url>
      <title>Forem: Md. Abid Hassan</title>
      <link>https://forem.com/abidnoyon</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/abidnoyon"/>
    <language>en</language>
    <item>
      <title>dAttendance: An Agent-First Attendance Platform on Smart Postgres</title>
      <dc:creator>Md. Abid Hassan</dc:creator>
      <pubDate>Mon, 10 Nov 2025 07:35:36 +0000</pubDate>
      <link>https://forem.com/abidnoyon/dattendance-an-agent-first-attendance-platform-on-smart-postgres-2a39</link>
      <guid>https://forem.com/abidnoyon/dattendance-an-agent-first-attendance-platform-on-smart-postgres-2a39</guid>
      <description>&lt;p&gt;dAttendance: An Agent-First Attendance Platform on Smart Postgres&lt;/p&gt;

&lt;p&gt;Tags:&lt;br&gt;
devchallenge # agenticpostgreschallenge # ai # postgres&lt;/p&gt;

&lt;p&gt;This is a submission for the &lt;a href="https://dev.to/challenges/agentic-postgres-2025-10-22"&gt;Agentic Postgres Challenge with Tiger Data&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;What I Built&lt;br&gt;
dAttendance is a modern, AI-powered, multi-tenant attendance management system designed for educational institutions. It automates attendance using face recognition, but with a unique twist: it's&lt;br&gt;
built as an agent-first application powered by Agentic Postgres.&lt;/p&gt;

&lt;p&gt;My goal was to create a system where AI agents and human administrators can collaborate safely and efficiently. The platform supports multiple institutions with complete data isolation and&lt;br&gt;
provides distinct roles (Super Admin, Institute Admin, Teacher, Student) to manage the entire academic ecosystem. The core of the system is an AI agent that processes class photos/videos to mark&lt;br&gt;
attendance, with a human-in-the-loop workflow for verification, all orchestrated through the power of database forking.&lt;/p&gt;

&lt;p&gt;Demo&lt;br&gt;
Project Repository: &lt;a href="https://github.com/Abid-Noyon/digitalAttendance/tree/development" rel="noopener noreferrer"&gt;https://github.com/Abid-Noyon/digitalAttendance/tree/development&lt;/a&gt;&lt;br&gt;
Live Application: &lt;a href="https://dt.promely.com/" rel="noopener noreferrer"&gt;https://dt.promely.com/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;How to Use and Test dAttendance&lt;br&gt;
To experience the full power of the platform, please follow this guide to test the features available for each user role.&lt;/p&gt;

&lt;p&gt;Testing Credentials:&lt;br&gt;
To fully test the application, please use the following credentials:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Superadmin:

&lt;ul&gt;
&lt;li&gt;Username: &lt;a href="mailto:abid@promely.com"&gt;abid@promely.com&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Password: abid2552&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;p&gt;Admin:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Username: &lt;a href="mailto:adminabid@gmail.com"&gt;adminabid@gmail.com&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Password: 8n.30]kK4EW’&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;p&gt;Teacher:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Username: &lt;a href="mailto:dccteacher@gmail.com"&gt;dccteacher@gmail.com&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Password: 8n.30]kK4EW’&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;

&lt;p&gt;Student:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Username: &lt;a href="mailto:tanjim@gmail.com"&gt;tanjim@gmail.com&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Password: 8n.30]kK4EW’&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;




&lt;ol&gt;
&lt;li&gt;The Teacher Experience: AI Collaboration with Database Forks
Log in as a Teacher. The Teacher Dashboard is the central hub for managing courses and orchestrating the AI attendance agent.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Walkthrough:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;From the "My Courses" list, select a course to manage.&lt;/li&gt;
&lt;li&gt;Click to take attendance and upload a class photo or video. This action triggers our AI agent and, crucially, creates a fast, zero-copy database fork for this specific session.&lt;/li&gt;
&lt;li&gt;You'll receive a real-time notification when the AI agent has finished processing the attendance within the isolated fork.&lt;/li&gt;
&lt;li&gt;Navigate to the "Review Attendance" page. Here, you are interacting with the forked data, not the live production database. You can safely:

&lt;ul&gt;
&lt;li&gt;Confirm students the AI recognized with high confidence.&lt;/li&gt;
&lt;li&gt;Verify or correct the AI's "best guesses" for uncertain faces.&lt;/li&gt;
&lt;li&gt;Manually mark any remaining students.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Once you finalize the record, the verified data is merged back into the main database, and the temporary fork is discarded. This showcases our safe, agent-human collaboration workflow.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbrgva5yrcrnq675hm1mx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbrgva5yrcrnq675hm1mx.png" alt=" " width="800" height="525"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;![Teacher: My Courses here]](&lt;a href="https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n54dng99why3qddm35yd.png" rel="noopener noreferrer"&gt;https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n54dng99why3qddm35yd.png&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0jstursmzh0m0lcn4cro.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0jstursmzh0m0lcn4cro.png" alt="Teacher: Attendance Grid here" width="800" height="525"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbg3b1d2ot7zj527vut4p.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbg3b1d2ot7zj527vut4p.png" alt="Teacher: Notifications " width="800" height="525"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fivzuz9oudjw4f5y5qxhv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fivzuz9oudjw4f5y5qxhv.png" alt="Image of Teacher Dashboard - Review Attendance Page here" width="800" height="525"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;ol&gt;
&lt;li&gt;The Student Experience: Real-Time Feedback
Log in as a Student. The student dashboard provides transparent access to personal attendance records.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Walkthrough:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Students can view all their enrolled courses and current attendance percentages.&lt;/li&gt;
&lt;li&gt;After a teacher finalizes an attendance session, students receive a real-time notification and can see their updated status in the attendance grid. This provides immediate, accurate feedback.&lt;/li&gt;
&lt;li&gt;Students can also manage their profile photos, which are used to train the facial recognition model.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr1p36r3yplkrnkw71c9f.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr1p36r3yplkrnkw71c9f.png" alt="Image of Student Dashboard - Profile Management her" width="800" height="525"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuyohv663mzzmlmeczhmy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuyohv663mzzmlmeczhmy.png" alt="Image of Student Dashboard - Attendance Overview here" width="800" height="525"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;ol&gt;
&lt;li&gt;The Institute Admin Experience: Smart Search &amp;amp; Management
Log in as an Institute Admin. This dashboard is for managing the entire institution, powered by intelligent search.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Walkthrough:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Use the Smart Search bar to query your institution's data using natural language, powered by pg_text. Try queries like:

&lt;ul&gt;
&lt;li&gt;"Show me all students in the Computer Science department"&lt;/li&gt;
&lt;li&gt;"Find teachers who teach more than two courses"&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Manage the academic structure by creating departments and courses.&lt;/li&gt;
&lt;li&gt;Approve pending profiles for new teachers and students, ensuring data integrity before they are entered into the system.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fihxc9681yddksncoko5v.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fihxc9681yddksncoko5v.png" alt="Admin Dashboard - Main Overview here: course enrollment and others features " width="800" height="525"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;ol&gt;
&lt;li&gt;The Super Admin Experience: Platform-Wide Control
Log in as a Super Admin. This dashboard provides a high-level view of all institutions on the platform.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Walkthrough:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Monitor aggregate statistics across all institutions.&lt;/li&gt;
&lt;li&gt;Manage institution accounts (activate, deactivate, or onboard new ones).&lt;/li&gt;
&lt;li&gt;Oversee the health of background services, like the Celery workers that power our AI agents.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fp4oczt4ojjv7u1jkhoji.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fp4oczt4ojjv7u1jkhoji.png" alt="Image of Super Admin Dashboard here" width="800" height="457"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;How I Used Agentic Postgres&lt;br&gt;
dAttendance leverages several key Agentic Postgres features to deliver a unique and powerful experience:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Fast, Zero-Copy Forks for Agent-Powered Attendance Review:

&lt;ul&gt;
&lt;li&gt;When a teacher initiates an attendance session, dAttendance dynamically creates a zero-copy database fork.&lt;/li&gt;
&lt;li&gt;An AI agent (our facial recognition module) processes attendance data exclusively within this isolated fork. This ensures the main production database remains untouched and safe during AI
processing.&lt;/li&gt;
&lt;li&gt;Teachers access a "Review Attendance" dashboard that queries this temporary fork. Here, they can manually verify, correct, and approve the AI-generated attendance.&lt;/li&gt;
&lt;li&gt;Upon approval, the validated data is seamlessly merged back into the main database, and the fork is discarded. This workflow exemplifies multi-agent collaboration (AI agent + human teacher)
and provides a robust, auditable mechanism for AI-driven data entry.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;pg_text&lt;/code&gt; for Natural Language "Smart Search":

&lt;ul&gt;
&lt;li&gt;I've implemented an intelligent search for administrators, powered by pg_text.&lt;/li&gt;
&lt;li&gt;An underlying AI agent interprets natural language queries and translates them into efficient pg_text searches and SQL operations, providing relevant results instantly. This transforms data
retrieval from rigid queries to intuitive conversations.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Tiger CLI for Admin Productivity Hacks:

&lt;ul&gt;
&lt;li&gt;To enhance administrator productivity, I've built a custom CLI tool (tiger_admin.py) that wraps the Tiger CLI.&lt;/li&gt;
&lt;li&gt;This tool allows for quick management of database forks, such as creating a new database branch for an academic term (create-term-fork ) or cleaning up old, merged forks. This
significantly simplifies database lifecycle management.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Overall Experience&lt;br&gt;
Building with Agentic Postgres has been an eye-opening experience. The fast, zero-copy forking feature is a game-changer for AI-driven workflows, providing unparalleled isolation and safety for&lt;br&gt;
agent operations. It allowed me to design a human-in-the-loop system that I wouldn't have easily achieved with traditional database setups.&lt;/p&gt;

&lt;p&gt;The power of pg_text for enabling natural language interaction with complex datasets was also a pleasant surprise, making the application significantly more user-friendly and intelligent. The&lt;br&gt;
ability to quickly spin up and manage database environments via the Tiger CLI also greatly accelerated development. This challenge has truly pushed the boundaries of what I thought was possible&lt;br&gt;
with a database, proving that Postgres can indeed be the brain of sophisticated AI systems.&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>agenticpostgreschallenge</category>
      <category>ai</category>
      <category>postgres</category>
    </item>
  </channel>
</rss>
