# Muhammad Talha (TJ) > Plain-text summary of this site for AI agents and tools. Everything on the site is here; > please read this file instead of scraping pages. Generated from the site's own data at build time. Software Engineer. Tool-agnostic engineering problem solver. Dallas–Fort Worth, TX. Motto: Problems, not issues. Solutions, not tools. Availability: Available for full-time roles. Currently pursuing an M.S. in Computer Science at UT Dallas; the degree does not limit full-time availability. ## Contact - Email: talha.j771@gmail.com - GitHub: https://github.com/talha771 - LinkedIn: https://linkedin.com/in/tjbravo - Resume (PDF): https://tjbravo.com/resume.pdf ## About I'm a software engineer who treats languages and frameworks as a means, not an identity. My job is to find where the work actually hurts and make it stop hurting. Sometimes that's a React screen, sometimes a SQL function, sometimes a migration nobody wanted to touch. Right now that means owning the production-reporting platform at Jacqueline Construction, a fiber-construction contractor. I took it from spreadsheets and texts, through an Airtable app crews actually adopted, to a Postgres platform with six roles enforced all the way down to row-level security. Before that I was at QLU.AI in San Francisco, building search over messages the server is never allowed to read. In January 2026 I started an M.S. in Computer Science at UT Dallas. Alongside it, I'm doing graduate security research on whether AI-generated code patches are as safe as the human-written ones they replace (short answer: not yet), and building a mixture-of-experts model for brain-tumour segmentation. On my days off I still write code by hand: no autocomplete, no assistant, just me and an empty file. Partly to keep the fundamentals sharp in an era of AI-written patches (I study how those go wrong for a living), and mostly to make sure I don't lose my mind. Outside of code, I read a lot of books about how nations convince themselves they're nations, I've never once regretted a Lord of the Rings extended-edition marathon, and I'm counting the days to Dune: Part Three. ## How I work - Problems, not issues: An issue is a ticket. A problem is the reason someone opened it. I chase the second one: the crew re-typing numbers at 9pm, the approval stuck in a manager's inbox, the search that can't see encrypted text. - Solutions, not tools: Airtable when adoption matters, Postgres when the numbers have to be trusted, Cassandra when the index has to be encrypted, C and pthreads when it's about the OS, CodeQL when the question is whether a patch is safe. The tool is whatever the problem asks for. - Boring where it counts: Rules in one place, enforced by the database. Writes that are idempotent and reversible. Models that recommend and humans who approve. Clever goes in the parts that can afford to fail. ## Experience ### Full-Stack Developer, Jacqueline Construction (Wylie, TX) | Oct 2024 – Present - Independently built and own the company's production-reporting and job-costing platform (Next.js, Supabase Postgres) end to end: hosting, database, deploys, security and user support. - Saves ~6 hours a day across 25 Construction Managers and cut report generation from ~2 hours to 3 seconds. - Work directly with field crews, the CEO, accounting, administration and fleet. I run discovery, train users and provision their accounts. - Turn vague requests into flexible systems. "Track emergency work" became user-configurable work types (emergency, billable) that the business adjusts without a deploy, plus a one-step after-hours job flow. - Migrated it off Airtable via a custom ETL pipeline: ~4,800 entries and 218 projects, verified with integrity checks. - Designed a six-role permission model enforced from middleware down to Postgres row-level security (35/35 RLS tests). Note: Scale: 5,000+ field reports a year · 149 active projects · 44 subcontractors · 12 billable work types · a contractor with up to $40M in annual revenue. Case study: https://github.com/Talha771/jacqueline-case-study ### Full-Stack Developer (Frontend-Focused), QLU.AI (San Francisco, CA) | Oct 2023 – Oct 2024 - Shipped end-to-end features on a React/Next.js SaaS platform with 300+ daily active users; Redux refactor cut UI regressions 30%. - Built encrypted-message search on a Cassandra reverse index: no plaintext stored on client or server. - Built direct-to-S3 attachments with pre-signed URLs, so files never pass through the app server. Note: Left after a year because I was moving cities. Case study: https://github.com/Talha771/QLU-AI-case-study ## Projects ### To Vibe or Not to Vibe | May 2026 – Current Graduate security research (targeting publication): are AI-generated bug-fix patches as secure as human ones? Measured with CodeQL across SWE-bench Pro. - Pipeline builds control / human / AI variants of each repo with git worktrees and runs CodeQL security suites on HPC. - SARIF diffing engine counts vulnerabilities fixed vs. introduced per patch, weighted by CVSS severity. Tags: Python, CodeQL, Security, HPC, Research Paper: https://tjbravo.com/research/to-vibe-or-not-to-vibe ### Agent Harness for Manufacturing (PoC) | Sep 2026 One AI agent per employee at a simulated manufacturer: it catches supply problems before a line stops and proposes fixes a human approves. Built in 3 days. - Rules eliminate bad options; the LLM only picks among survivors and drafts messages. It holds no credentials. - Postgres row-level security per user, idempotent and reversible writes, crash-safe LangGraph workflows. Tags: Python, LangGraph, LLM Agents, Supabase, Streamlit Code: https://github.com/talha771/harmonyTH Case study: https://tjbravo.com/projects/harmony-agent-harness ### Mixture-of-Experts Brain Tumour Segmentation | Nov 2026 – Current In progress: segmenting brain tumours in MRI with one expert model per scan modality. - Parallel, resumable data pipeline over 484 labelled 3D BraTS volumes, with a leak-free 70/15/15 split. - Next: per-modality experts, a gating network, and per-region Dice evaluation. Tags: Python, Medical Imaging, Mixture of Experts, In progress ### Lazy Shell | 2022 · Operating Systems A Unix shell in C on raw system calls: fork/exec, background jobs, SIGCHLD reaping, history with !N recall. Tags: C, POSIX, Signals Code: https://github.com/Talha771/Lazy-Shell ### One-Lane Street | 2022 · Operating Systems A pthreads concurrency sim: two-way traffic on a one-lane street that holds three cars and closes for repair, kept safe with mutexes and condition variables. Tags: C, pthreads, Concurrency Code: https://github.com/Talha771/OS_Assignment4 ## Skills - Languages: TypeScript, Python, JavaScript, SQL, C - Frameworks: React, Next.js, Node.js, Express, FastAPI, Redux, TanStack Query, TailwindCSS, MUI - Data: PostgreSQL, Supabase (RLS), MySQL, Cassandra, Redis, SQLite - AI / ML: LangGraph, LLM agents, RAG, nibabel / NumPy - Cloud / DevOps: AWS (EC2, S3, RDS), Vercel, Docker, Git/GitHub, Unix/Linux, HPC - Security: CodeQL, SARIF, Row-level security ## Education - M.S. Computer Science, University of Texas at Dallas (Jan 2026 – May 2028) - B.S. Computer Science, Habib University (Jun 2020 – Jun 2024) ## Research ### To Vibe or Not to Vibe: An Empirical Security Analysis of AI-Generated Code Patches Authors: Muhammad Talha, Vishwaa Shah | Research Paper (in progress, targeting publication) | May 2026 – Current Venue: University of Texas at Dallas — CS 6356, Software Maintenance, Evolution & Re-Engineering Abstract: The practice of “vibe coding” — submitting a bug report to an AI coding assistant and merging the returned patch after a cursory functional review — has become routine in modern software development, with AI-generated code reportedly comprising up to 46% of committed code in some repositories. This paper presents SNRA, the first empirical study measuring the security impact of AI-generated bug-fix patches at production scale — not isolated code generation, but real reported defects patched against a human-expert baseline for the same bug. URL: https://tjbravo.com/research/to-vibe-or-not-to-vibe PDF: https://tjbravo.com/papers/to-vibe-or-not-to-vibe.pdf ### YohsinConnect: A Retrieval-Augmented Generation Chatbot for University Admissions Authors: Muhammad Talha, Muhammad Uzair Amin, Zain Hassan | Capstone Project | Aug 2024 – Dec 2024 Venue: Habib University — Kaavish (Senior Capstone) Abstract: Habib University's website is comprehensive but hard to navigate, especially for prospective students and parents unfamiliar with it. YohsinConnect is a Retrieval-Augmented Generation (RAG) chatbot that answers admissions-related questions in natural language, grounding its answers in the university's own published information to reduce hallucination. Across a 43-question benchmark scored on six metrics (BLEU, ROUGE, BERTScore, RAGAS Faithfulness, RAGAS Answer Relevancy, and a custom correctness metric), a locally-hosted, open-source model with Chain-of-Thought prompting outperformed a much larger commercial baseline. URL: https://tjbravo.com/research/yohsinconnect ### Acceleration of Forward-Backward Algorithm in CUDA Authors: Muhammad Uzair Amin, Muhammad Talha, Ayyan Bin Fawad | Research Paper | Undergraduate Research Venue: Habib University Abstract: Detecting Strongly Connected Components (SCCs) in a graph is a core building block behind compilers, social-network analysis, and image segmentation, but classic serial algorithms don't scale to graphs with millions of nodes and edges. We accelerate an existing GPU implementation of the parallel Forward-Backward (FB) algorithm using CUDA streams, achieving up to 40% faster execution on a single consumer GPU. URL: https://tjbravo.com/research/cuda-fb-algorithm PDF: https://tjbravo.com/papers/cuda-fb-algorithm.pdf ### SemEval Human Evaluation: Multi-Label Text Classification with Fine-Tuned BERT Authors: Muhammad Talha | Course Project / Shared-Task Participation | Feb 2024 – Mar 2024 Venue: Introduction to Large Language Models — Habib University, SemEval Human Evaluation shared tasks at CLEF Abstract: As part of an Introduction to Large Language Models course, this project tackled the SemEval Human Evaluation shared tasks (2023 and 2024) hosted at the CLEF conference — building a multi-label text classification pipeline to distinguish human-written from machine-generated text. URL: https://tjbravo.com/research/semeval-human-evaluation ## Case studies (full text) ### An Agent Harness for the Factory Floor (Proof of concept) One AI agent per employee at a simulated manufacturer. It spots supply problems before they stop a production line, proposes a fix, and acts only after a human approves it. Built in a 3-day time box. - Built: Sep 2026 · 3-day time box - Size: ~8,200 lines of Python, ~1,000 lines of SQL - Tests: 29 tests, no network or model needed Stack: Python, LangGraph, Groq (gpt-oss-120b), Supabase / Postgres, Row-Level Security, Realtime, SQLite, Streamlit, Arize Phoenix, pytest Code: https://github.com/talha771/harmonyTH URL: https://tjbravo.com/projects/harmony-agent-harness #### The brief Build an extendable agent harness for enterprise work: give every employee at a manufacturer a personal AI agent. I had three days. My answer is a working proof of concept against a simulated manufacturer, Northfield Manufacturing. It has an ERP, an email system and calendars, and a day simulator that feeds problems in one day at a time. #### The insight: the hard part is the join In a factory, the scarce resource isn't reasoning. It's the join. The purchase order is in the ERP. The supplier's email saying it will be four days late is in someone's inbox. The production schedule that depends on that part lives somewhere else. The ERP can answer "given these arrival dates, am I short?" Nobody is answering "what are the *real* arrival dates?" So I gave the agent one measure of success: does a production order start on time over the next 14 days? Every check, proposal and alert has to trace back to that question. #### Design principle: rules eliminate, the model chooses I didn't want a model with credentials making judgment calls on purchase orders. The work is split three ways: - Deterministic detectors find problems: netting shortfalls, allocations to held lots, overdue receipts, and suppliers not qualified for a part. - Hard rules remove bad options. An unqualified supplier never reaches the model, however cheap it is. - The model reads claims out of messy email prose, picks among options that are equally good on cost and lead time, and drafts the messages. It has no credentials and can only recommend. What the agent is allowed to do depends on coverage, not on how confident the model sounds. If a versioned workflow covers the situation, the agent proposes it. If only a check fired, it raises an alert. Otherwise it stays quiet. #### Architecture: five planes, three keys - World: Supabase Postgres with erp, mail and cal schemas. Row-level security decides who sees and writes what, so a quality manager's inbox is hidden from purchasing by the database itself, not by app code. - Day simulator: owns the clock and injects each day's events. It is the only component holding the service-role key. - Provider gateway: gives each user a session with ERP, mail, calendar, event and write providers, all under that user's own token. Every write checks scope, requires an approval reference and an idempotency key, re-reads its preconditions, then writes, logs and emits an event. - Harness: a reactor wakes the agent on Realtime "doorbell" ticks, day changes, decisions or a 30-minute heartbeat. Then it runs detect → plan (a LangGraph tool loop that must end in exactly one commit tool) → verify → gate → execute, keeping its state in SQLite. - Approval UI: Streamlit is the *only* path to approval. The store refuses any decision without a click receipt. #### Walking through it Scenario A: a late supplier. A supplier emails Dana in purchasing to say a purchase order is slipping to September 8th. The agent joins that email to the PO, the part and the production order that needs it, rules out a tempting supplier that isn't qualified for the part, and proposes a reroute workflow to a qualified one. The new PO's price pushes it over Dana's $25K approval limit, so the gate sends it to her manager. If he hasn't decided by end of day and his calendar shows him out tomorrow, it goes to his backup. Once approved, an 8-step workflow runs: `` confirm_order → confirm_qualified → confirm_lead_time → create_po → cancel_original → draft_notice → notify_production → schedule_arrival_check `` The final step books a follow-up as a database row, not a timer, so it survives restarts. On the follow-up day the part still hasn't arrived, so the agent opens a new session and proposes the next move. Scenario B: a quality hold. A lot gets placed on hold. Ellen in quality has no purchasing permissions, so the agent looks for another lot to reallocate. If none covers the gap, it escalates rather than inventing an action she isn't allowed to take. The simulated world is also full of deliberate traps. There is a cheap unqualified supplier, emails that almost match a real issue, a payment-redirect email from a lookalike domain, a shortage with no email at all, an order outside the 14-day window, and a day where nothing arrives. #### Making writes safe - Inside a workflow the model cannot reorder, skip or add steps. It only drafts text from facts the engine gives it. - Every write is idempotent, replayed from a write log, and needs an approval reference. If a step fails, earlier steps are undone in reverse order. - Workflows are checkpointed with LangGraph's SQLite checkpointer and pick up where they left off if the process is killed. - Five versioned workflows (PO reroute, additional PO, supplier chase, reschedule request, quality recall and quarantine) sit on nine write actions, and each action needs exactly one scope. - Every run is traced in Arize Phoenix via OpenInference and recorded as a trajectory file you can replay. #### What I cut, and why it's honest to say so This is a proof of concept. I deliberately left out real SSO and token exchange (static tokens stand in), workflow version migration, alert ranking, an event bus with retries, and an HTTP approval endpoint. Most of these are designed in the notes but not built. There are known rough edges. Scenario A depends on the model choosing the workflow, which weaker models sometimes miss. The recorded runs show a handful of tool-call validation errors from the model provider, which the planner recovers from. An escalation isn't yet routed to the escalated person's console. The biggest trade-off is philosophical, and I wrote it into the design notes: a harness built this way can only find problems someone wrote a check for, and it doesn't automatically get smarter as models improve. I took that deal on purpose. In a factory, an agent you can audit is worth more than one that is occasionally brilliant. #### What I'd build next - OIDC SSO with RFC 8693 token exchange, so each agent acts with its employee's real identity. - Postgres LISTEN/NOTIFY with leased workers, to scale from one process to many. - Evaluation metrics: minutes from first signal to proposal, how often humans approve proposals as-is, and missed shortages per simulated month. - A Microsoft Graph adapter so the mail and calendar providers can point at a real tenant. ## Writing - Local Control for Yeelights using Home Assistant (2024-01-17): A short guide to cutting Yeelight bulbs loose from the cloud and controlling them locally through Home Assistant. https://tjbravo.com/writing/local-control-for-yeelights-using-home-assistant - A Night Owl's Worst Nightmare: The Capitalistic Nightmare (2022-07-15): On being wired for the night in a world built around sunrise — from school assemblies to the 9-to-5 grind. https://tjbravo.com/writing/a-nightowls-worst-nightmare-the-capitalistic-nightmare - The Scam of Online Blogs (2022-05-28): A former content writer on cost-per-word incentives, SEO-driven filler, and why most blog advice is a starting point, not a solution. https://tjbravo.com/writing/the-scam-of-online-blogs - The Deterioration of Democracy — Habib University Edition (2022-05-28): A small campus meeting becomes a lens on how institutional dysfunction trickles down from the national to the personal. https://tjbravo.com/writing/the-deterioration-of-democracy-habib-university-edition - Companies or Us? Who Bears the Weight of Sustainability? (2021-07-10): BP invented the personal carbon footprint to shift the blame onto consumers. It worked. It's still working. https://tjbravo.com/writing/companies-or-us-who-bears-the-weight-of-sustainability - A Contrary to Social Conditioning (2021-05-17): Why the people most punished for their emotions as children sometimes end up the most fluent in them as adults. https://tjbravo.com/writing/a-contrary-to-social-conditioning - An Ode to All Those Unheard (2021-04-03): Distressed, depressed, and repressed emotions — a short, unpolished poem. https://tjbravo.com/writing/an-ode-to-all-those-unheard - Things I'm Still Learning (2021-04-01): Notes to self on adult friendships, the lie of the highlight reel, and investing in the one relationship that never ends. https://tjbravo.com/writing/things-im-still-learning - Corpus Delicti and Trauma (2020-10-23): A jurisprudence term about proving a crime happened becomes an unexpectedly precise metaphor for holding on to pain. https://tjbravo.com/writing/corpus-delicti-and-trauma ## Reading Read: - Sapiens: A Brief History of Humankind by Yuval Noah Harari: The one that got me hooked on treating 'nations' and 'money' as stories we've all agreed to believe. - Pakistan Lost: Ideas on the Idea of Pakistan by Shahzad Ghias: A closer, less comfortable look at the founding vision of the country I grew up in versus what it became. - Imagined Communities by Benedict Anderson: Pairs uncomfortably well with Sapiens and Pakistan Lost — nationhood as a printed, shared fiction. - Military Inc. by Ayesha Siddiqa: The economics behind a military that runs bakeries, banks, and real estate on the side. - Future Ready by Uzair Younus: A more forward-looking counterpart to the history-and-identity stack above — what comes next, not just how we got here. - Riverboy by Tim Bowler: Carried this one since school. Still returns to me at odd times. - In the Nick of Time by Ain Farooq: A quieter one, but it's stuck with me. - In Love: A Memoir of Love and Loss by Amy Bloom: A deeply personal reflection on love, choice, and dignity, exploring the complexities of facing illness, assisted dying, and the bonds that define a life. - The Chaos Machine by Max Fisher: How engagement-maximising algorithms quietly rewired politics. Required reading for anyone who ships a recommendation system. - Orientalism by Edward W. Said: How the West wrote 'the East' into being. Reads like the third leg of the stool with Imagined Communities and Sapiens. Up next: - A Cry for Justice by Kaiser Bengali - Winston Churchill: His Times, His Crimes by Tariq Ali - The Clash of Fundamentalisms by Tariq Ali ## Films - Dune: The whole saga — Villeneuve's Part One and Part Two are as close to reading Herbert as cinema gets. Sound design that you feel in your chest, and a 'hero's journey' that quietly warns you not to trust heroes. Counting down to Dune: Part Three (Messiah). ## Fandoms - The Lord of the Rings: Extended editions only. Will defend the Tom Bombadil cut in casual conversation. - Harry Potter: Grew up on it, still re-read it. No further explanation needed. - Avatar: The Last Airbender: The gold standard for how to end a story you've been telling for years.