class Trilochan:
location = "Nepal"
role = "AI/ML Researcher and Full-Stack Engineer"
spike = "Agentic memory systems, multi-agent protocols, RAG pipelines, MCP tooling"
breadth = ["LLM fine-tuning", "Backend systems", "IoT and Edge AI"]
proof = {
"published_research": [
"doi.org/10.5281/zenodo.19784778", # ContextForge
"doi.org/10.5281/zenodo.20671083", # TOAP
],
"shipped_npm_package": "cms-mcp",
"live_products": ["AI portfolio platform", "autonomous job agent"],
}
def mission(self):
return "Build AI systems that survive contact with the real world"I learn whatever the problem requires and own the full pipeline β from data and training to deployment and monitoring. Currently CS undergrad at Kathmandu University, doing independent research on the side.
Multi-agent LLM pipelines forward a growing transcript into every downstream prompt, so token cost compounds with pipeline depth. TOAP proposes a broker-mediated architecture with a two-plane wire format, a capability-lattice security model, and a reference-materialization spectrum (text / context ID / KV-cache pointer) chosen per call by a cost model β then measures, rather than assumes, where each strategy actually wins.
| Result | Metric |
|---|---|
| Token savings vs. naive baseline | ~1.9Γ (reference) |
| Losslessness (8-fact task) | 8/8 reference vs. 6/8 summary |
| Cross-vendor replication | Qwen2.5-7B & Mistral-7B, same direction |
| Prompt-injection block rate | 40/40, 0 false positives on 14 benign requests |
| KV-cache prefill speedup | up to ~180Γ (35/36 cells byte-identical) |
| Implementation | Rust, 29 passing tests |
π BibTeX
@article{sharma_2026_toap,
author = {Sharma, Trilochan},
title = {TOAP: The Token-Optimized Agent Protocol β Reference, Summary, or KV Cache? Measuring How Multi-Agent Systems Should Share Context},
year = {2026},
publisher = {Zenodo},
doi = {10.5281/zenodo.20671083},
url = {https://doi.org/10.5281/zenodo.20671083}
}Every AI coding session starts blank β decisions, tradeoffs, and context from last week are gone. ContextForge is a persistent, queryable knowledge graph that gives AI coding assistants exactly the context they need across sessions, with adversarial-input defense built in.
| Result | Metric |
|---|---|
| Memory quality ranking | #1 of 6 systems benchmarked |
| Memory Integrity Score | 0.801 |
| Adversarial block rate | 90% (1% false positives in production mode) |
| Token savings vs. static context files | 93% |
| Benchmark suite | 990 tests passing |
π BibTeX
@software{sharma_2026_contextforge,
author = {Sharma, Trilochan},
title = {ContextForge: Agentic Memory for AI-Assisted Development},
year = {2026},
publisher = {Zenodo},
doi = {10.5281/zenodo.19784778},
url = {https://doi.org/10.5281/zenodo.19784778}
}|
π οΈ cms-mcp Β· Published MCP server giving Claude programmatic control over any REST-based CMS. 32 tools, human approval gate with browser UI, policy engine, circuit breaker, audit logging, OpenAPI auto-discovery. 78 tests.
|
π§βπΌ Job Agent Autonomous job application pipeline: scrapes listings, scores them with semantic search, generates ATS-optimized resumes via a DPO fine-tuned model, submits applications, and retrains nightly on real outcomes.
|
|
π MeroStudySathy Multi-agent PDF tutor: upload any PDF, get a structured learning plan, cited teaching sessions, and evaluated practice questions. Response caching cuts API costs 60-80%. Fully local β no data leaves your machine.
|
π¬ Scene Sorter Production-grade scene classification and image organization. MobileNetV2 transfer learning, ~86-87% accuracy, batch inference, auto folder sorting, ZIP export.
|
π More projects (classical ML, web)
| Project | What it does | Stack |
|---|---|---|
| AI Portfolio Platform | Dynamic portfolio with RAG chatbot, admin CMS, analytics. Live on Vercel. | Next.js 14, Supabase, Gemini |
| Product Pitch Recommender | Travel product recommendation with probability insights and bulk prediction | Scikit-learn, Streamlit |
| Customer Churn Prediction | End-to-end ML pipeline from preprocessing to Flask deployment | Scikit-learn, Flask |
| Student Placement Prediction | Placement prediction with full EDA and deployed Streamlit UI | Scikit-learn, Streamlit |
Languages
AI / ML β supervised and deep learning, transformers, fine-tuning (LoRA, DPO), evaluation and benchmarking
Agentic AI / RAG / Multi-Agent Protocols β multi-agent orchestration, vector search, MCP tool design, policy engines, prompt engineering, agent-to-agent protocols
Web / Backend β REST APIs, auth (OAuth2, JWT, RLS), SSE, background jobs
Infra and Tools
IoT / Edge β ESP32, Raspberry Pi, Arduino, sensor pipelines, on-device inference (MobileNet), LoRa-based connectivity
| Area | What I'm doing |
|---|---|
| π¬ Research | Multi-agent context-sharing protocols (TOAP) and agentic memory / adversarial defense (ContextForge) |
| πΎ AgriTech | Architecting an offline-first precision agriculture platform for smallholder farmers in South Asia |
| π§ LLM internals | Implementing transformer architectures from scratch in PyTorch β attention, RoPE, MLA |
| βοΈ Systems | Working through Designing Data-Intensive Applications, building distributed-systems intuition |