Skip to content

Agent API_p18

grisun0 edited this page Oct 16, 2026 · 19 revisions

API (page 18 of 23)

Previous: API_p17.md

scripts/generate_sbom.py

scripts/journal.py

Imported by: scripts/read_journal.py, tests/test_journal.py

  • JournalConfig.from_git_remote (method) scripts/journal.py:71 def from_git_remote(cls, remote, category) -- Build a config from the origin remote of the current checkout.
  • Journal.repo_id (method) scripts/journal.py:184 def repo_id(self) -- The GraphQL node id of the repository.
  • Journal.category_id (method) scripts/journal.py:192 def category_id(self) -- The GraphQL node id of the journal category.
  • Journal.post (method) scripts/journal.py:206 def post(self, title, body) -- Create a journal entry and return its number, url, and title.
  • Journal.entries (method) scripts/journal.py:223 def entries(self, limit) -- Return the most recently updated journal entries.
  • main (function) scripts/journal.py:264 def main(argv) -- Run the journal CLI and return the process exit code.

scripts/lazy_llamacpp_serve.sh

scripts/lazy_llamacpp_setup.sh

scripts/lazy_opencode_config.py

Imported by: skills/lazyown_mcp.py

scripts/migrate_commandsets.py

scripts/migrate_lazyown.py

Imported by: tests/test_migrate_lazyown_generator.py

scripts/mutate.sh

scripts/mutation_gate.py

scripts/publish_wiki.sh

scripts/read_journal.py

Depends on: scripts/journal.py

scripts/smoke_onboarding.sh

scripts/sync_doc_stats.py

scripts/top_tier_check.py

scripts/update_apt_atomic_ids.py

scripts/validate_agent_contract.sh

skills/aci_planner.py

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:171 def to_dict(self) -- Serialize to dict for JSON persistence.
  • AttackPhase.from_dict (method) skills/aci_planner.py:176 def from_dict(cls, d) -- Deserialize from dict.
  • ACIPlan.active_phase (method) skills/aci_planner.py:199 def active_phase(self) -- Return the first phase that is active or pending.
  • ACIPlan.completion_pct (method) skills/aci_planner.py:207 def completion_pct(self) -- Percentage of phases that are done or skipped.
  • ACIPlan.to_dict (method) skills/aci_planner.py:214 def to_dict(self) -- Serialize to dict for JSON persistence.
  • ACIPlan.from_dict (method) skills/aci_planner.py:221 def from_dict(cls, d) -- Deserialize from dict.
  • ACIPlanner.__init__ (method) skills/aci_planner.py:461 def __init__(self, api_key, objectives_file, plan_file)
  • ACIPlanner.plan (method) skills/aci_planner.py:471 def plan(self, goal, phase_filter) -- Decompose goal into an ACIPlan, inject objectives, persist.
  • ACIEngine.__init__ (method) skills/aci_planner.py:604 def __init__(self, api_key, plan_file, objectives_file, history_file, replan_threshold)
  • ACIEngine.status (method) skills/aci_planner.py:618 def status(self) -- Return a structured status dict for the active plan.
  • ACIEngine.should_replan (method) skills/aci_planner.py:658 def should_replan(self, plan) -- Return True when the plan is stalled and a replan is warranted.
  • ACIEngine.replan (method) skills/aci_planner.py:671 def replan(self, reason) -- Generate a new set of objectives for blocked/remaining phases.
  • ACIEngine.complete (method) skills/aci_planner.py:741 def complete(self) -- Mark the active plan as completed and archive it.
  • ACIReflector.__init__ (method) skills/aci_planner.py:797 def __init__(self, lessons_file)
  • ACIReflector.reflect (method) skills/aci_planner.py:800 def reflect(self, plan) -- Analyse plan and generate lessons.
  • mcp_aci_plan (function) skills/aci_planner.py:865 def 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:923 def mcp_aci_status() -- Return live status of the active ACI plan as JSON.
  • mcp_aci_replan (function) skills/aci_planner.py:940 def mcp_aci_replan(reason) -- Force adaptive replanning of the active ACI plan.
  • main (function) skills/aci_planner.py:1003 def main(argv) -- Entry point for CLI usage.

skills/autonomous_daemon.py

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_mcp_helpers.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

skills/autonomous_replay.py

Depends on: core/logging.py, skills/autonomous_daemon.py Imported by: skills/lazyown_mcp.py, tests/test_autonomous_replay.py

skills/claude_md_orchestrator/bdd_agent.py

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

skills/claude_md_orchestrator/boy_scout.py

Depends on: skills/claude_md_orchestrator/config.py, skills/claude_md_orchestrator/models.py, skills/claude_md_orchestrator/validators.py

skills/claude_md_orchestrator/cicd_agent.py

Depends on: skills/claude_md_orchestrator/config.py, skills/claude_md_orchestrator/models.py

skills/claude_md_orchestrator/config.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/documentation_agent.py

Depends on: skills/claude_md_orchestrator/config.py, skills/claude_md_orchestrator/models.py

skills/claude_md_orchestrator/models.py

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

skills/claude_md_orchestrator/orchestrator.py

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

skills/claude_md_orchestrator/parser.py

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

skills/claude_md_orchestrator/reviewer_agent.py

Depends on: skills/claude_md_orchestrator/config.py, skills/claude_md_orchestrator/models.py, skills/claude_md_orchestrator/validators.py

skills/claude_md_orchestrator/sdd_agent.py

Depends on: modules/llm_factory.py, skills/claude_md_orchestrator/config.py, skills/claude_md_orchestrator/models.py, skills/claude_md_orchestrator/validators.py

skills/claude_md_orchestrator/tdd_agent.py

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

skills/claude_md_orchestrator/validators.py

Depends on: core/hardening.py, 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, tests/test_security_alerts_fix.py

skills/daemon_control.py

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:79 def is_expired(self, now) -- Return True when a still-pending action has exceeded its TTL.
  • ControlState.to_dict (method) skills/daemon_control.py:110 def to_dict(self) -- Serialise the state to a plain JSON-ready dict.
  • ControlState.from_dict (method) skills/daemon_control.py:121 def from_dict(cls, data) -- Build a state from JSON data, sanitising malformed input.
  • DaemonControl.__init__ (method) skills/daemon_control.py:171 def __init__(self, sessions_dir) -- Pin the control file to <sessions_dir>/daemon_control.json.
  • DaemonControl.path (method) skills/daemon_control.py:184 def path(self) -- Absolute path of the control file on disk.
  • DaemonControl.load (method) skills/daemon_control.py:188 def load(self) -- Return the current state or defaults when the file is missing.
  • DaemonControl.save (method) skills/daemon_control.py:201 def save(self, state) -- Persist state atomically.
  • DaemonControl.set_mode (method) skills/daemon_control.py:231 def set_mode(self, mode) -- Switch between :data:MODE_AUTO, :data:MODE_APPROVAL, :data:MODE_PAUSED.
  • DaemonControl.pause (method) skills/daemon_control.py:240 def pause(self) -- Convenience wrapper for set_mode(MODE_PAUSED).
  • DaemonControl.resume (method) skills/daemon_control.py:244 def resume(self) -- Convenience wrapper for set_mode(MODE_AUTO).
  • DaemonControl.require_approval (method) skills/daemon_control.py:248 def require_approval(self) -- Convenience wrapper for set_mode(MODE_APPROVAL).
  • DaemonControl.add_veto (method) skills/daemon_control.py:252 def add_veto(self, command_token) -- Append a first-token name to the veto list.
  • DaemonControl.remove_veto (method) skills/daemon_control.py:267 def remove_veto(self, command_token) -- Remove a previously vetoed command from the list.
  • DaemonControl.clear_vetoes (method) skills/daemon_control.py:275 def clear_vetoes(self) -- Remove every entry from the veto list.
  • DaemonControl.set_focus (method) skills/daemon_control.py:282 def set_focus(self, targets) -- Replace the focus-target list.
  • DaemonControl.propose (method) skills/daemon_control.py:290 def propose(self, command) -- Daemon-side: register a pending action awaiting approval.
  • DaemonControl.decide (method) skills/daemon_control.py:317 def decide(self, action_id, decision) -- Operator-side: approve or veto the pending action.
  • DaemonControl.consume (method) skills/daemon_control.py:343 def consume(self, action_id) -- Daemon-side: read the final decision and clear the slot.
  • DaemonControl.is_paused (method) skills/daemon_control.py:375 def is_paused(self) -- Return True when the daemon must stop before executing.
  • DaemonControl.is_vetoed (method) skills/daemon_control.py:379 def is_vetoed(self, command) -- Return True when the command's first token is in the veto list.
  • DaemonControl.target_in_focus (method) skills/daemon_control.py:386 def target_in_focus(self, target) -- Return True when no focus is configured or target is in focus.
  • wait_for_decision (function) skills/daemon_control.py:394 def wait_for_decision(control, action) -- Block until the operator decides or the TTL expires.
  • wait_until_unpaused (function) skills/daemon_control.py:445 def wait_until_unpaused(control) -- Block while the daemon is paused, returning when it resumes.

skills/daemon_health.py

Imported by: lazyc2.py

skills/heartbeat.py

Depends on: modules/event_engine.py, modules/session_state.py, modules/timeline_narrator.py

skills/hermes-lazyown/claudemd_rules.py

Depends on: skills/hermes-lazyown/constants.py Imported by: skills/hermes-lazyown/mcp_server.py

skills/hermes-lazyown/config_bridge.py

Depends on: skills/hermes-lazyown/constants.py Imported by: skills/hermes-lazyown/mcp_server.py

skills/hermes-lazyown/constants.py

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

skills/hermes-lazyown/executor.py

Depends on: skills/hermes-lazyown/constants.py Imported by: skills/hermes-lazyown/mcp_server.py

skills/hermes-lazyown/hermes_sync.py

Depends on: skills/hermes-lazyown/constants.py Imported by: skills/hermes-lazyown/mcp_server.py

skills/hermes-lazyown/mcp_server.py

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

skills/hermes-lazyown/output_compactor.py

Depends on: skills/hermes-lazyown/constants.py Imported by: skills/hermes-lazyown/mcp_server.py

Next: API_p19.md

Start

Wiki

Agent Docs

Recipes

Clone this wiki locally