Repository navigation
Agent API_p17
Previous: API_p16.md
-
canonical_command_count(function)scripts/sync_doc_stats.py:87def canonical_command_count(root)-- Read the canonical command count from the committed command index. -
project_version(function)scripts/sync_doc_stats.py:100def project_version(root)-- Read the package version from pyproject.toml,0.0.0when absent. -
measure_stats(function)scripts/sync_doc_stats.py:109def measure_stats(root)-- Measure every published count from the live tree. -
render(function)scripts/sync_doc_stats.py:136def render(template, stats)-- Format one replacement template with the measured stats. -
sync(function)scripts/sync_doc_stats.py:141def sync(check, stats, root)-- Apply or verify every replacement; return the list of stale spots. -
main(function)scripts/sync_doc_stats.py:165def main()-- CLI entry point.
-
fail(function)scripts/top_tier_check.py:23def fail(message) -
ok(function)scripts/top_tier_check.py:28def ok(message) -
count_cli_commands(function)scripts/top_tier_check.py:32def count_cli_commands() -
count_mcp_tools(function)scripts/top_tier_check.py:43def count_mcp_tools() -
count_addons(function)scripts/top_tier_check.py:48def count_addons() -
check_versions(function)scripts/top_tier_check.py:52def check_versions() -
check_doc_counts(function)scripts/top_tier_check.py:70def check_doc_counts(commands, mcp, addons) -
check_tracked_secrets(function)scripts/top_tier_check.py:81def check_tracked_secrets() -
check_release_inputs(function)scripts/top_tier_check.py:108def check_release_inputs() -
main(function)scripts/top_tier_check.py:116def main()
-
build_technique_index(function)scripts/update_apt_atomic_ids.py:22def build_technique_index(atomics_path)-- Map technique_id -> list of {atomic_id, name, description}. -
update_playbooks(function)scripts/update_apt_atomic_ids.py:46def update_playbooks(index, playbook_dir)
-
pass(function)scripts/validate_agent_contract.sh:23 -
fail(function)scripts/validate_agent_contract.sh:27 -
check(function)scripts/validate_agent_contract.sh:32 -
check_no_hardcoded_passwords(function)scripts/validate_agent_contract.sh:59-- -- No hardcoded credentials outside payload.json --- Pentest help-text, doc placeholders (<...>), template vars ({{... -
check_no_hardcoded_wordlists(function)scripts/validate_agent_contract.sh:74-- -- No hardcoded wordlist paths outside payload.json --- Help-text examples, docstrings and filesystem hints are...
Depends on: core/logging.py, modules/logging_config.py
Imported by: skills/lazyown_mcp.py, tests/test_aci_planner.py
-
AttackPhase.to_dict(method)skills/aci_planner.py:171def to_dict(self)-- Serialize to dict for JSON persistence. -
AttackPhase.from_dict(method)skills/aci_planner.py:176def from_dict(cls, d)-- Deserialize from dict. -
ACIPlan.active_phase(method)skills/aci_planner.py:199def active_phase(self)-- Return the first phase that is active or pending. -
ACIPlan.completion_pct(method)skills/aci_planner.py:207def completion_pct(self)-- Percentage of phases that are done or skipped. -
ACIPlan.to_dict(method)skills/aci_planner.py:214def to_dict(self)-- Serialize to dict for JSON persistence. -
ACIPlan.from_dict(method)skills/aci_planner.py:221def from_dict(cls, d)-- Deserialize from dict. -
ACIPlanner.__init__(method)skills/aci_planner.py:461def __init__(self, api_key, objectives_file, plan_file) -
ACIPlanner.plan(method)skills/aci_planner.py:471def plan(self, goal, phase_filter)-- Decompose goal into an ACIPlan, inject objectives, persist. -
ACIEngine.__init__(method)skills/aci_planner.py:604def __init__(self, api_key, plan_file, objectives_file, history_file, replan_threshold) -
ACIEngine.status(method)skills/aci_planner.py:618def status(self)-- Return a structured status dict for the active plan. -
ACIEngine.should_replan(method)skills/aci_planner.py:658def should_replan(self, plan)-- Return True when the plan is stalled and a replan is warranted. -
ACIEngine.replan(method)skills/aci_planner.py:671def replan(self, reason)-- Generate a new set of objectives for blocked/remaining phases. -
ACIEngine.complete(method)skills/aci_planner.py:741def complete(self)-- Mark the active plan as completed and archive it. -
ACIReflector.__init__(method)skills/aci_planner.py:797def __init__(self, lessons_file) -
ACIReflector.reflect(method)skills/aci_planner.py:800def reflect(self, plan)-- Analyse plan and generate lessons. -
mcp_aci_plan(function)skills/aci_planner.py:865def mcp_aci_plan(goal, target, scope, domain, os_hint, phase_filter)-- Plan an engagement goal and return a JSON summary. -
mcp_aci_status(function)skills/aci_planner.py:923def mcp_aci_status()-- Return live status of the active ACI plan as JSON. -
mcp_aci_replan(function)skills/aci_planner.py:940def mcp_aci_replan(reason)-- Force adaptive replanning of the active ACI plan. -
main(function)skills/aci_planner.py:1003def main(argv)-- Entry point for CLI usage.
Depends on: core/logging.py, modules/asset_graph.py, modules/db.py, modules/detection_oracle.py, modules/enrich.py, modules/event_consumers.py, modules/evidence.py, modules/finding_lifecycle.py, modules/goals.py, modules/intercept.py, modules/killchain.py, modules/llm_pool.py, modules/logging_config.py, modules/metrics.py, modules/notify.py, modules/obs_parser.py, modules/pipeline_engine.py, modules/planner.py, modules/reactive_engine.py, modules/rl_trainer.py, modules/toolset.py, modules/traffic_recorder.py, modules/world_model.py, skills/daemon_control.py, skills/lazyown_llm.py, skills/lazyown_mcp.py, skills/lazyown_objective.py, skills/lazyown_policy.py, skills/swan_agent.py
Imported by: cli/commands/database.py, cli/commands/session_ops.py, modules/pipeline_engine.py, skills/autonomous_replay.py, skills/lazyown_mcp.py, skills/tests/test_autonomous_daemon.py, skills/unified_orchestrator.py, tests/test_autonomous_replay.py, tests/test_daemon_loop.py, tests/test_engage_gates.py, tests/test_engage_orchestrator.py, tests/test_metrics_aware_selector.py, tests/test_moe_rl_swan.py, tests/test_pipeline_engine.py, tests/test_scope_bound_auto_gate.py
-
compute_decision_seed(function)skills/autonomous_daemon.py:353def compute_decision_seed(objective_id, step_n, source)-- Return a deterministic identifier for a daemon decision. -
ICommandRunner.run(method)skills/autonomous_daemon.py:385def run(self, command, timeout)-- Execute command within timeout seconds. -
ICommandRunner.name(method)skills/autonomous_daemon.py:390def name(self)-- Human-readable identifier for this runner. -
MCPCommandRunner.name(method)skills/autonomous_daemon.py:441def name(self) -
MCPCommandRunner.run(method)skills/autonomous_daemon.py:444def run(self, command, timeout)-- Try to import and call the MCP runner. -
PTYCommandRunner.name(method)skills/autonomous_daemon.py:461def name(self) -
PTYCommandRunner.run(method)skills/autonomous_daemon.py:464def run(self, command, timeout)-- Execute command via PTY. -
CommandRunnerChain.__init__(method)skills/autonomous_daemon.py:551def __init__(self, runners) -
CommandRunnerChain.name(method)skills/autonomous_daemon.py:557def name(self) -
CommandRunnerChain.run(method)skills/autonomous_daemon.py:560def run(self, command, timeout)-- Try each runner in sequence. -
ICommandSelector.select(method)skills/autonomous_daemon.py:648def select(self, target, phase, context)-- Return a CommandDecision or None if this selector has no suggestion. -
ReactiveSelector.__init__(method)skills/autonomous_daemon.py:663def __init__(self, reactive_engine) -
ReactiveSelector.register_output(method)skills/autonomous_daemon.py:667def register_output(self, output, command, platform)-- Feed reactive engine with last command output to generate new decisions. -
ReactiveSelector.select(method)skills/autonomous_daemon.py:694def select(self, target, phase, context)-- Pop and return the pending reactive decision if present. -
ParquetSelector.__init__(method)skills/autonomous_daemon.py:709def __init__(self, pdb, fail_counts) -
ParquetSelector.select(method)skills/autonomous_daemon.py:713def select(self, target, phase, context)-- Return the most-frequent successful command for this phase. -
BridgeSelector.__init__(method)skills/autonomous_daemon.py:755def __init__(self, dispatcher, fail_counts) -
BridgeSelector.select(method)skills/autonomous_daemon.py:759def select(self, target, phase, context)-- Return a bridge catalog suggestion for this phase. -
LLMSelector.select(method)skills/autonomous_daemon.py:825def select(self, target, phase, context)-- Return an LLM-suggested command with catalog context, or None if disabled. -
SWANSelector.select(method)skills/autonomous_daemon.py:947def select(self, target, phase, context)-- Ask the best MoE expert for a command recommendation. -
FallbackSelector.select(method)skills/autonomous_daemon.py:993def select(self, target, phase, context)-- Return the static fallback command for this phase. -
MetricsAwareSelector.__init__(method)skills/autonomous_daemon.py:1030def __init__(self, wrapped, metrics_source, min_success_rate, min_attempts, window_seconds, cache_ttl_s, clock)-- Initialise the decorator. -
MetricsAwareSelector.wrapped(method)skills/autonomous_daemon.py:1076def wrapped(self)-- Return the underlying selector for introspection in tests. -
MetricsAwareSelector.select(method)skills/autonomous_daemon.py:1162def select(self, target, phase, context)-- Honour the :class:ICommandSelectorcontract. -
CredentialSpraySelector.__init__(method)skills/autonomous_daemon.py:1263def __init__(self, fail_counts) -
CredentialSpraySelector.select(method)skills/autonomous_daemon.py:1267def select(self, target, phase, context)-- Return a spray command when credentials + matching service are available. -
CascadeStrategy.__init__(method)skills/autonomous_daemon.py:1303def __init__(self, selectors) -
CascadeStrategy.next_command(method)skills/autonomous_daemon.py:1306def next_command(self, target, phase, context)-- Try each selector in order. -
StrategyEngine.__init__(method)skills/autonomous_daemon.py:1341def __init__(self, runner, selectors) -
StrategyEngine.register_output(method)skills/autonomous_daemon.py:1368def register_output(self, output, command, platform, success)-- Feed the reactive selector with the last command output. -
StrategyEngine.next_command(method)skills/autonomous_daemon.py:1382def next_command(self, target, phase, services, os_hint)-- Select the next command for target/phase using the cascade. -
IObjectiveHandler.handle(method)skills/autonomous_daemon.py:1416def handle(self, objective_id, objective_text, target, context)-- Execute objective and return a list of step results. -
ExecutionEngine.__init__(method)skills/autonomous_daemon.py:1438def __init__(self, strategy, max_steps, world_model, obs_parser, facts, loop) -
ExecutionEngine.handle(method)skills/autonomous_daemon.py:1454def handle(self, objective_id, objective_text, target, context)-- Synchronous entry point. -
ExecutionEngine.run_async(method)skills/autonomous_daemon.py:1464def run_async(self, objective_id, objective_text, target)-- Asyncio entry point used by objective_loop. -
DroneCoordinator.__init__(method)skills/autonomous_daemon.py:2773def __init__(self) -
DroneCoordinator.process_findings(method)skills/autonomous_daemon.py:2778def process_findings(self, findings, target, objective_id, payload_key)-- Launch drones for relevant findings. -
EnginePhaseResult.did_switch(method)skills/autonomous_daemon.py:3079def did_switch(self)-- True when the orchestrator used a fallback tool. -
IToolFallbackResolver.next_tool(method)skills/autonomous_daemon.py:3088def next_tool(self, failed_command, phase, attempt)-- Return the next candidate command or None when exhausted. -
StaticFallbackResolver.next_tool(method)skills/autonomous_daemon.py:3105def next_tool(self, failed_command, phase, attempt) -
BridgeFallbackResolver.__init__(method)skills/autonomous_daemon.py:3127def __init__(self, dispatcher) -
BridgeFallbackResolver.next_tool(method)skills/autonomous_daemon.py:3152def next_tool(self, failed_command, phase, attempt) -
_ShellDetector.__init__(method)skills/autonomous_daemon.py:3179def __init__(self, narrator) -
_ShellDetector.poll(method)skills/autonomous_daemon.py:3184def poll(self, target)-- Return the newly-detected client_ids since the previous poll. -
_ShellDetector.detect_in_output(method)skills/autonomous_daemon.py:3225def detect_in_output(self, output, target)-- Return True when a shell/root-shell signal appears in command output. -
EngageOrchestrator.__init__(method)skills/autonomous_daemon.py:3271def __init__(self, target, runner, narrator, approval_gate, fallback_resolver, shell_detector, plan... -
EngageOrchestrator.engagement_id(method)skills/autonomous_daemon.py:3316def engagement_id(self)-- Stable id for this engagement (correlates events in logs). -
EngageOrchestrator.run(method)skills/autonomous_daemon.py:3320def run(self)-- Drive the full plan against the configured target. -
mcp_engage_target(function)skills/autonomous_daemon.py:3964def mcp_engage_target(target, max_switches_per_step, detach, auto)-- Public MCP / CLI entry point for the engage verb. -
mcp_engage_status(function)skills/autonomous_daemon.py:4054def mcp_engage_status(last_n)-- Return the last N lines of sessions/engagement.log plus pending approvals. -
mcp_engage_approve(function)skills/autonomous_daemon.py:4080def mcp_engage_approve(approval_id, decision, operator)-- Resolve a pending approval. decision must be 'approved' or 'denied'. -
mcp_engage_list_pending(function)skills/autonomous_daemon.py:4105def mcp_engage_list_pending()-- List every pending approval awaiting an operator decision. -
cmd_engage(function)skills/autonomous_daemon.py:4123def cmd_engage(target, max_switches_per_step, detach)-- CLI helper bound to theengage <ip>daemon subcommand. -
objective_loop(function)skills/autonomous_daemon.py:4162def objective_loop(max_steps, loop)-- Root autonomous loop: takes pending objectives from objectives.jsonl and executes them without waiting for Claude... -
world_model_watcher(function)skills/autonomous_daemon.py:4305def world_model_watcher(loop)-- Watch world_model.json. -
heartbeat_loop(function)skills/autonomous_daemon.py:4490def heartbeat_loop()-- Emit heartbeat and write status every HEARTBEAT_S seconds. -
cmd_run(function)skills/autonomous_daemon.py:4617def cmd_run(max_steps)-- Run daemon in foreground (debug mode). -
cmd_start(function)skills/autonomous_daemon.py:4626def cmd_start(max_steps)-- Fork, detach, and run daemon in background. -
cmd_stop(function)skills/autonomous_daemon.py:4656def cmd_stop()-- Send SIGTERM to the running daemon. -
cmd_status(function)skills/autonomous_daemon.py:4673def cmd_status()-- Print current daemon status to stdout. -
cmd_inject(function)skills/autonomous_daemon.py:4689def cmd_inject(text, priority)-- Inject an objective from the CLI, split into verifiable sub-goals. -
mcp_autonomous_start(function)skills/autonomous_daemon.py:4723def mcp_autonomous_start(max_steps, backend)-- Start the autonomous daemon in a background thread (for MCP calls). -
mcp_autonomous_stop(function)skills/autonomous_daemon.py:4765def mcp_autonomous_stop()-- Stop the autonomous daemon. -
mcp_autonomous_status(function)skills/autonomous_daemon.py:4781def mcp_autonomous_status()-- Current daemon state: objectives, steps, drones, phase. -
mcp_autonomous_inject(function)skills/autonomous_daemon.py:4794def mcp_autonomous_inject(text, priority, target)-- Inject an objective into the daemon queue and into sessions/tasks.json. -
mcp_autonomous_events(function)skills/autonomous_daemon.py:4838def mcp_autonomous_events(last_n)-- Read the last N events from autonomous_events.jsonl.
Depends on: core/logging.py, skills/autonomous_daemon.py
Imported by: skills/lazyown_mcp.py, tests/test_autonomous_replay.py
-
ReplayReport.to_dict(method)skills/autonomous_replay.py:114def to_dict(self)-- Return the report as a JSON-serialisable dictionary. -
EventLogReader.__init__(method)skills/autonomous_replay.py:136def __init__(self, path)-- Initialise the reader. -
EventLogReader.path(method)skills/autonomous_replay.py:147def path(self)-- Return the source path. -
EventLogReader.read(method)skills/autonomous_replay.py:152def read(self)-- Return every event in the log, oldest first. -
EventLogReader.slice(method)skills/autonomous_replay.py:177def slice(self, events, from_event_id, to_event_id)-- Return the inclusive subrange of events byid. -
ReplayDispatcher.__init__(method)skills/autonomous_replay.py:221def __init__(self, reader, seed_fn)-- Initialise the dispatcher. -
ReplayDispatcher.trace(method)skills/autonomous_replay.py:325def trace(self, from_event_id, to_event_id)-- Replay the recorded decision sequence without executing it. -
ReplayDispatcher.execute(method)skills/autonomous_replay.py:357def execute(self, from_event_id, to_event_id, runner, timeout)-- Replay the recorded sequence and re-run each command. -
replay(function)skills/autonomous_replay.py:473def replay(from_event_id, to_event_id, mode, events_path, runner, timeout)-- Convenience entry point used by the MCP tool layer.
Depends on: skills/claude_md_orchestrator/config.py, skills/claude_md_orchestrator/models.py, skills/claude_md_orchestrator/tdd_agent.py, skills/claude_md_orchestrator/validators.py
-
run(function)skills/claude_md_orchestrator/bdd_agent.py:151def run(contract, spec, suite, config)-- Run the implementation agent for one contract.
Depends on: skills/claude_md_orchestrator/config.py, skills/claude_md_orchestrator/models.py, skills/claude_md_orchestrator/validators.py
-
run(function)skills/claude_md_orchestrator/boy_scout.py:90def run(state, config)-- Run the boy scout pass for one contract. -
write_report(function)skills/claude_md_orchestrator/boy_scout.py:110def write_report(report, config)-- Persist the boy scout proposal to disk.
Depends on: skills/claude_md_orchestrator/config.py, skills/claude_md_orchestrator/models.py
-
run(function)skills/claude_md_orchestrator/cicd_agent.py:177def run(contract, spec, report, config)-- Run the CI and CD agent for one contract.
Imported by: skills/claude_md_orchestrator/__init__.py, skills/claude_md_orchestrator/bdd_agent.py, skills/claude_md_orchestrator/boy_scout.py, skills/claude_md_orchestrator/cicd_agent.py, skills/claude_md_orchestrator/documentation_agent.py, skills/claude_md_orchestrator/orchestrator.py, skills/claude_md_orchestrator/parser.py, skills/claude_md_orchestrator/reviewer_agent.py, skills/claude_md_orchestrator/sdd_agent.py, skills/claude_md_orchestrator/tdd_agent.py
-
Config.ensure(method)skills/claude_md_orchestrator/config.py:112def ensure(self)-- Create the run subdirectories if they do not exist. -
Config.state_path(method)skills/claude_md_orchestrator/config.py:122def state_path(self)-- Return the absolute path of the cycle state file. -
Config.specs_dir(method)skills/claude_md_orchestrator/config.py:126def specs_dir(self)-- Return the absolute path of the spec directory. -
Config.tests_dir(method)skills/claude_md_orchestrator/config.py:130def tests_dir(self)-- Return the absolute path of the test directory. -
Config.src_dir(method)skills/claude_md_orchestrator/config.py:134def src_dir(self)-- Return the absolute path of the implementation directory. -
Config.review_dir(method)skills/claude_md_orchestrator/config.py:138def review_dir(self)-- Return the absolute path of the review directory. -
Config.docs_dir(method)skills/claude_md_orchestrator/config.py:142def docs_dir(self)-- Return the absolute path of the documentation directory. -
Config.logs_dir(method)skills/claude_md_orchestrator/config.py:146def logs_dir(self)-- Return the absolute path of the log directory. -
Config.log_path(method)skills/claude_md_orchestrator/config.py:150def log_path(self)-- Return the absolute path of the JSONL log for the active run. -
load_config(function)skills/claude_md_orchestrator/config.py:155def load_config()-- Build a Config from environment variables and return it. -
resolve_optional(function)skills/claude_md_orchestrator/config.py:164def resolve_optional(config, key)-- Return the environment value for a key or None when missing.
Depends on: skills/claude_md_orchestrator/config.py, skills/claude_md_orchestrator/models.py
-
run(function)skills/claude_md_orchestrator/documentation_agent.py:123def run(contract, spec, report, config)-- Run the documentation agent for one contract.
Depends on: cli/commands/enum.py
Imported by: skills/claude_md_orchestrator/__init__.py, skills/claude_md_orchestrator/bdd_agent.py, skills/claude_md_orchestrator/boy_scout.py, skills/claude_md_orchestrator/cicd_agent.py, skills/claude_md_orchestrator/documentation_agent.py, skills/claude_md_orchestrator/orchestrator.py, skills/claude_md_orchestrator/parser.py, skills/claude_md_orchestrator/reviewer_agent.py, skills/claude_md_orchestrator/sdd_agent.py, skills/claude_md_orchestrator/tdd_agent.py, skills/claude_md_orchestrator/validators.py
-
Contract.to_dict(method)skills/claude_md_orchestrator/models.py:91def to_dict(self)-- Return a JSON friendly view of the contract. -
Contract.from_dict(method)skills/claude_md_orchestrator/models.py:96def from_dict(cls, data)-- Build a Contract from a JSON friendly dictionary. -
SadPath.to_dict(method)skills/claude_md_orchestrator/models.py:120def to_dict(self)-- Return a JSON friendly view of the sad path. -
SadPath.from_dict(method)skills/claude_md_orchestrator/models.py:125def from_dict(cls, data)-- Build a SadPath from a JSON friendly dictionary. -
Spec.to_dict(method)skills/claude_md_orchestrator/models.py:166def to_dict(self)-- Return a JSON friendly view of the spec. -
Spec.from_dict(method)skills/claude_md_orchestrator/models.py:173def from_dict(cls, data)-- Build a Spec from a JSON friendly dictionary. -
Spec.validate(method)skills/claude_md_orchestrator/models.py:189def validate(self, min_sad_paths)-- Return the list of DoD violations the spec carries. -
TestSuite.to_dict(method)skills/claude_md_orchestrator/models.py:236def to_dict(self)-- Return a JSON friendly view of the test suite. -
TestSuite.from_dict(method)skills/claude_md_orchestrator/models.py:243def from_dict(cls, data)-- Build a TestSuite from a JSON friendly dictionary. -
Finding.to_dict(method)skills/claude_md_orchestrator/models.py:270def to_dict(self)-- Return a JSON friendly view of the finding. -
Finding.from_dict(method)skills/claude_md_orchestrator/models.py:280def from_dict(cls, data)-- Build a Finding from a JSON friendly dictionary. -
ReviewReport.blockers(method)skills/claude_md_orchestrator/models.py:315def blockers(self)-- Return the list of blocker findings. -
ReviewReport.to_dict(method)skills/claude_md_orchestrator/models.py:319def to_dict(self)-- Return a JSON friendly view of the report. -
ReviewReport.from_dict(method)skills/claude_md_orchestrator/models.py:333def from_dict(cls, data)-- Build a ReviewReport from a JSON friendly dictionary. -
CicleState.to_dict(method)skills/claude_md_orchestrator/models.py:383def to_dict(self)-- Return a JSON friendly view of the state. -
CicleState.from_dict(method)skills/claude_md_orchestrator/models.py:402def from_dict(cls, data)-- Build a CicleState from a JSON friendly dictionary. -
CicleStateFile.to_dict(method)skills/claude_md_orchestrator/models.py:440def to_dict(self)-- Return a JSON friendly view of the state file. -
CicleStateFile.from_dict(method)skills/claude_md_orchestrator/models.py:450def from_dict(cls, data)-- Build a CicleStateFile from a JSON friendly dictionary. -
CicleStateFile.save(method)skills/claude_md_orchestrator/models.py:459def save(self, path)-- Persist the state to disk as pretty JSON. -
CicleStateFile.load(method)skills/claude_md_orchestrator/models.py:467def load(cls, path)-- Read the state from disk. -
write_jsonl(function)skills/claude_md_orchestrator/models.py:480def write_jsonl(path, event)-- Append a single JSONL event to the log file.
Depends on: skills/claude_md_orchestrator/config.py, skills/claude_md_orchestrator/models.py, skills/claude_md_orchestrator/parser.py
Imported by: skills/claude_md_orchestrator/__init__.py
-
run(function)skills/claude_md_orchestrator/orchestrator.py:275def run(config, options)-- Run the orchestrator for the current run directory. -
summary_to_dict(function)skills/claude_md_orchestrator/orchestrator.py:306def summary_to_dict(summary)-- Return a JSON friendly view of the summary. -
main(function)skills/claude_md_orchestrator/orchestrator.py:393def main(argv)-- Run the orchestrator CLI and return the process exit code.
Depends on: skills/claude_md_orchestrator/config.py, skills/claude_md_orchestrator/models.py
Imported by: pwntomate.py, skills/claude_md_orchestrator/orchestrator.py, static/js/xterm.js, utils.py
-
flush_body(function)skills/claude_md_orchestrator/parser.py:97def flush_body() -
parse_claude_md(function)skills/claude_md_orchestrator/parser.py:167def parse_claude_md(path)-- Parse a CLAUDE.md file and return the list of contracts. -
load_contracts(function)skills/claude_md_orchestrator/parser.py:225def load_contracts(config, seeds)-- Return the contracts the orchestrator should process.
Depends on: skills/claude_md_orchestrator/config.py, skills/claude_md_orchestrator/models.py, skills/claude_md_orchestrator/validators.py
-
run(function)skills/claude_md_orchestrator/reviewer_agent.py:171def run(state, config)-- Run the reviewer for one contract. -
write_report(function)skills/claude_md_orchestrator/reviewer_agent.py:225def write_report(report, config)-- Persist the report as JSON inside the run review directory.
Depends on: modules/llm_factory.py, skills/claude_md_orchestrator/config.py, skills/claude_md_orchestrator/models.py, skills/claude_md_orchestrator/validators.py
-
run(function)skills/claude_md_orchestrator/sdd_agent.py:204def run(contract, config)-- Run the spec agent for one contract.
Depends on: skills/claude_md_orchestrator/config.py, skills/claude_md_orchestrator/models.py, skills/claude_md_orchestrator/validators.py
Imported by: skills/claude_md_orchestrator/bdd_agent.py
-
run(function)skills/claude_md_orchestrator/tdd_agent.py:175def run(contract, spec, config)-- Run the test agent for one contract. -
read_test_source(function)skills/claude_md_orchestrator/tdd_agent.py:228def read_test_source(test_path)-- Return the test source for inspection.
Depends on: skills/claude_md_orchestrator/models.py
Imported by: skills/claude_md_orchestrator/bdd_agent.py, skills/claude_md_orchestrator/boy_scout.py, skills/claude_md_orchestrator/reviewer_agent.py, skills/claude_md_orchestrator/sdd_agent.py, skills/claude_md_orchestrator/tdd_agent.py
-
CheckResult.passed(method)skills/claude_md_orchestrator/validators.py:76def passed(self)-- Return True when the result has no findings. -
CheckResult.blocks(method)skills/claude_md_orchestrator/validators.py:80def blocks(self)-- Return the blocker findings only. -
find_block_comments(function)skills/claude_md_orchestrator/validators.py:85def find_block_comments(source)-- Return the start and end line of every block comment in source. -
find_inline_comments(function)skills/claude_md_orchestrator/validators.py:107def find_inline_comments(source)-- Return the line numbers of every inline comment in source. -
check_no_comments(function)skills/claude_md_orchestrator/validators.py:124def check_no_comments(source, path)-- Return a finding for every comment in the source code. -
check_no_emoji(function)skills/claude_md_orchestrator/validators.py:155def check_no_emoji(content, path)-- Return a finding for every emoji the content carries. -
check_no_forbidden_markers(function)skills/claude_md_orchestrator/validators.py:177def check_no_forbidden_markers(content, path)-- Return a finding for every TODO, FIXME, XXX, or HACK marker. -
check_english_only(function)skills/claude_md_orchestrator/validators.py:194def check_english_only(source, path)-- Return a finding for every Spanish hint the source carries. -
check_docstrings(function)skills/claude_md_orchestrator/validators.py:218def check_docstrings(source, path)-- Return a finding for every public function or class without a docstring. -
check_no_hardcoded_paths_or_ips(function)skills/claude_md_orchestrator/validators.py:259def check_no_hardcoded_paths_or_ips(source, path)-- Return a finding for every absolute path or IP literal. -
check_magic_numbers(function)skills/claude_md_orchestrator/validators.py:293def check_magic_numbers(source, path, allow)-- Return a finding for every numeric literal that is not in the allow list. -
check_source(function)skills/claude_md_orchestrator/validators.py:328def check_source(source, path, allow_numbers)-- Run every source level DoD check and return the findings. -
check_markdown(function)skills/claude_md_orchestrator/validators.py:341def check_markdown(content, path)-- Run every markdown level DoD check and return the findings. -
check_spec(function)skills/claude_md_orchestrator/validators.py:350def check_spec(spec, min_sad_paths)-- Run the spec level DoD check and return the findings.
Imported by: cli/commands/daemon_ctl.py, skills/autonomous_daemon.py, skills/lazyown_mcp.py, tests/test_daemon_control.py
-
PendingAction.is_expired(method)skills/daemon_control.py:79def is_expired(self, now)-- ReturnTruewhen a still-pending action has exceeded its TTL. -
ControlState.to_dict(method)skills/daemon_control.py:110def to_dict(self)-- Serialise the state to a plain JSON-ready dict. -
ControlState.from_dict(method)skills/daemon_control.py:121def from_dict(cls, data)-- Build a state from JSON data, sanitising malformed input. -
DaemonControl.__init__(method)skills/daemon_control.py:171def __init__(self, sessions_dir)-- Pin the control file to<sessions_dir>/daemon_control.json. -
DaemonControl.path(method)skills/daemon_control.py:184def path(self)-- Absolute path of the control file on disk. -
DaemonControl.load(method)skills/daemon_control.py:188def load(self)-- Return the current state or defaults when the file is missing. -
DaemonControl.save(method)skills/daemon_control.py:201def save(self, state)-- Persiststateatomically. -
DaemonControl.set_mode(method)skills/daemon_control.py:231def set_mode(self, mode)-- Switch between :data:MODE_AUTO, :data:MODE_APPROVAL, :data:MODE_PAUSED. -
DaemonControl.pause(method)skills/daemon_control.py:240def pause(self)-- Convenience wrapper forset_mode(MODE_PAUSED). -
DaemonControl.resume(method)skills/daemon_control.py:244def resume(self)-- Convenience wrapper forset_mode(MODE_AUTO). -
DaemonControl.require_approval(method)skills/daemon_control.py:248def require_approval(self)-- Convenience wrapper forset_mode(MODE_APPROVAL). -
DaemonControl.add_veto(method)skills/daemon_control.py:252def add_veto(self, command_token)-- Append a first-token name to the veto list. -
DaemonControl.remove_veto(method)skills/daemon_control.py:267def remove_veto(self, command_token)-- Remove a previously vetoed command from the list. -
DaemonControl.clear_vetoes(method)skills/daemon_control.py:275def clear_vetoes(self)-- Remove every entry from the veto list. -
DaemonControl.set_focus(method)skills/daemon_control.py:282def set_focus(self, targets)-- Replace the focus-target list. -
DaemonControl.propose(method)skills/daemon_control.py:290def propose(self, command)-- Daemon-side: register a pending action awaiting approval. -
DaemonControl.decide(method)skills/daemon_control.py:317def decide(self, action_id, decision)-- Operator-side: approve or veto the pending action. -
DaemonControl.consume(method)skills/daemon_control.py:343def consume(self, action_id)-- Daemon-side: read the final decision and clear the slot. -
DaemonControl.is_paused(method)skills/daemon_control.py:375def is_paused(self)-- ReturnTruewhen the daemon must stop before executing. -
DaemonControl.is_vetoed(method)skills/daemon_control.py:379def is_vetoed(self, command)-- ReturnTruewhen the command's first token is in the veto list. -
DaemonControl.target_in_focus(method)skills/daemon_control.py:386def target_in_focus(self, target)-- ReturnTruewhen no focus is configured ortargetis in focus. -
wait_for_decision(function)skills/daemon_control.py:394def wait_for_decision(control, action)-- Block until the operator decides or the TTL expires. -
wait_until_unpaused(function)skills/daemon_control.py:445def wait_until_unpaused(control)-- Block while the daemon is paused, returning when it resumes.
Imported by: lazyc2.py
-
is_daemon_alive(function)skills/daemon_health.py:36def is_daemon_alive(timeout)-- Check whether the autonomous daemon wrote a heartbeat recently. -
daemon_status(function)skills/daemon_health.py:58def daemon_status(timeout)-- Return the full daemon health snapshot. -
DaemonHealth.__init__(method)skills/daemon_health.py:102def __init__(self, interval, health_file) -
DaemonHealth.error_count(method)skills/daemon_health.py:114def error_count(self) -
DaemonHealth.error_count(method)skills/daemon_health.py:119def error_count(self, value) -
DaemonHealth.phase(method)skills/daemon_health.py:124def phase(self) -
DaemonHealth.phase(method)skills/daemon_health.py:129def phase(self, value) -
DaemonHealth.start(method)skills/daemon_health.py:155def start(self)-- Launch the heartbeat thread. -
DaemonHealth.stop(method)skills/daemon_health.py:164def stop(self)-- Stop the heartbeat thread. -
DaemonHealth.record_error(method)skills/daemon_health.py:175def record_error(self)-- Increment the error counter. -
DaemonHealth.set_phase(method)skills/daemon_health.py:180def set_phase(self, phase)-- Update the current daemon phase. -
DaemonHealth.increment_cycles(method)skills/daemon_health.py:185def increment_cycles(self)-- Increment the completed cycles counter.
Depends on: modules/event_engine.py, modules/session_state.py, modules/timeline_narrator.py
-
write_pid(function)skills/heartbeat.py:53def write_pid() -
clear_pid(function)skills/heartbeat.py:57def clear_pid() -
is_running(function)skills/heartbeat.py:62def is_running()-- Return (is_running, pid). -
run_loop(function)skills/heartbeat.py:74def run_loop(interval, once) -
main(function)skills/heartbeat.py:127def main()
Depends on: skills/hermes-lazyown/constants.py
Imported by: skills/hermes-lazyown/mcp_server.py
-
RuleSetBuilder.__init__(method)skills/hermes-lazyown/claudemd_rules.py:24def __init__(self) -
RuleSetBuilder.with_phase(method)skills/hermes-lazyown/claudemd_rules.py:31def with_phase(self, phase)-- Set the current engagement phase. -
RuleSetBuilder.with_target(method)skills/hermes-lazyown/claudemd_rules.py:36def with_target(self, rhost)-- Set the active target IP. -
RuleSetBuilder.with_services(method)skills/hermes-lazyown/claudemd_rules.py:41def with_services(self, services)-- Set discovered services (e.g., ['http:80', 'smb:445']). -
RuleSetBuilder.with_creds(method)skills/hermes-lazyown/claudemd_rules.py:46def with_creds(self, found)-- Set whether credentials have been discovered. -
RuleSetBuilder.with_hermes(method)skills/hermes-lazyown/claudemd_rules.py:51def with_hermes(self, is_hermes)-- Set whether running inside a Hermes session. -
RuleSetBuilder.build(method)skills/hermes-lazyown/claudemd_rules.py:56def build(self)-- Build and return the complete rule set markdown. -
generate_rules(function)skills/hermes-lazyown/claudemd_rules.py:185def generate_rules(phase, rhost, services, creds_found, is_hermes)-- Convenience function: build a rule set from parameters.
Depends on: skills/hermes-lazyown/constants.py
Imported by: skills/hermes-lazyown/mcp_server.py
-
ConfigBridge.__init__(method)skills/hermes-lazyown/config_bridge.py:35def __init__(self, payload_path) -
ConfigBridge.get(method)skills/hermes-lazyown/config_bridge.py:42def get(self, key, default)-- Return the value for key, or default if not found anywhere. -
ConfigBridge.get_required(method)skills/hermes-lazyown/config_bridge.py:46def get_required(self, key)-- Return the value for key, raising ConfigBridgeError if missing. -
ConfigBridge.get_str(method)skills/hermes-lazyown/config_bridge.py:53def get_str(self, key, default)-- Return the string value for key. -
ConfigBridge.get_int(method)skills/hermes-lazyown/config_bridge.py:58def get_int(self, key, default)-- Return the integer value for key. -
ConfigBridge.get_bool(method)skills/hermes-lazyown/config_bridge.py:66def get_bool(self, key, default)-- Return the boolean value for key. -
ConfigBridge.refresh(method)skills/hermes-lazyown/config_bridge.py:75def refresh(self)-- Invalidate all caches so the next read reloads from disk. -
ConfigBridge.active_target(method)skills/hermes-lazyown/config_bridge.py:80def active_target(self)-- Return a dict with the minimal target context (rhost, domain, os_id). -
ConfigBridge.attacker_context(method)skills/hermes-lazyown/config_bridge.py:90def attacker_context(self)-- Return a dict with the attacker context (lhost, lport, etc.). -
ConfigBridge.is_hermes_session(method)skills/hermes-lazyown/config_bridge.py:99def is_hermes_session(self)-- Return True if running inside a Hermes agent session.
Depends on: modules/killchain.py
Imported by: skills/hermes-lazyown/claudemd_rules.py, skills/hermes-lazyown/config_bridge.py, skills/hermes-lazyown/executor.py, skills/hermes-lazyown/hermes_sync.py, skills/hermes-lazyown/mcp_server.py, skills/hermes-lazyown/output_compactor.py
-
Paths.lazyown_dir(method)skills/hermes-lazyown/constants.py:106def lazyown_dir()-- Return the LazyOwn project root directory. -
Paths.payload_file(method)skills/hermes-lazyown/constants.py:115def payload_file()-- Return the path to payload.json. -
Paths.sessions_dir(method)skills/hermes-lazyown/constants.py:120def sessions_dir()-- Return the path to the sessions directory. -
Paths.scan_file(method)skills/hermes-lazyown/constants.py:125def scan_file(rhost)-- Return the expected nmap scan file for a target. -
Paths.vulns_file(method)skills/hermes-lazyown/constants.py:130def vulns_file(rhost)-- Return the expected vulnerability scan file for a target. -
Paths.world_model_file(method)skills/hermes-lazyown/constants.py:135def world_model_file()-- Return the path to world_model.json. -
Paths.objectives_file(method)skills/hermes-lazyown/constants.py:140def objectives_file()-- Return the path to objectives.jsonl. -
Paths.tasks_file(method)skills/hermes-lazyown/constants.py:145def tasks_file()-- Return the path to tasks.json. -
Paths.soul_file(method)skills/hermes-lazyown/constants.py:150def soul_file()-- Return the path to soul.md. -
Paths.claude_md_file(method)skills/hermes-lazyown/constants.py:155def claude_md_file()-- Return the path to CLAUDE.md.
Depends on: skills/hermes-lazyown/constants.py
Imported by: skills/hermes-lazyown/mcp_server.py
-
ExecutionResult.__init__(method)skills/hermes-lazyown/executor.py:24def __init__(self, stdout, stderr, returncode, timed_out, duration_ms) -
ExecutionResult.combined(method)skills/hermes-lazyown/executor.py:39def combined(self)-- Return stdout and stderr combined. -
ExecutionResult.success(method)skills/hermes-lazyown/executor.py:47def success(self)-- Return True if the command exited cleanly and did not time out. -
LazyOwnExecutor.__init__(method)skills/hermes-lazyown/executor.py:66def __init__(self, lazyown_dir, timeout) -
LazyOwnExecutor.execute(method)skills/hermes-lazyown/executor.py:77def execute(self, command, timeout)-- Execute a single LazyOwn command string. -
LazyOwnExecutor.execute_batch(method)skills/hermes-lazyown/executor.py:98def execute_batch(self, commands, timeout)-- Execute multiple commands in a single LazyOwn session.
Depends on: skills/hermes-lazyown/constants.py
Imported by: skills/hermes-lazyown/mcp_server.py
-
CheckpointSerializer.__init__(method)skills/hermes-lazyown/hermes_sync.py:33def __init__(self, sessions_dir) -
CheckpointSerializer.write(method)skills/hermes-lazyown/hermes_sync.py:37def write(self, state)-- Write a checkpoint to disk. -
CheckpointSerializer.read(method)skills/hermes-lazyown/hermes_sync.py:49def read(self)-- Read the latest checkpoint, or None if absent / stale. -
CheckpointSerializer.clear(method)skills/hermes-lazyown/hermes_sync.py:64def clear(self)-- Remove the checkpoint file. -
ObjectiveTodoSync.__init__(method)skills/hermes-lazyown/hermes_sync.py:82def __init__(self, objectives_path) -
ObjectiveTodoSync.pending_objectives(method)skills/hermes-lazyown/hermes_sync.py:85def pending_objectives(self)-- Return all pending objectives from objectives.jsonl. -
ObjectiveTodoSync.mark_done(method)skills/hermes-lazyown/hermes_sync.py:106def mark_done(self, objective_text)-- Mark an objective as done by appending a completion record. -
ObjectiveTodoSync.inject_objective(method)skills/hermes-lazyown/hermes_sync.py:127def inject_objective(self, text, priority, notes)-- Inject a new objective into the LazyOwn queue. -
DelegationPlanner.plan_for_service(method)skills/hermes-lazyown/hermes_sync.py:154def plan_for_service(self, service, port, rhost)-- Return a list of delegation task descriptors for a discovered service. -
DelegationPlanner.plan_for_credential(method)skills/hermes-lazyown/hermes_sync.py:233def plan_for_credential(self, cred_type, value, rhost)-- Return delegation tasks triggered by a newly found credential.
Depends on: modules/backdoor/server.c, skills/hermes-lazyown/claudemd_rules.py, skills/hermes-lazyown/config_bridge.py, skills/hermes-lazyown/constants.py, skills/hermes-lazyown/executor.py, skills/hermes-lazyown/hermes_sync.py, skills/hermes-lazyown/output_compactor.py
-
list_tools(function)skills/hermes-lazyown/mcp_server.py:329def list_tools() -
call_tool(function)skills/hermes-lazyown/mcp_server.py:334def call_tool(name, arguments)-- Dispatch incoming tool calls to the appropriate handler. -
main(function)skills/hermes-lazyown/mcp_server.py:751def main()
Depends on: skills/hermes-lazyown/constants.py
Imported by: skills/hermes-lazyown/mcp_server.py
-
CompactionResult.__init__(method)skills/hermes-lazyown/output_compactor.py:20def __init__(self, compacted, original_lines, compacted_lines) -
CompactionResult.reduction_ratio(method)skills/hermes-lazyown/output_compactor.py:26def reduction_ratio(self)-- Return the ratio of lines removed (0.0 to 1.0). -
CompactionStrategy.compact(method)skills/hermes-lazyown/output_compactor.py:40def compact(self, raw_output, tool_name)-- Compact raw_output and return a CompactionResult. -
ReconCompaction.compact(method)skills/hermes-lazyown/output_compactor.py:55def compact(self, raw_output, tool_name) -
EnumCompaction.compact(method)skills/hermes-lazyown/output_compactor.py:93def compact(self, raw_output, tool_name) -
ExploitCompaction.compact(method)skills/hermes-lazyown/output_compactor.py:124def compact(self, raw_output, tool_name) -
PrivescCompaction.compact(method)skills/hermes-lazyown/output_compactor.py:151def compact(self, raw_output, tool_name) -
DefaultCompaction.__init__(method)skills/hermes-lazyown/output_compactor.py:165def __init__(self, max_lines) -
DefaultCompaction.compact(method)skills/hermes-lazyown/output_compactor.py:168def compact(self, raw_output, tool_name) -
OutputCompactor.__init__(method)skills/hermes-lazyown/output_compactor.py:196def __init__(self, default_max_lines) -
OutputCompactor.compact(method)skills/hermes-lazyown/output_compactor.py:200def compact(self, raw_output, phase, tool_name)-- Compact raw_output according to phase.
Depends on: core/logging.py, modules/logging_config.py, skills/lazyown_groq_agents.py, skills/lazyown_llm.py, skills/lazyown_parquet_db.py
Imported by: modules/loop_ai_bridge.py, modules/unified_dashboard.py, skills/lazyown_mcp.py, skills/swan_agent.py, skills/tests/test_hive_mind.py, skills/unified_orchestrator.py
-
IReadableMemory.recall(method)skills/hive_mind.py:149def recall(self, query, top_k)-- Return top_k items matching query. -
IWritableMemory.store(method)skills/hive_mind.py:157def store(self, content)-- Persist content and return an opaque event_id. -
ICommandRunner.run(method)skills/hive_mind.py:175def run(self, command, timeout)-- Execute command within timeout seconds and return text output. -
ICommandRunner.name(method)skills/hive_mind.py:180def name(self)-- Human-readable identifier for this runner. -
EpisodicStore.__init__(method)skills/hive_mind.py:215def __init__(self, db_path) -
EpisodicStore.store(method)skills/hive_mind.py:235def store(self, content, agent_id, role, event_type, meta, session_tag)-- Insert a row into hive_events and return event_id. -
EpisodicStore.recall(method)skills/hive_mind.py:274def recall(self, query, top_k, role, event_type)-- Keyword search via FTS5. -
EpisodicStore.stats(method)skills/hive_mind.py:322def stats(self)-- Return row counts for status reporting. -
EpisodicStore.forget(method)skills/hive_mind.py:329def forget(self, older_than_hours, topic)-- Delete old or topic-matching rows. -
SemanticStore.__init__(method)skills/hive_mind.py:358def __init__(self, chroma_dir, episodic_fallback) -
SemanticStore.available(method)skills/hive_mind.py:380def available(self)-- True when ChromaDB is operational. -
SemanticStore.store(method)skills/hive_mind.py:386def store(self, content, agent_id, role, event_type, meta, session_tag, event_id)-- Add a document to ChromaDB. -
SemanticStore.recall(method)skills/hive_mind.py:434def recall(self, query, top_k, where)-- Vector similarity search. -
SemanticStore.count(method)skills/hive_mind.py:477def count(self)-- Return number of vectors stored. -
LongtermStore.store(method)skills/hive_mind.py:515def store(self, content)-- Parquet store is read-only from here. -
LongtermStore.recall(method)skills/hive_mind.py:519def recall(self, query, top_k)-- Keyword search across Parquet knowledge files. -
build_default_hive_memory(function)skills/hive_mind.py:558def build_default_hive_memory(db_path)-- Factory that creates HiveMemory with the default three-layer backend. -
HiveMemory.__init__(method)skills/hive_mind.py:582def __init__(self, stores, episodic, semantic, longterm) -
HiveMemory.store(method)skills/hive_mind.py:596def store(self, content, agent_id, role, event_type, meta, session_tag)-- Store content in all writable layers. -
HiveMemory.recall_episodic(method)skills/hive_mind.py:633def recall_episodic(self, query, top_k, role, event_type)-- Keyword search across hive episodic memory. -
HiveMemory.recall_semantic(method)skills/hive_mind.py:647def recall_semantic(self, query, top_k, where)-- Vector similarity search in ChromaDB. -
HiveMemory.recall_longterm(method)skills/hive_mind.py:660def recall_longterm(self, query, top_k)-- Keyword search across Parquet knowledge files. -
HiveMemory.recall(method)skills/hive_mind.py:668def recall(self, query, top_k)-- Unified recall: semantic (ChromaDB) + episodic (SQLite) + longterm (Parquet). -
HiveMemory.stats(method)skills/hive_mind.py:694def stats(self)-- Return combined statistics from all layers. -
HiveMemory.forget(method)skills/hive_mind.py:704def forget(self, older_than_hours, topic)-- Prune old or topic-matched entries. -
HiveBus.__init__(method)skills/hive_mind.py:736def __init__(self) -
HiveBus.publish(method)skills/hive_mind.py:740def publish(self, msg)-- Deliver msg to recipient mailbox (and to "*" broadcast). -
HiveBus.receive(method)skills/hive_mind.py:746def receive(self, agent_id, max_msgs)-- Drain mailbox for agent_id (includes broadcast). -
HiveBus.ack_broadcast(method)skills/hive_mind.py:754def ack_broadcast(self, agent_id, msg_id)-- Mark a broadcast message as seen by agent_id (minimal bus — no-op). -
HiveBus.pending_count(method)skills/hive_mind.py:758def pending_count(self, agent_id)-- Count messages waiting for agent_id. -
ConsensusProtocol.__init__(method)skills/hive_mind.py:943def __init__(self, risk_assessor) -
ConsensusProtocol.evaluate(method)skills/hive_mind.py:946def evaluate(self, role, goal)-- Run the consensus vote for the given (role, goal) pair. -
DroneAgent.__init__(method)skills/hive_mind.py:1091def __init__(self, drone_id, role, goal, backend, memory, bus, max_iterations, api_key, model, runner, on_state_change) -
DroneAgent.start(method)skills/hive_mind.py:1128def start(self)-- Spawn the drone thread. -
DroneAgent.join(method)skills/hive_mind.py:1137def join(self, timeout)-- Block until the drone thread finishes. -
QueenBrain.__init__(method)skills/hive_mind.py:1301def __init__(self, memory, bus, pool, consensus) -
QueenBrain.plan(method)skills/hive_mind.py:1313def plan(self, goal, n_drones)-- Decompose a high-level goal into per-drone task specs. -
QueenBrain.dispatch(method)skills/hive_mind.py:1332def dispatch(self, tasks, backend, api_key, max_iterations)-- Spawn one drone per task in parallel. -
QueenBrain.plan_and_dispatch(method)skills/hive_mind.py:1405def plan_and_dispatch(self, goal, n_drones, backend, api_key, max_iterations)-- Convenience: plan + dispatch in one call. -
QueenBrain.collect(method)skills/hive_mind.py:1417def collect(self, drone_ids, timeout, poll_interval)-- Wait for all drones to finish (up to timeout seconds). -
QueenBrain.synthesize(method)skills/hive_mind.py:1447def synthesize(self, drone_ids, original_goal)-- Read hive memory results for these drones and produce a synthesis summary. -
QueenBrain.read_bus(method)skills/hive_mind.py:1471def read_bus(self)-- Drain queen's mailbox from drone result messages. -
DroneStateStore.__init__(method)skills/hive_mind.py:1513def __init__(self, db_path) -
DroneStateStore.upsert(method)skills/hive_mind.py:1523def upsert(self, state)-- Insert or replace a drone state record. -
DroneStateStore.load_all(method)skills/hive_mind.py:1553def load_all(self, limit)-- Load all persisted drone states ordered by most recently updated. -
DroneStateStore.mark_interrupted(method)skills/hive_mind.py:1588def mark_interrupted(self)-- Called on daemon startup: any drone that was queued/running when the process died is now in an unknown state. -
DroneStateStore.load_interrupted(method)skills/hive_mind.py:1609def load_interrupted(self)-- Return all drones currently in 'interrupted' state. -
DroneStateStore.delete_older_than(method)skills/hive_mind.py:1643def delete_older_than(self, days)-- Prune records older than N days. -
DronePool.__init__(method)skills/hive_mind.py:1673def __init__(self, memory, bus, state_store) -
DronePool.recover_from_store(method)skills/hive_mind.py:1687def recover_from_store(self)-- Load persisted drone states from a previous run. -
DronePool.spawn(method)skills/hive_mind.py:1708def spawn(self, role, goal, backend, api_key, model, max_iterations, runner)-- Create and start a DroneAgent. -
DronePool.requeue_interrupted(method)skills/hive_mind.py:1741def requeue_interrupted(self, backend, api_key, max_iterations)-- Re-spawn all drones previously marked 'interrupted'. -
DronePool.get_state(method)skills/hive_mind.py:1767def get_state(self, drone_id)-- Return the current state snapshot for a drone, or None if unknown. -
DronePool.list_all(method)skills/hive_mind.py:1776def list_all(self, limit)-- Return a sorted list of drone summary dicts (most recent first). -
DronePool.active_count(method)skills/hive_mind.py:1801def active_count(self)-- Return number of live drones currently in queued or running state. -
HiveMind.__init__(method)skills/hive_mind.py:1818def __init__(self) -
HiveMind.spawn(method)skills/hive_mind.py:1829def spawn(self, goal, role, backend, api_key, max_iterations)-- Spawn a single drone. -
HiveMind.spawn_hive(method)skills/hive_mind.py:1846def spawn_hive(self, goal, n_drones, backend, api_key, max_iterations)-- Queen plans and dispatches multiple drones in parallel. -
HiveMind.status(method)skills/hive_mind.py:1863def status(self)-- Return hive-wide status dict including historical drones from previous runs. -
HiveMind.recall(method)skills/hive_mind.py:1878def recall(self, query, top_k)-- Unified recall from all memory layers. -
HiveMind.drone_result(method)skills/hive_mind.py:1882def drone_result(self, drone_id)-- Return result dict for a specific drone. -
HiveMind.collect_and_synthesize(method)skills/hive_mind.py:1896def collect_and_synthesize(self, drone_ids, goal)-- Synthesize results from multiple drones. -
HiveMind.forget(method)skills/hive_mind.py:1900def forget(self, older_than_hours, topic)-- Prune hive memory. -
get_hive(function)skills/hive_mind.py:1911def get_hive()-- Return the process-wide HiveMind singleton, creating it if necessary. -
mcp_hive_spawn(function)skills/hive_mind.py:1926def mcp_hive_spawn(goal, role, n_drones, backend, max_iterations, api_key)-- Spawn one or more hive drones for a goal. -
mcp_hive_status(function)skills/hive_mind.py:1976def mcp_hive_status()-- Return full hive status: active drones, memory stats, queen mailbox. -
mcp_hive_recall(function)skills/hive_mind.py:1981def mcp_hive_recall(query, top_k)-- Semantic + episodic + longterm recall from hive memory. -
mcp_hive_plan(function)skills/hive_mind.py:1995def mcp_hive_plan(goal, n_drones)-- Queen generates task decomposition without spawning drones. -
mcp_hive_result(function)skills/hive_mind.py:2004def mcp_hive_result(drone_id)-- Get result from a specific drone. -
mcp_hive_collect(function)skills/hive_mind.py:2010def mcp_hive_collect(drone_ids_csv, goal)-- Wait for drones to finish and return synthesized result. drone_ids_csv: comma-separated drone IDs. -
mcp_hive_forget(function)skills/hive_mind.py:2021def mcp_hive_forget(older_than_hours, topic)-- Prune hive memory. -
mcp_hive_recover(function)skills/hive_mind.py:2027def mcp_hive_recover(backend, api_key, max_iterations)-- Re-queue all drones that were interrupted by a previous process crash/restart.
Depends on: core/logging.py
Imported by: skills/lazyown_mcp.py
-
AutoMapper.__init__(method)skills/lazyown_automapper.py:341def __init__(self, lazyown_dir) -
AutoMapper.rescan(method)skills/lazyown_automapper.py:364def rescan(self)-- Force a rescan of all source directories. -
AutoMapper.mcp_tools(method)skills/lazyown_automapper.py:368def mcp_tools(self)-- Return list of mcp types.Tool objects for all discovered extensions. -
AutoMapper.dispatch(method)skills/lazyown_automapper.py:389def dispatch(self, name, arguments, config, run_command_fn)-- Execute a dynamic tool. -
AutoMapper.update_skills_md(method)skills/lazyown_automapper.py:524def update_skills_md(self, skills_md_path)-- Append / replace the auto-discovered section in skills/lazyown.md. -
AutoMapper.stats(method)skills/lazyown_automapper.py:571def stats(self) -
AutoMapper.list_specs(method)skills/lazyown_automapper.py:581def list_specs(self)-- Return raw spec dicts (useful for debugging / reporting).
Depends on: core/logging.py, modules/lesson_ingestor.py, modules/logging_config.py
Imported by: skills/lazyown_mcp.py
-
is_ip_in_scope(function)skills/lazyown_campaign.py:64def is_ip_in_scope(ip, scope)-- Return True if ip belongs to any entry in scope. -
Campaign.is_active(method)skills/lazyown_campaign.py:148def is_active(self)-- Return True when the campaign has not been completed yet. -
Campaign.to_dict(method)skills/lazyown_campaign.py:152def to_dict(self)-- Serialise to a plain dict suitable for JSON persistence. -
Campaign.from_dict(method)skills/lazyown_campaign.py:157def from_dict(cls, data)-- Deserialise from a dict loaded out of JSON. -
LessonLearned.to_dict(method)skills/lazyown_campaign.py:189def to_dict(self) -
EpisodeReflectionEngine.__init__(method)skills/lazyown_campaign.py:256def __init__(self, hive_memory)-- Parameters hive_memory: Optional HiveMemory instance for semantic storage. -
EpisodeReflectionEngine.reflect(method)skills/lazyown_campaign.py:268def reflect(self, campaign)-- Extract lessons from campaign and persist them. -
CampaignStore.__init__(method)skills/lazyown_campaign.py:382def __init__(self, campaign_file) -
CampaignStore.load(method)skills/lazyown_campaign.py:395def load(self)-- Load the current campaign from disk. -
CampaignStore.create(method)skills/lazyown_campaign.py:414def create(self, name, scope, notes)-- Create and persist a brand-new campaign. -
CampaignStore.complete(method)skills/lazyown_campaign.py:445def complete(self, notes, run_reflection, hive_memory)-- Mark the active campaign as completed and optionally run reflection. -
CampaignStore.update_phase(method)skills/lazyown_campaign.py:500def update_phase(self, host, phase)-- Set (or update) the attack phase for host. -
CampaignStore.add_milestone(method)skills/lazyown_campaign.py:516def add_milestone(self, host, milestone_type, notes)-- Record a milestone achievement for host. -
CampaignStore.add_to_scope(method)skills/lazyown_campaign.py:540def add_to_scope(self, ip_or_cidr)-- Append ip_or_cidr to the campaign scope (idempotent). -
CampaignStore.in_scope(method)skills/lazyown_campaign.py:559def in_scope(self, ip)-- Return True if ip falls within the campaign scope. -
CampaignStore.summary(method)skills/lazyown_campaign.py:566def summary(self)-- Return a human-readable multi-line summary of the campaign. -
main(function)skills/lazyown_campaign.py:667def main(argv)
Imported by: skills/lazyown_mcp.py, skills/tests/test_harness_e2e.py
-
ClaudeMdLoader.__init__(method)skills/lazyown_claudemd.py:32def __init__(self, cwd) -
ClaudeMdLoader.load(method)skills/lazyown_claudemd.py:35def load(self)-- Return merged instructions string from all applicable levels. -
ClaudeMdLoader.list_files(method)skills/lazyown_claudemd.py:90def list_files(self)-- Return metadata for all CLAUDE.md files that exist. -
ClaudeMdLoader.create_user_file(method)skills/lazyown_claudemd.py:115def create_user_file(self, content)-- Create/overwrite ~/.lazyown/CLAUDE.md. -
ClaudeMdLoader.create_project_file(method)skills/lazyown_claudemd.py:121def create_project_file(self, content, local)-- Create CLAUDE.md (or CLAUDE.local.md) in cwd. -
ClaudeMdLoader.add_rule(method)skills/lazyown_claudemd.py:127def add_rule(self, rule_name, content)-- Add a named rule file to .lazyown/rules/. -
ClaudeMdLoader.status_text(method)skills/lazyown_claudemd.py:135def status_text(self)
Next: API_p18.md
Generated offline by readmenator from commit 9f1ab88375b8. Edits here are overwritten by readmenator . --rebuild.
Start
Wiki
- community_0_modules_autonomous_daemon
- community_10_skills_claude_md_orchestrator
- community_11_modules_surface_graph
- community_12_skills_hermes_lazyown
- community_13_modules_kerberos_core
- community_14_modules_saas_attacks
- community_15_modules_polymorphic_engine
- community_16_contrib_legacy
- community_17_tests
- community_18_scripts_journal
- community_19_modules_backdoor
- community_1_cli_commands_utils
- community_20_poc_tui
- community_21_scripts_check_contract_manifest
- community_22_scripts_migrate_lazyown
- community_23_tools
- community_24_orphans
- community_2_modules_lazy_loop
- community_3_cli
- community_4_modules_lazyc2
- community_5_lazygui_panels
- community_6_static_js
- community_7_modules_lazyown_facts
- community_8_cli_commands_c2_profile_engine
- community_9_core
- concepts
- queries
- REPORT
Agent Docs
- API
- API_p10
- API_p11
- API_p12
- API_p13
- API_p14
- API_p15
- API_p16
- API_p17
- API_p18
- API_p19
- API_p2
- API_p20
- API_p21
- API_p22
- API_p23
- API_p24
- API_p3
- API_p4
- API_p5
- API_p6
- API_p7
- API_p8
- API_p9
- ARCHITECTURE
- ARCHITECTURE_p2
- ARCHITECTURE_p3
- ARCHITECTURE_p4
- ARCHITECTURE_p5
- ARCHITECTURE_p6
- ARCHITECTURE_p7
- ARCHITECTURE_p8
- CONCEPTS
- GOTCHAS
- INDEX
- INDEX_p2
- INDEX_p3
- KB_backdoor
- KB_blueprints
- KB_cgi-bin
- KB_claude_md_orchestrator
- KB_cli
- KB_cli_p2
- KB_cli_p3
- KB_cli_p4
- KB_cli_p5
- KB_commands
- KB_commands_p2
- KB_commands_p3
- KB_commands_p4
- KB_config
- KB_contract
- KB_core
- KB_core_p2
- KB_devtools
- KB_extensions
- KB_hermes-lazyown
- KB_integrations
- KB_js
- KB_js_p2
- KB_js_p3
- KB_js_p4
- KB_lazyc2
- KB_lazygui
- KB_lazyown-docker
- KB_legacy
- KB_legacy_p2
- KB_misc
- KB_modules
- KB_modules_p10
- KB_modules_p11
- KB_modules_p12
- KB_modules_p13
- KB_modules_p14
- KB_modules_p15
- KB_modules_p16
- KB_modules_p2
- KB_modules_p3
- KB_modules_p4
- KB_modules_p5
- KB_modules_p6
- KB_modules_p7
- KB_modules_p8
- KB_modules_p9
- KB_modules_tools
- KB_palettes
- KB_panels
- KB_plugins
- KB_poc_tui
- KB_root
- KB_root_p2
- KB_rootkit
- KB_scripts
- KB_security
- KB_services
- KB_sinks
- KB_skills
- KB_skills_claude_md_orchestrator_tests
- KB_skills_p2
- KB_skills_p3
- KB_skills_p4
- KB_skills_p5
- KB_skills_tests
- KB_tests
- KB_tests_p10
- KB_tests_p11
- KB_tests_p12
- KB_tests_p13
- KB_tests_p14
- KB_tests_p15
- KB_tests_p16
- KB_tests_p17
- KB_tests_p18
- KB_tests_p19
- KB_tests_p2
- KB_tests_p3
- KB_tests_p4
- KB_tests_p5
- KB_tests_p6
- KB_tests_p7
- KB_tests_p8
- KB_tests_p9
- KB_theme
- KB_tools
- KB_widgets
- KB_win_rootkit
- KB_windows
- MEMORY
- SECURITY
- SYMBOLS
- SYMBOLS_p10
- SYMBOLS_p11
- SYMBOLS_p12
- SYMBOLS_p13
- SYMBOLS_p14
- SYMBOLS_p15
- SYMBOLS_p16
- SYMBOLS_p17
- SYMBOLS_p18
- SYMBOLS_p19
- SYMBOLS_p2
- SYMBOLS_p20
- SYMBOLS_p21
- SYMBOLS_p22
- SYMBOLS_p23
- SYMBOLS_p24
- SYMBOLS_p25
- SYMBOLS_p26
- SYMBOLS_p27
- SYMBOLS_p28
- SYMBOLS_p29
- SYMBOLS_p3
- SYMBOLS_p30
- SYMBOLS_p31
- SYMBOLS_p32
- SYMBOLS_p33
- SYMBOLS_p34
- SYMBOLS_p35
- SYMBOLS_p36
- SYMBOLS_p37
- SYMBOLS_p38
- SYMBOLS_p39
- SYMBOLS_p4
- SYMBOLS_p40
- SYMBOLS_p41
- SYMBOLS_p42
- SYMBOLS_p43
- SYMBOLS_p44
- SYMBOLS_p5
- SYMBOLS_p6
- SYMBOLS_p7
- SYMBOLS_p8
- SYMBOLS_p9
Recipes