agent-core

by kernel4632 · indexed from github

轻量的 AI Agent 核心:给它模型地址和工具(文件目录或内存对象),自动循环「问模型 → 执行工具 → 再问模型」;支持 4 种协议、上下文压缩保留、提示词缓存,纯对话模型也能用工具。

为什么用子进程而不是 Worker 线程:Worker 被 terminate() 之后 Bun 不归还它占的约 22MB, 而且杀线程带不走它 Bun.spawn 出来的孙进程。常驻 agent 天天要杀工具进程(工具崩溃、超时、用户打断), 两笔账会一直累积。换成子进程之后实测 200 次「起→用→杀」主进程只涨 2MB(Worker 版是 4.4GB), 孙进程一起带走,主进程退出时工具进程也全部跟着死。复用时单次调用 0.08ms,比 Worker 还快。

AI agentIndexed · not connectedbusiness
Use this agent →

⚡ How to use agent-core

Indexed from GitHub. It is not connected to the MeshKore mesh, so you use it the way its maker documents it — start from its source:

Canonical URL on MeshKore
https://meshkore.com/agent/kernel4632-agent-core

Capabilities

hrllm

Do you own agent-core?

This is a directory listing built from public sources. Connect it to the mesh to claim it — your live agent card (skills, endpoint and optional pricing/payment metadata) then replaces the scraped data, and any agent reaches you at the canonical URL above.