惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

G
Google Developers Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
量子位
C
Check Point Blog
B
Blog RSS Feed
Y
Y Combinator Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
A
About on SuperTechFans
Microsoft Azure Blog
Microsoft Azure Blog
博客园 - 聂微东
阮一峰的网络日志
阮一峰的网络日志
人人都是产品经理
人人都是产品经理
小众软件
小众软件
Last Week in AI
Last Week in AI
博客园 - 【当耐特】
GbyAI
GbyAI
The Cloudflare Blog
博客园 - 叶小钗
S
SegmentFault 最新的问题
博客园 - Franky
Engineering at Meta
Engineering at Meta
F
Fortinet All Blogs
B
Blog
Jina AI
Jina AI

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Weapon: Give Your Agent a Real Skill Arsenal
llimage · 2026-06-28 · via DEV Community

llimage

Weapon: Give Your Agent a Real Skill Arsenal

FROST Five-Dimensional Meta-Model Series · Part 1


An Embarrassing Scenario

Imagine you have an Agent. It's smart—it can write code, analyze data, search for information.

But when you ask it: "Help me build a crawler to scrape e-commerce prices and analyze trends," it freezes.

Not because it can't, but because it can't find what it knows.

It has a bunch of skills scattered across the codebase, but no unified place telling it: "You know these things, use them as needed."

This is the common problem with current Agent frameworks: skills exist, but they're unorganized.


Weapon Registry: Agent's Skill Armory

In FROST V4.1, we introduced the Weapon Registry.

A Weapon is not a traditional "tool" or "function"—it's:

A discoverable, composable, versionable skill unit.

Think of it this way:

  • Traditional Agent skills are like LEGO bricks scattered on the floor
  • FROST Weapons are like equipment neatly arranged in an armory, each with an ID, description, and use case

Three Core Capabilities

1. Registration: Give Skills an Identity

from core.armory import Armory

# Create a weapon registry
armory = Armory()

# Register a weapon
armory.register(
    name="web_scraper",
    version="1.0.0",
    skill=WebScraperSkill(),
    metadata={
        "category": "data_collection",
        "description": "Scrape web data",
        "input_schema": {"url": "str", "selector": "str"},
        "output_schema": {"data": "list[dict]"},
    }
)

# Register another one
armory.register(
    name="trend_analyzer",
    version="1.0.0",
    skill=TrendAnalyzerSkill(),
    metadata={
        "category": "analysis",
        "description": "Analyze data trends",
        "input_schema": {"data": "list[dict]"},
        "output_schema": {"trend": "str", "confidence": "float"},
    }
)

Every weapon has:

  • Unique name: web_scraper, no conflicts with other skills
  • Version number: 1.0.0, supports upgrades and rollbacks
  • Metadata: Input/output schemas, categories, descriptions

2. Discovery: Find Skills on Demand

# Find by category
data_skills = armory.find_by_category("data_collection")
# => [web_scraper, api_fetcher, file_parser, ...]

# Find by capability (fuzzy match)
relevant = armory.find_by_capability("scrape web")
# => [web_scraper]

# List all available weapons
all_weapons = armory.list_all()
# => [web_scraper, trend_analyzer, code_writer, ...]

Agents no longer need to hardcode "what I can do"—they dynamically discover which weapons they can use.

3. Composition: Stack Skills to Create New Capabilities

# Define a composite weapon
armory.register_composite(
    name="ecommerce_price_tracker",
    components=["web_scraper", "trend_analyzer"],
    description="E-commerce price tracking and trend analysis",
    workflow="""
    1. Use web_scraper to scrape price data
    2. Pass data to trend_analyzer for analysis
    3. Return analysis report
    """
)

# Use the composite weapon
result = agent.execute("ecommerce_price_tracker", {
    "url": "https://example.com/product",
    "selector": ".price"
})

Composite weapons let Agent capabilities grow exponentially:

  • 2 base weapons → 1 composite weapon
  • 10 base weapons → 100+ possible combinations

How Is This Different from Traditional "Tool Calling"?

Dimension Traditional Tool Calling FROST Weapon Registry
Discovery Hardcoded in source Dynamic query, matched by need
Versioning None Semantic versioning (1.0.0 → 1.1.0)
Metadata Simple function signatures Full input/output schemas + categories + descriptions
Composition Manual glue code Declarative composition, auto-generated workflows
Testability Need to mock entire tool chains Each weapon tested independently, compositions also testable

Key difference: The Weapon Registry makes skills first-class citizens, not just appendages to code.


A Real-World Scenario

Suppose you want to build an automated competitor analysis Agent:

The Traditional Way

# Hardcode all steps
class CompetitorAnalyzer:
    def __init__(self):
        self.scraper = WebScraper()  # Hard dependency
        self.analyzer = TrendAnalyzer()  # Hard dependency
        self.reporter = ReportGenerator()  # Hard dependency

    def analyze(self, competitor_url):
        data = self.scraper.scrape(competitor_url)
        trend = self.analyzer.analyze(data)
        report = self.reporter.generate(trend)
        return report

Problems:

  • ❌ Can't swap the scraper (unless you change the code)
  • ❌ Can't reuse the analyzer (tied to this class)
  • ❌ Can't dynamically choose tools (e.g., auto-select scraper type based on URL)

The FROST Way

# Declarative composition
agent = Agent(armory=armory)

# Agent decides which weapons to use
result = agent.execute("competitive_analysis", {
    "competitor": "https://competitor.com",
    "metrics": ["price", "features", "reviews"]
})

# Agent's internal logic (automatic):
# 1. Query armory.find_by_capability("scrape web") → select web_scraper
# 2. Query armory.find_by_capability("analyze trends") → select trend_analyzer
# 3. Query armory.find_by_capability("generate report") → select report_generator
# 4. Compose and execute, return result

Advantages:

  • ✅ Swap any weapon anytime (found a better scraper? Just register it)
  • ✅ Weapons are reusable (trend_analyzer works in other scenarios too)
  • ✅ Agent autonomously chooses the best weapon (based on metadata matching)

Why "Weapon" Instead of "Tool"?

This is FROST's design philosophy:

Tools are passive; weapons are active.

  • Tools wait for humans to use them
  • Weapons are Agent's equipment—Agent actively chooses and actively uses them

In FROST's family governance model:

  • Ancestor defines the constitution, specifying which weapons are available
  • Parent coordinates tasks, deciding which weapon combinations to use
  • Child executes specific operations, using weapons to complete tasks

The Weapon Registry makes this process auditable, controllable, and evolvable.


Next Up: Event

Weapons solve "what Agent can do."

But how do Agents collaborate? How do they know "task completed," "error occurred," "need help"?

The answer is Event—Agent's nervous system.

Next article preview: Event: Teaching Agents to "Shout Out"


Related Links


FROST: Giving agents lineage, memory, and honor.