Muhammad Safee Ullah

Hands-on engineer and technical founder. I designed DigiLawyer’s agent runtime, wrote most of its code, and made AI legal research cheap enough to sell in Pakistan for PKR 2,000 a month. I work mostly on the parts around the model: routing, context, tools, cost and failure recovery.

Technical Skills

Languages:
TypeScript, Python, SQL
AI systems:
LangGraph, Vercel AI SDK, MCP, Gemini, hybrid retrieval (BM25 and vector), evals
Backend and data:
Node.js, Bun, Effect, tRPC, PostgreSQL (ParadeDB, pgvector), Turso / SQLite, Redis Streams, Convex
Frontend and infrastructure:
Next.js, React, React Native, AWS, Docker, Vercel, Clerk, OAuth 2.0

Experience

DigiLawyer

2022 - Present

CTO & Co-Founder

Lahore, Pakistan

  • Co-founded the company and built the product from an empty repository to 23,000 registered users and about 500,000 searches, chats and drafts a year at the current rate. Led up to six engineers through three generations of the platform and wrote most of the agent runtime and backend.
  • Made AI legal research affordable at PKR 2,000 a month by routing requests to small models, trimming the context sent on each call, and capping every run with hard budgets.
  • Designed the agent runtime on LangGraph. A router and a planner hand work to research, document and drafting specialists, each with only the tools it needs.
  • Built resumable streaming on Redis Streams so answers that take minutes survive dropped connections, and a retry never creates a duplicate turn or charge.
  • Built hybrid search (BM25 and vector) over 480,000+ judgments on PostgreSQL, returning results in a median of 0.35 seconds.
  • Shipped an authenticated MCP server that gives external AI clients such as Claude access to DigiLawyer’s legal tools.
  • Built per-organization data isolation, capability-based access control and usage-based AI credits.
  • Designed an evaluation harness for retrieval, citations and tool use, still in development.

Terminal-Bench 2

Dec 2025 - Apr 2026

Independent Evaluation Work

Remote

  • Wrote about 30 terminal-based evaluation tasks for coding agents, all merged.
  • Wrote task specifications, exercised graders and containers, and prototyped tooling for faster task authoring and review.

UET Lahore, Admission Office

Aug 2021 - Oct 2021

Frontend Developer Intern

Lahore, Pakistan

  • Built the React Native frontend and API layer for a marketplace app used by hundreds of thousands of people on Android and iOS.
  • Split a single-file codebase into modular components other developers could extend. Received a permanent offer after the internship.

Writing

Education

University of Engineering and Technology

2024

B.S. Computer Science

Lahore, Pakistan

References

Will be shared upon request