An open-source tool that finds the AI agents on a machine, maps what they can reach, and guards their tool calls

Reddit r/ArtificialInteligence Tools

Summary

介绍开源工具 CSL-Core,可在本地扫描机器上的 AI 代理、绘制其可达权限链,并在模型之外通过 Z3 校验的策略对工具调用(资金、命令、文件写入)进行强制约束,附带路径/命令/URL 解析等常见绕过防护建议。

AI agents now get real tools: refunds, shell commands, file writes, posting to Slack. The usual safeguard is a line in the prompt ("never refund more than $500"), which holds most of the time, not every time, and leaves no record. I built CSL-Core to enforce these limits outside the model instead. It's open source and runs locally. Here's how it approaches the problem, and most of it applies whatever you use. Inventory first. You can't guard agents you don't know about. CSL-Core scans a machine for coding assistants, MCP servers, LangChain / OpenAI Agents / CrewAI tools, cron jobs and webhooks, and classifies each tool by what it can do: read, write, run commands, spend money, delete. The scan is read-only and never executes your code. The risk is in the chain. Each agent usually looks harmless on its own. The danger shows up in how they connect: an agent that reads web pages can edit the files of another agent that runs as root, or an inbound webhook reaches an agent that can move money. Nobody designs these paths; they accumulate. The tool draws them as a map and highlights the chains, so you can see which single rule would break each one. Enforce before the function runs. Money tools get a per-call ceiling and an approval threshold, commands an allowlist, file writes a folder scope. Each policy is checked with the Z3 solver for contradictions before it goes live. The call is decided before the tool function runs, and the model never sees the rules, so it can't argue past them. Guards break in the glue code. A rule like "only write inside /srv/app" is easy to state. The code that turns a real call into what the rule checks is where bypasses happen: /srv/app/../etc/passwd passing a prefix check (resolve the real path first, then compare) /srv/app-backup passing as /srv/app (compare path components, not strings) ls; rm -rf ~ passing "starts with ls" (parse the command; reject ;, |, &&, $() and backticks) https://[email protected] passing "contains api.stripe.com" (parse the URL and compare the hostname exactly) CSL-Core tests every mapping against trick families like these, but the checks above are worth adding to any guard you write yourself. Log before you block. Strict rules on day one break real work, and then the guard gets switched off. In log mode nothing is blocked: every call is recorded as "allow" or "would block", so you can tune the rules before you enforce them. Unknown should mean deny. Agents gain tools over time through plugins, new MCP servers or a teammate's PR. A tool the guard doesn't recognise is denied, not allowed, and CI fails when someone adds a tool that can spend money or run commands without a rule. Honest limit: the default rules are strict, so expect to tune them on a busy agent. If you run agents with real tools: where do you enforce limits today, and has one ever reached something you didn't expect?
Original Article

Similar Articles

This article systematically reviews AI Agent architecture and engineering practices, covering control flow, context engineering, tool design, memory, multi-agent organization, evaluation, tracing, and security. It is based on the OpenClaw implementation and emphasizes the critical role of Harness (testing and validation infrastructure) for system stability.

X AI KOLs

This article systematically reviews AI Agent architecture and engineering practices, covering control flow, context engineering, tool design, memory, multi-agent organization, evaluation, tracing, and security. It is based on the OpenClaw implementation and emphasizes the critical role of Harness (testing and validation infrastructure) for system stability.

@justloveabit: With This Open-Source Tool, I Got a Team of AIs to Work for Me. Here's the deal: I've been tinkering with various AI agents lately. Multiple Claude Code windows open, Codex running, occasionally using Cursor. The result? Total chaos—I had no idea what each agent was doing or how much it was costing. Restar…

X AI KOLs Timeline

This article introduces Paperclip, an open-source tool designed to centrally manage and orchestrate multiple AI agents. By simulating a corporate organizational structure, task assignment, and budget control, it addresses key pain points in multi-agent collaboration, such as lost context, unpredictable costs, and chaotic scheduling.

@QingQ77: Open-source self-hosted AI Security Operations Center providing alert fusion, purple team exercises, AI-assisted triage, and MITRE ATT&CK investigation analysis. https://github.com/beenuar/AiSOC AiSOC packages security event collection, correlation analysis, AI investigation, and SOC console into a self-hosted stack...

X AI KOLs Timeline

AiSOC is an open-source self-hosted AI Security Operations Center tool built on LangGraph. It integrates alert fusion, AI-assisted triage, and MITRE ATT&CK investigation analysis, supporting full-chain reasoning log playback and flexible deployment across multiple environments.