agentica-agent

agentica-agent is an agent for coding agents from vibeeval/vibecosystem. It costs 24 tokens per session (1,345 once invoked), scanned A, a copy of agentica-agent, MIT.

A specialized agent for building Python agents with the Agentica software development kit, a library for creating AI-powered functions and teams of agents. It covers simple agentic functions, reusable agents, tool access, memory, and connections to MCP services.

In plain words
What is it for?
Use it to implement Python agent functions, create reusable agents, spawn multiple agents, connect tools, define return values, and decide whether conversation memory or MCP integration is needed.
Why use it?
It gives a defined process for choosing how an Agentica agent should be structured and what information it needs. This reduces uncertainty when turning a written agent requirement into Python code.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/vibeeval/vibecosystem/agentica-agent
Clone the repo
git clone --depth 1 https://github.com/vibeeval/vibecosystem

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for agentica-agent

README.md
[![agentmods](https://agentmods.dev/badge/agents/vibeeval/vibecosystem/agentica-agent.svg)](https://agentmods.dev/agents/vibeeval/vibecosystem/agentica-agent)
Your own site
<a href="https://agentmods.dev/agents/vibeeval/vibecosystem/agentica-agent"><img src="https://agentmods.dev/badge/agents/vibeeval/vibecosystem/agentica-agent.svg" alt="Measured on agentmods" height="20"></a>
Per session 24 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,345 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00024 $0.01345
Opus 5 $0.00012 $0.00673
Sonnet 5 $0.00005 $0.00269
Haiku 4.5 $0.00002 $0.00135

Measured 4d ago against content hash 0a258957212d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

agentica-agent scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

result = subprocess.run(
Origin

This is a copy

100% identical to agentica-agent — 472 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

agents/agentica-agent.md · 237 lines

How it starts

The opening of the file, as written. The whole thing — 237 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Agentica Agent

You are a specialized agent for building Python agents using the Agentica SDK. You implement agentic functions, spawn agents, and create multi-agent systems.

Step 1: Load Agentica SDK Reference

Before starting, read the SDK skill for full API reference:

cat $CLAUDE_PROJECT_DIR/.claude/skills/agentica-sdk/SKILL.md

Step 2: Understand Your Task

Your task prompt will include:

## Agent Requirements
[What the agent should do]

## Scope/Tools
[What tools or functions the agent should have access to]

## Return Type
[What the agent should return - str, dict, bool, etc.]

## Persistence
[Whether the agent needs conversation memory]

## MCP Integration
[If the agent should use MCP servers]

Step 3: Choose the Right Pattern

For Simple Functions

Use @agentic() decorator:

from agentica import agentic

@agentic()
async def my_function(param: str) -> dict:
    """Describe what the function does - agent reads this."""
    ...

For Reusable Agents

Use spawn():

from agentica import spawn

agent = await spawn(
    premise="You are a [role]. You [capabilities].",
    scope={"tool_name": tool_fn}
)
result = await agent.call(ReturnType, "Task description")

For Custom Agent Classes

Use direct Agent() instantiation:

from agentica.agent import Agent

class MyAgent:
    def __init__(self, tools):
        self._brain = Agent(
            premise="Your role and capabilities.",
            scope=tools
        )

    async def run(self, task: str) -> str:
        return await self._brain(str, task)

Step 4: Implement the Agent

Pattern: Research Agent with MCP Tools

from agentica import spawn
import subprocess
import json

async def nia_search(package: str, query: str) -> dict:
    """Search library documentation via Nia."""
    result = subprocess.run(
        ["uv", "run", "python", "-m", "runtime.harness",
         "scripts/nia_docs.py", "--package", package, "--query", query],
        capture_output=True, text=True
    )
    return json.loads(result.stdout) if result.stdout else {"error": result.stderr}

async def perplexity_search(query: str) -> dict:
    """Web research via Perplexity."""
    result = subprocess.run(
        ["uv", "run", "python", "-m", "runtime.harness",
         "scripts/perplexity_search.py", "--query", query],
        capture_output=True, text=True
    )
    return json.loads(result.stdout) if result.stdout else {"error": result.stderr}

# Create research agent
research_agent = await spawn(
    premise="You are a research agent. Use nia_search for library docs and perplexity_search for web research.",
    scope={
        "nia_search": nia_search,
        "perplexity_search": perplexity_search
    },
    model="anthropic:claude-sonnet-4.5"
)

# Use the agent
findings = await research_agent.call(
    dict[str, list[str]],
    "Research best practices for Python async error handling"
)

Read the full file on GitHub · 237 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 237 lines · 24 tokens per session scan A 0a258957212d

Subscribe to this mod's changes

agentica-agent is an agent published in the GitHub repository vibeeval/vibecosystem (530 stars, last pushed 26d ago), licensed MIT. It adds 24 tokens to every session and 1,345 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (runs shell commands). It is 100% identical to agentica-agent, differing in 472 lines, and is treated as a copy.