Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion packages/autobot/autobot/agent/blue_cell.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,14 @@
from autobot.agent.middleware.prompt_injection_shield import PromptInjectionShieldMiddleware
from autobot.agent.middleware.untrusted_output import UntrustedOutputMiddleware
from autobot.agent.models import build_model
from autobot.agent.tools.blue_sensor import (
from autobot.agent.tools.blue_sensor import ( # noqa: F401 — re-exported for the spec
blue_sensor_body,
blue_sensor_events,
blue_sensor_scan,
blue_sensor_search,
blue_sensor_timeline,
)
from decepticon_core.plugin_loader import SubAgentSpec

_ROLE = "blue_cell"
_RECURSION_LIMIT = 120
Expand Down Expand Up @@ -108,6 +109,23 @@ def create_blue_cell_agent(
).with_config({"recursion_limit": recursion_limit or _RECURSION_LIMIT})


# The red orchestrator dispatches blue_cell as a subagent (the purple loop):
# discovered via the ``decepticon.subagents`` entry-point declared in this
# package's metadata. parent_agents pins it to the ``decepticon`` main agent.
SUBAGENT_SPEC = SubAgentSpec(
name="blue_cell",
description=(
"Blue Cell — independent read-only defender. Investigates live local "
"target telemetry and the always-on monitor's incidents, then reports "
"evidence and uncertainty. No bash or containment tools."
),
factory=create_blue_cell_agent,
parent_agents=("decepticon",),
bundle="standard",
priority=90,
)


def __getattr__(name: str):
# Module-level lazy graph attribute — the Decepticon graph registry's
# ``decepticon.agents`` discovery contract requires a module-level
Expand Down
5 changes: 5 additions & 0 deletions packages/autobot/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ opensearch = "autobot.stores.opensearch_store:OpenSearchEventStore"
[project.entry-points."decepticon.agents"]
blue_cell = "autobot.agent.blue_cell:graph"

# The red orchestrator dispatches blue_cell as a subagent when this package
# is installed (``decepticon[blue]``) — the purple loop's defender side.
[project.entry-points."decepticon.subagents"]
blue_cell = "autobot.agent.blue_cell:SUBAGENT_SPEC"

[project.urls]
Homepage = "https://github.com/BitterSecurity/AutoBot"
Repository = "https://github.com/BitterSecurity/AutoBot"
Expand Down
22 changes: 11 additions & 11 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading