by wanxingai
LightAgent: Lightweight Python framework for OpenAI-compatible agents with tools, memory, guardrails, tracing, lifecycle hooks, multi-agent collaboration, and workflows.
# Add to your Claude Code skills
git clone https://github.com/wanxingai/LightAgentLast scanned: 5/29/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-05-29T07:56:02.654Z",
"semgrepRan": false,
"npmAuditRan": true,
"pipAuditRan": false
}LightAgent is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by wanxingai. LightAgent: Lightweight Python framework for OpenAI-compatible agents with tools, memory, guardrails, tracing, lifecycle hooks, multi-agent collaboration, and workflows. It has 1,212 GitHub stars.
Yes. LightAgent passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/wanxingai/LightAgent" and add it to your Claude Code skills directory (see the Installation section above).
LightAgent is primarily written in Python. It is open-source under wanxingai on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh LightAgent against similar tools.
No comments yet. Be the first to share your thoughts!
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM is an informational directory and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.

LightAgent is an ultra‑lightweight, open‑source framework that now natively supports Skills — letting you compose reusable capabilities with persistent memory, tool use, and tree‑of‑thought reasoning. It streamlines multi‑agent collaboration (build self‑learning agents in one step), connects to MCP over stdio and SSE, runs on any modern LLM (OpenAI, DeepSeek, Qwen, and more), and outputs OpenAI‑compatible streaming APIs for instant drop‑in with any chat interface. Small, modular, and skill‑ready — spin it up in five minutes.
max_tool_iterations, consistent on_error / after_run closure, and expanded regression coverage.agent.export_trace(), and prompt-safe model request summaries for production debugging.agent.run() and stream=True behavior compatible.Older release notes are available on GitHub Releases.

mem0 memory module, automatically managing user personalized memory during conversations, making agents smarter.Tools) and MCP tool integration, flexible expansion to meet diverse needs.ToT) module with reflection, supporting complex task decomposition and multi-step reasoning, enhancing task processing capabilities.trace=True run traces record structured run lifecycle, model request summaries, tool calls, tool results, and errors without changing the default string return value.LightEvaluator runs deterministic agent or LightFlow regression cases for output, tool choice, policy events, recovery, latency, usage, and estimated cost.HumanApprovalHook, durable review stores, and LightFlow approval checkpoints support approve, reject, argument editing, human responses, batches, and trace feedback for high-impact actions.hooks=[...] middleware can observe, replace, or block run, model, tool, memory, and LightFlow step phases while recording hook decisions in trace events.| Layer | Main API | Use it when you need |
|---|---|---|
| Single agent runtime | LightAgent |
One agent with model calls, tools, memory, stream |