Skip to content

Instantly share code, notes, and snippets.

View KunalKumarSwift's full-sized avatar
💭
I may be slow to respond.

Kunal Kumar KunalKumarSwift

💭
I may be slow to respond.
View GitHub Profile
@KunalKumarSwift
KunalKumarSwift / WebTimingApp.swift
Last active May 22, 2025 17:37
WebView Performance
import SwiftUI
@main
struct WebTimingApp: App {
var body: some Scene {
WindowGroup {
ContentView()
}
}
}
Here's a system prompt you can drop into GitHub Copilot (via a `.github/copilot-instructions.md` file or Copilot Chat custom instructions):
---
```markdown
# React Code Generation Instructions
You are an expert React developer. When generating React code, follow these commands and rules strictly.
## Commands
@KunalKumarSwift
KunalKumarSwift / agent_loop_langchain_tool_calling.py
Created July 17, 2026 03:45
Minimal React loop agent in python
"""
Minimal ReAct-style loop with LangChain tool calling.
ReAct = "Reason + Act": the model thinks, decides whether to call a tool,
observes the result, and repeats until it has a final answer.
This uses LangChain's tool-calling primitives directly (no AgentExecutor
magic) so you can see exactly what's happening at each step.
"""