Agent Capability Map

One router. Allowlisted open-source capabilities.

Pak-LLM uses popular GitHub and Hugging Face projects through a policy-aware capability router. A task is first checked against guardrails, general/special instructions and RAG/knowledge context. Only then is a capability selected and returned as an approval-gated MCP tool, browser DOM action, or desktop bridge action.

HITL approvalGuardrails firstRAG-awareLicense-awareNo silent execution

Routing order

Prompt-injection check → RAG context → explicit knowledge-base requests → domain tools (FBR, SBP, Daraz, legal, Quran, Gmail/Sheets, Microsoft 365, WhatsApp, charts, statistics, calculators, prayer, courier, deep research) → scored open-source capabilities → clarification. Google searches become a direct Google URL action.

The same policy is available as a JSON API at POST /api/agent/capabilities and as the MCP tool open_source_capability_router.

Browser automation

Playwright Browser Automation

hybrid
microsoft/playwright

Reliable browser automation for navigation, forms, screenshots and same-tab DOM actions.

Apache-2.0HITL

Browser Use (agentic browsing)

desktop
browser-use/browser-use

Multi-step autonomous browser tasks, ideal for research and web workflows.

MITHITL

Computer use & desktop

UI-TARS Computer Use

desktop
bytedance/UI-TARS

HF: ByteDance-Seed/UI-TARS-7B-DPO

GUI grounding and desktop action planning across applications and windows.

Apache-2.0HITL

Microsoft OmniParser

server
microsoft/OmniParser

HF: microsoft/OmniParser-v2.0

Parses screenshots into interactive UI elements for grounded computer-use actions.

MIT

Vision & UI grounding

Qwen2.5-VL Vision Language Model

server
QwenLM/Qwen2.5-VL

HF: Qwen/Qwen2.5-VL-72B-Instruct

Multimodal screen understanding, OCR, charts and visual grounding.

Apache-2.0

Xenova YOLOS-Tiny UI Region Scanner

client
huggingface/transformers.js

HF: Xenova/yolos-tiny

Fast in-browser UI region detection for Set-of-Mark grounding.

Apache-2.0

Research & web

SearXNG Meta Search

server
searxng/searxng

Privacy-preserving multi-engine web search.

AGPL-3.0web_search_grounding

Crawl4AI

server
unclecode/crawl4ai

LLM-friendly web crawling and extraction.

Apache-2.0deep_research_agent

RAG & knowledge

LlamaIndex RAG Orchestration

server
run-llama/llama_index

Hybrid retrieval over sovereign collections with citations and reranking.

MITrag_knowledge_retriever

Haystack Retrieval Pipelines

server
deepset-ai/haystack

Composable retrieval, reranking and reader pipelines.

Apache-2.0rag_knowledge_retriever

pgvector Semantic Store

server
pgvector/pgvector

Sovereign PostgreSQL vector storage for RAG collections.

PostgreSQLrag_knowledge_retriever

BGE-M3 Embeddings & Reranker

server
FlagOpen/FlagEmbedding

HF: BAAI/bge-m3

Multilingual dense/sparse embeddings for Urdu and English retrieval.

MITrag_knowledge_retriever

Documents & OCR

Docling Document Intelligence

server
docling-project/docling

PDF/DOCX/PPTX parsing with layout, tables and reading order.

MIT

Marker PDF Conversion

server
datalab-to/marker

High-fidelity PDF to Markdown conversion, tables and equations.

GPL-3.0 (commercial license available)

PaddleOCR

server
PaddlePaddle/PaddleOCR

Multilingual OCR for scanned documents and screenshots.

Apache-2.0

Code & sandboxes

OpenHands Coding Agent

server
All-Hands-AI/OpenHands

Sandboxed software-engineering agent for code changes and tests.

MITisolated_python_sandboxHITL

Aider Pair Programmer

desktop
Aider-AI/aider

Repository-aware pair programming and patch generation.

Apache-2.0HITL

E2B Code Sandboxes

server
e2b-dev/E2B

Ephemeral cloud sandboxes for data analysis and code execution.

Apache-2.0code_interpreter_replHITL

Voice

OpenAI Whisper Speech Recognition

server
openai/whisper

Multilingual speech-to-text including Urdu and Roman Urdu.

MIT

Faster-Whisper

server
SYSTRAN/faster-whisper

Low-latency CTranslate2 Whisper inference.

MIT

Media generation

Hugging Face Diffusers

server
huggingface/diffusers

Image and video generation pipelines.

Apache-2.0HITL

Orchestration

LangGraph Agent Orchestration

server
langchain-ai/langgraph

Stateful multi-step agent graphs with checkpoints and human gates.

MIT

Model Context Protocol Servers

server
modelcontextprotocol/servers

Standard tool protocol for connectors and external systems.

MIT

Model Context Protocol Tool Broker

server
modelcontextprotocol/servers

Routes the task to an allowlisted Pak-LLM MCP connector with Amanah policy, HITL and audit controls.

MITHITL

Guardrails & safety

Llama Guard Safety Classifier

server
meta-llama/llama-cookbook

HF: meta-llama/Llama-Guard-3-8B

Classifies prompts and responses against safety categories.

Llama 3.2 Community License

Meta Prompt Guard

server
meta-llama/llama-cookbook

HF: meta-llama/Prompt-Guard-86M

Detects prompt injection and jailbreak attempts.

Llama 3.2 Community License

NVIDIA NeMo Guardrails

server
NVIDIA/NeMo-Guardrails

Programmable rails for dialogue, tool and topic control.

Apache-2.0

Execution is always approval-gated

Selecting a capability never executes it. The action is proposed with a risk level, audit ID and server-signed HITL token. You must approve it, and the executor then verifies the token before any browser, desktop or MCP action runs.