This is a submission for the Hacktoberfest Open-Source AI Challenge Week 1: Touch Grass
What I Built
Deen Trace β an AI that knows when to get out of your way.
Deen Trace is a concept/prototype for a private, offline-first Muslim activity journal built around one simple principle:
Log β Reflect β Leave the screen.
The idea is to let people record everyday activities such as Salah, Qur'an, Dhikr, Sadaqah, Good Deeds, and Fasting, then review their history through a simple visual activity graph.
But the feature I designed specifically for Touch Grass is called Step Outside.
Instead of using AI to keep someone talking to an app, Deen Trace uses a local open-weight model to look at activity patterns and generate a small, non-judgmental suggestion for something the user can do away from the screen.
For example:
Step Outside
Put your phone down.
Take a short walk.
Notice something you normally overlook.
And then the app gets out of the way.
There are no outdoor streaks, XP, leaderboards, badges, or engagement loops.
The app doesn't even need to know whether the user followed the suggestion.
The goal is for the screen to be the shortest part of the experience.
Demo
This submission is currently a prototype/concept implementation plan rather than a deployed application.
The intended demo flow is:
- Record daily activity.
- View the activity graph.
- Turn Wi-Fi/mobile data off.
- Generate a reflection using the local AI model.
- Receive a personalized "Step Outside" suggestion.
- Put the phone down and actually go outside.
The most important moment of the demo would be generating the reflection while completely offline.
Code
The project is designed as an open-source application with the following architecture:
deentrace/
βββ presentation/
βββ domain/
βββ data/
βββ ai/
βββ core/
The local database is the source of truth for the device.
The application is designed so that activity tracking does not depend on network access, while cloud services are limited to authentication and synchronization.
How I Built It
The proposed implementation uses:
- Flutter for the cross-platform application
- SQLite for local-first activity storage
- llama.cpp for local model inference
- Qwen3, an open-weight model, for local reflections
- A small application/domain layer separating business logic from the UI
The AI pipeline is intentionally narrow:
Activity Data
+
Optional Good Deed Notes
β
βΌ
Context Builder
β
βΌ
Local Open-Weight Model
β
βΌ
Reflection Validator
β
βΌ
Monthly Reflection
β
βΌ
Step Outside
The model only receives the information required to generate the requested reflection.
Personal activity is not sent to a remote AI API.
The AI would have three modes:
- Off
- Reports only
- Reports + personalized suggestions
The suggestion system is deliberately pattern-based and non-judgmental.
The AI is not a religious authority. It must not provide Islamic rulings, judge someone's faith, assign spiritual value, invent activity, or make unsupported claims about the user.
The underlying product architecture is also designed around offline-first behavior. Creating activities, editing them, viewing history, and viewing the activity graph should all work without an internet connection.
Why Does Open Innovation Matter?
This project deals with unusually personal information.
A person's worship activity and private Good Deed notes are not the kind of data I want to send to a remote AI provider simply because a cloud API is convenient.
Local open-weight inference changes that.
The intended architecture is:
DEVICE
βββββββββββββββββββββββββββββββββββ
β β
β Local Activity Database β
β β β
β βΌ β
β Context Builder β
β β β
β βΌ β
β Open-Weight Model β
β β β
β βΌ β
β Reflection / Suggestion β
β β
βββββββββββββββββββββββββββββββββββ
The user's personal activity can remain on the device.
Privacy
The AI doesn't require personal activity to be uploaded to a hosted AI service.
Offline capability
Once the model is installed, the reflection experience can work without an internet connection.
That is particularly relevant to the Touch Grass theme: the application should still be useful when someone is away from reliable connectivity.
Model freedom
The AI layer is intentionally replaceable.
The application should not be architecturally tied to a single proprietary API. Different open-weight models can be tested, optimized, or replaced without redesigning the entire product.
But the most important reason for using open AI is philosophical.
I don't want an AI assistant that tries to maximize the amount of time I spend talking to it.
I want an AI that can look at my activity, help me reflect, and then tell me:
Put the phone down.
That's what makes local open AI meaningful for this project.
My Agent Session
This prototype does not currently have a DevRelay agent session.
The intended development workflow would use an agent to help build and test the local-first architecture, while keeping the application's personal activity data separate from any remote AI service.
Prize Categories
Open-Source AI / Open-Weight AI
The project is designed specifically around an open-weight local model and local inference rather than a closed hosted AI API.
The idea behind Deen Trace
Deen Trace is built around a simple principle:
Real life comes before the app.
The activity graph isn't a spiritual score.
The AI isn't a religious authority.
The app doesn't need to know whether you actually followed its suggestion.
It just needs to help you reflectβand then get out of your way.
Log β Reflect β Leave the screen.
Top comments (0)