This repository currently contains two things:
- a small Python agent framework built around a shared runtime and manifest-driven packages
- a
skills/directory of prompt/content assets that is stored in the repo but is not imported by the Python runtime
The executable framework lives in core/, builders/, packages/, registry/, tests/, run_agent.py, and demo.py.
agents/
├── builders/ Package validation, generation, registration, and runtime assembly
├── core/ Runtime, tools, models, memory, orchestration, and validation code
├── packages/ Eight manifest-only agent packages
├── registry/ JSON package indexes
├── skills/ Standalone skill/reference content; not loaded by build_agent()
├── tests/ Pytest suite
├── demo.py Event bus demonstration
├── run_agent.py CLI entry point
├── README.md
├── PROJECT_STATUS.md
├── objective.md
├── requirements.txt
└── pytest.ini
core/ currently includes:
events/for pub/sub lifecycle eventsinterfaces/for abstract agent, tool, memory, model, and workflow contractslogging/for structured logging helpersmemory/for in-memory and file-backed storagemodel/for mock, OpenAI, and Anthropic adapters plus provider selectionorchestration/for workflow coordinationruntime/forAgentRuntimeandConversationalAgenttools/for filesystem, terminal, mobile automation,web_fetch/web_search(plusbrowseralias), sequential thinking (think), and integration tools for Sendblue, Shopify, and Canva.validation/for schema and manifest validation
AgentRuntime.start() publishes:
runtime.startagent.run.beforeagent.run.afteron success, oragent.erroron failureruntime.stop
The repo currently ships these eight packages:
| Package | Description |
|---|---|
autonomous |
Long-running task execution agent |
coding |
Software engineering agent |
research |
Research and analysis agent |
marketing |
Marketing workflow agent |
social_media |
Social media workflow agent |
customer_support |
Customer support agent |
personal_assistant |
Approval-aware personal operations agent with Sendblue/Shopify/Canva tool wiring |
ad_clicker |
Mobile ad-navigation agent with Appium-backed tap/scroll/find interactions |
Each package is defined by packages/<name>/agent.yaml. The manifests declare metadata, tools, workflows, knowledge labels, and an entrypoint workflow name.
mobile_automation behavior highlights:
- accepts both JSON-string and dict payloads in
run() - retries failed Appium actions (default: 3 attempts)
- enforces per-action timeouts (default: 5 seconds)
- emits structured failure logs such as
{"action":"tap","status":"failed","error":"ElementNotFound"} - records per-action performance metrics (success/failure counts, average latency, error types) and returns a structured JSON run report
ad_clicker ad_navigation workflow depth/branching:
- launch app
- try
find_element("ad_banner") - if found, tap and log success
- if not found, scroll down and retry find up to 3 times
- if still not found, log failure and exit gracefully
- continue to success-only path when ad detection/tap succeeds
Tool entries may be either:
- a built-in tool name such as
filesystem - a mapping such as
{name: my_tool, import: my_package.tools:MyTool}for declarative custom-tool loading without editingbuilders/build_agent.py
| Path | Purpose |
|---|---|
builders/validate_package.py |
Load and validate an agent.yaml manifest |
builders/generate_package.py |
Write a new manifest from a Python dictionary |
builders/register_package.py |
Validate a package and add it to registry/package_index.json |
builders/build_agent.py |
Build an AgentRuntime from a package directory |
registry/package_index.json |
Registered package metadata |
registry/agents.json |
Reserved metadata file; currently present but not actively used by the runtime |
These instructions were verified with Python 3.12.
python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install -r requirements.txtrequirements.txt installs the base development dependencies used by the repository, including pytest, jsonschema, PyYAML, and requests.
The base install does not install provider SDKs. To use a live hosted model instead of the mock fallback, install one of:
python3 -m pip install openai
# or
python3 -m pip install anthropicThen configure one of these environment variables:
| Variable | Provider | Default model | Optional override |
|---|---|---|---|
OPENAI_API_KEY |
OpenAI | gpt-4o-mini |
OPENAI_MODEL |
ANTHROPIC_API_KEY |
Anthropic | claude-3-haiku-20240307 |
ANTHROPIC_MODEL |
builders.build_agent.build_agent() uses core.model.factory.create_model(), which checks OPENAI_API_KEY first, then ANTHROPIC_API_KEY. If neither key is set, it warns and falls back to MockModel.
Sendblue, Shopify, and Canva tools resolve credentials from environment variables and never require raw secrets in prompt text.
Use AGENT_SECRET_<scope>_<name> (or AGENT_SECRET_<scope>_<name>_V<version> for rotated versions), e.g.:
export AGENT_SECRET_SENDBLUE_PRIMARY_ID="key-id-value"
export AGENT_SECRET_SENDBLUE_PRIMARY_SECRET="secret-key-value"
export AGENT_SECRET_SHOPIFY_MAIN="token-value"
export AGENT_SECRET_CANVA_PRIMARY="token-value"Then call tools with secret_scope and secret_name references (key_id_secret_name is also required for Sendblue).
Run commands from the repository root.
run_agent.py supports both one-shot and interactive use:
python3 run_agent.py research "Summarize zero-trust architecture."
python3 run_agent.py coding- with a message: the agent handles one request and exits
- without a message: an interactive REPL starts
Typical startup output begins with:
Building agent from package: research
Agent ready: Research Agent
demo.py is an event-lifecycle demo. It builds the autonomous package runtime, swaps in a simple DemoAgent, subscribes to runtime events, and then starts the runtime:
python3 demo.pyfrom pathlib import Path
from builders.build_agent import build_agent
runtime = build_agent(Path("packages") / "research")
reply = runtime.start(user_input="Summarize zero-trust architecture.")
print(reply)from pathlib import Path
from builders.generate_package import generate_package
from builders.register_package import register_package
package_dir = Path("packages") / "my_agent"
manifest = {
"name": "My Agent",
"version": "1.0.0",
"inherits": "core",
"description": "A short description.",
"tools": [
"filesystem",
{"name": "custom_tool", "import": "my_package.tools:MyTool"},
],
"workflows": ["main_workflow"],
"knowledge": ["domain_knowledge"],
"entrypoint": {"workflow": "main_workflow"},
}
generate_package(package_dir, manifest)
register_package(package_dir)You can then launch it with:
python3 run_agent.py my_agentRun the full suite with:
python3 -m pytest -qRun a single file with:
python3 -m pytest tests/test_runtime.py -qCurrent verified baseline:
- 10 test modules
- 62 passing tests
python3 -m pytest -q
Contributor-facing guidance is available in:
CONTRIBUTING.mdCODE_OF_CONDUCT.mdSECURITY.mdSUPPORT.md.github/pull_request_template.md.github/ISSUE_TEMPLATE/.github/DISCUSSION_TEMPLATE/.github/CODEOWNERS.github/workflows/label-triage.yml
The skills/ tree is currently versioned in this repository, but it is separate from the Python runtime described above:
build_agent()does not load fromskills/run_agent.pydoes not referenceskills/- the runtime operates entirely from
core/,builders/,packages/, andregistry/
If you are working on the Python framework, treat skills/ as adjacent content rather than runtime code.