Files
Aperant/auto-claude/agents/__init__.py
T
2025-12-15 21:10:27 +01:00

71 lines
1.6 KiB
Python

"""
Agents Module
=============
Modular agent system for autonomous coding.
This module provides:
- run_autonomous_agent: Main coder agent loop
- run_followup_planner: Follow-up planner for completed specs
- Memory management (Graphiti + file-based fallback)
- Session management and post-processing
- Utility functions for git and plan management
"""
# Main agent functions (public API)
# Constants
from .base import (
AUTO_CONTINUE_DELAY_SECONDS,
HUMAN_INTERVENTION_FILE,
)
from .coder import run_autonomous_agent
# Memory functions
from .memory import (
debug_memory_system_status,
get_graphiti_context,
save_session_memory,
save_session_to_graphiti, # Backwards compatibility
)
from .planner import run_followup_planner
# Session management
from .session import (
post_session_processing,
run_agent_session,
)
# Utility functions
from .utils import (
find_phase_for_subtask,
find_subtask_in_plan,
get_commit_count,
get_latest_commit,
load_implementation_plan,
sync_plan_to_source,
)
__all__ = [
# Main API
"run_autonomous_agent",
"run_followup_planner",
# Memory
"debug_memory_system_status",
"get_graphiti_context",
"save_session_memory",
"save_session_to_graphiti",
# Session
"run_agent_session",
"post_session_processing",
# Utils
"get_latest_commit",
"get_commit_count",
"load_implementation_plan",
"find_subtask_in_plan",
"find_phase_for_subtask",
"sync_plan_to_source",
# Constants
"AUTO_CONTINUE_DELAY_SECONDS",
"HUMAN_INTERVENTION_FILE",
]