Aiagent Lib — AI skill for Claude Code
Lightweight Kotlin library for building LLM agents: a tool-calling agent loop plus clients for Claude, Gemini and local models, with token counting.
How to install Aiagent Lib
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open ronenavezov1/aiagent-lib and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Aiagent Lib does
Lightweight Kotlin library for building LLM agents: a tool-calling agent loop plus clients for Claude, Gemini and local models, with token counting.
Alternatives in AI
- Vllm Mlx — High-performance OpenAI and Anthropic compatible LLM inference server for Apple Silicon 1.5k ★
- Uncensored AI API — Uncensored AI API and models — one key for Claude, GPT, Gemini, Grok, DeepSeek, GLM and Kimi, with uncensored 222 ★
- Pbi CLI — Power BI CLI - semantic models (.NET TOM) and PBIR reports for token-efficient AI agent usage, built for Claud 217 ★
README
llm-agent
ספריית Kotlin אחת לכל הפרויקטים: לקוחות LLM (Claude, Gemini, מודל מקומי) ומנוע סוכן (`AiAgent`) שמפעיל כלים. המסגרת היא זו של date-with-roni, בלי שום דבר שקשור לפרויקט מסוים.
להוסיף לפרויקט
לפי נתיב, בלי להעתיק jar. ב-`settings.gradle.kts` של הפרויקט:
includeBuild("../aiagent-lib") // הנתיב היחסי לתיקייה הזו
וב-`build.gradle.kts`:
dependencies {
implementation("com.aiagent:llm-agent:0.1.0")
}
Gradle מחליף את התלות בקוד של התיקייה, ומקמפל אותה בכל בנייה של הפרויקט. שינוי כאן נכנס לכל הפרויקטים בבנייה הבאה שלהם — בלי לפרסם ובלי להעתיק. גם IntelliJ פותח את הקוד של הספרייה ישירות מהפרויקט, ואפשר לערוך אותה משם.
מבנה
com.aiagent.lib
agent/ AiAgent · AgentConfig · AgentHistory · AgentCapability (Tool, Action) · AgentStatus
llm/ LlmClient ← BaseLlmClient ← AnthropicLlmClient · GoogleLlmClient · LocalLlmClient
CountingLlmClient — עוטף כל לקוח וסופר טוקנים
debug/ DebugLogger
שימוש
val llm = AnthropicLlmClient(apiKey = key) // Claude Opus 5.5
// val llm = GoogleLlmClient(apiKey = key, fastModel = "<מודל>") // Gemini
// val llm = LocalLlmClient(fastModel = "gemma2:27b") // Ollama על המחשב
val agent = AiAgent(
AgentConfig(
agentId = "weather",
llmClient = llm,
systemPrompt = "אתה חזאי.",
tools = mapOf(weather.name to weather),
)
)
val answer = agent.processInput("מה מזג האוויר בתל אביב?")
כל ההגדרות עוברות בבנאי. הספרייה לא קוראת `.env` — זה התפקיד של הפרויקט.
הספקים
| FAST / SMART | חשיבה בין קריאות כלים | מה עוד | |
|---|---|---|---|
AnthropicLlmClient |
Sonnet 5.5 (effort נמוך) / Opus 5.5 (effort גבוה) | התור של המודל חוזר אליו כמו שהוא | fallback בצד השרת כשמסווג הבטיחות מסרב |
GoogleLlmClient |
מודל אחר לכל דרגה | החתימה חוזרת על אותה קריאה | |
LocalLlmClient |
רק FAST — SMART זורק שגיאה | — | לא כל מודל מקומי תומך בכלים |
שלושתם עוברים דרך `BaseLlmClient`: ניסיונו
Related Skills
Full Stack Chat Application With Multi Platform Clients AI Agent Integration
A Claude Code-style AI agent harness in Python. Uses Ollama + native LLM tool-calling to read/write files and
Agent Runtime
Provider-agnostic LLM agent loop for Node: bounded tool calling with validated inputs, token-budget memory, tr
LLM Cost
Count tokens and estimate API costs for large language models with a lightweight, single-header C++ library fr
RayCodes BookToSkill
Book to Skill Github: Turn Any PDF Into Local AI Skill (No Token Limits!) - Turn any PDF or book into structur
Jev Model Router For Coding Tasks OSS
Open Source Models via Nebius Token Factory: Jev routes Claude Code across DeepSeek V4 Flash, Kimi K2.6 and Ki
UTCP HelloWorld
A lightweight, declarative AI agent implementing the Universal Tool Calling Protocol (UTCP) for live FINRA Bro
Related Agents
LLM Integrator
LLM integration specialist who connects to OpenAI/Anthropic/Ollama APIs, designs prompt templates, implements
Synapse
Principal AI & Agentic Systems Engineer. Builds deterministic Gemini/LLM state machines, MCP servers, structur
Delegate
Expert LLM delegation specialist that seamlessly connects to external language models including GPT-4, GPT-3.5