Skip to content

Instantly share code, notes, and snippets.

View hassan404's full-sized avatar

Hassan Ali hassan404

View GitHub Profile
@hassan404
hassan404 / ai_agents_intro_2025.md
Created May 12, 2025 06:31
AI Agents in 2025: A Pragmatic Introduction for Developers

AI Agents in 2025: A Pragmatic Introduction for Developers

In the ever-evolving landscape of artificial intelligence, AI agents have emerged as one of the most promising paradigms for building intelligent systems. Unlike chatbots or simple automation tools, AI agents can reason, plan, and execute multi-step tasks with minimal human intervention. They represent a fundamentally new way to develop applications that can autonomously solve complex problems.

But what exactly are the building blocks of an effective AI agent system? If you're a developer looking to enter this space, understanding the core components—in order of their importance—will help you build a mental model of the field and guide your learning journey.

The Anatomy of AI Agents: A Developer's Guide

Let's break down the essential components of AI agent systems in descending order of importance. This architecture reflects the market realities of 2025, focusing on what's actually being used in production rather than experimental approaches.

@hassan404
hassan404 / ngrok_fixed_domain.md
Created March 25, 2025 09:43
Ngrok fixed domain configuration

ngrok Configuration with a Fixed Domain

This guide explains how to set up ngrok with a fixed domain using an Edge.


1. Claim a Free Static Domain

  1. Go to ngrok Dashboard → Domains.
  2. Click "New Domain" and create one
@hassan404
hassan404 / combine_files.py
Last active February 6, 2025 11:46
File Content Combiner
import os
import sys
def process_path(path, extension=None):
"""
Process a single path which can be either a file or directory.
If it's a directory, recursively process all files with given extension.
If it's a file, process it directly.
const sampleOrders = {
daraz: [
{ orderId: 101, customerName: "Alice", amount: "$120", status: "Delivered" },
{ orderId: 102, customerName: "Bob", amount: "$85", status: "Shipped" },
{ orderId: 103, customerName: "Cathy", amount: "$150", status: "Pending" },
{ orderId: 104, customerName: "Daniel", amount: "$200", status: "Cancelled" },
{ orderId: 105, customerName: "Eva", amount: "$95", status: "Delivered" },
{ orderId: 106, customerName: "Frank", amount: "$50", status: "In Transit" },
{ orderId: 107, customerName: "Grace", amount: "$120", status: "Shipped" },
{ orderId: 108, customerName: "Hank", amount: "$300", status: "Delivered" },