
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
ai-agent-system
Advanced tools
A comprehensive AI agent framework with memory, tool integration, visible reasoning, and enhanced output formatting with colors, animations, and syntax highlighting.
v1.2.2 - Default model switched to
gpt-4ofor all agent operations *V1.2.1 - Some bugs fix v1.2.0 - Introduce interactive modeai-agent-system --interactivev1.1.0 - Enhanced with beautiful output formatting, syntax highlighting, and animations!
pip install ai_agent_system
pip install -e .
A comprehensive AI agent framework with memory capabilities, tool integration, and visible reasoning processes. This system implements the orchestrator-worker pattern with advanced memory management and a rich set of tools for various tasks.
The system follows an orchestrator-worker pattern:
pip install -r requirements.txt
export OPENAI_API_KEY="your-api-key-here"
from core.agent import AIAgent
from utils.formatter import EnhancedOutputFormatter
# Initialize the agent with enhanced output
agent = AIAgent(
model_name="gpt-4o", # Default is now gpt-4o
memory_persist_path="./agent_memory",
enable_reasoning_display=True,
realtime_output=True,
minimal_output=False
)
# Initialize enhanced formatter
formatter = EnhancedOutputFormatter(enable_animations=True)
# Show beautiful banner
formatter.print_banner("AI Agent System")
# Process a query with progress indication
formatter.start_progress("Processing your query...")
response = agent.process_query("Calculate the factorial of 5 using Python")
formatter.stop_progress()
# Get enhanced formatted output
formatted_response = formatter.format_agent_response(response)
print(formatted_response)
Run the enhanced demonstration script in interactive mode:
cd ai_agent_system
python examples/demo.py --interactive
Run the full enhanced demonstration:
cd ai_agent_system
python examples/demo.py
Test all the enhanced output features:
cd ai_agent_system
python test_enhanced_output.py
The agent uses a sophisticated memory system with:
# Store knowledge
memory_id = agent.memory_manager.store_knowledge(
content="Python is a programming language",
source="user_input"
)
# Retrieve relevant context
relevant_items = agent.memory_manager.retrieve_relevant_context(
"Tell me about Python"
)
# Get memory statistics
stats = agent.get_memory_stats()
Create custom tools by extending the BaseTool class:
from tools.tool_registry import BaseTool
class CustomTool(BaseTool):
def __init__(self):
super().__init__(
name="custom_tool",
description="Description of what this tool does"
)
def execute(self, query: str, context: Dict[str, Any]) -> Any:
# Implement tool logic here
return {"success": True, "result": "Tool output"}
def get_capabilities(self) -> List[str]:
return ["custom_capability"]
# Register the tool
agent.tool_registry.register_tool(CustomTool())
The agent provides beautiful, interactive output with enhanced formatting including:
NO_COLOR environment variable"Calculate the sum of 25 and 37 using Python""Browse to https://example.com and extract the title""List all Python files in the current directory""Write a short article about machine learning""Compare the differences between file1.txt and file2.txt""Scrape product information from an e-commerce website"# Export memory to JSON
agent.memory_manager.export_memory("memory_backup.json")
# Clear all memory
agent.clear_memory()
# Get available tools
tools = agent.tool_registry.get_available_tools()
# Get tool descriptions
descriptions = agent.tool_registry.get_tool_descriptions()
# Get tools by capability
web_tools = agent.tool_registry.get_tools_by_capability("web_navigation")
from utils.formatter import OutputFormatter
formatter = OutputFormatter()
# Format error messages
error_output = formatter.format_error("Something went wrong", context)
# Format memory statistics
stats_output = formatter.format_memory_stats(agent.get_memory_stats())
# Format tool list
tools_output = formatter.format_tool_list(agent.tool_registry.get_tool_info())
To add new tools or improve the system:
tools/ directoryBaseTool interfaceToolRegistryThis project is licensed under the MIT License. See the LICENSE file for details.
For issues or questions:
Built with ❤️ by Paul Gedeon
FAQs
A comprehensive AI agent framework with memory, tool integration, visible reasoning, and enhanced output formatting with colors, animations, and syntax highlighting.
We found that ai-agent-system demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.