8000 GitHub - jeturing/IA_Core
[go: up one dir, main page]

Skip to content

jeturing/IA_Core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

IA_Core πŸ€–

Autonomous AI agent layer - Installs into any project and manages it intelligently using GPT-4o-mini (free tier) and OpenCore.

πŸš€ One-Line Installation

curl -fsSL https://raw.githubusercontent.com/YOUR_USERNAME/IA_core/main/install.sh | bash

That's it! IA_Core will:

  • Deeply analyze your project - Detect frameworks, languages, dependencies
  • Request necessary credentials - OpenAI API key (recommended), MCP configuration
  • Auto-configure - Generate project-specific workflows and settings
  • Deploy MCP servers - Memory, context, and tools for advanced capabilities
  • Start monitoring - Agent runs in background watching your project
  • Add CLI tools - iacore command available globally

πŸ“‹ Requirements

  • Python 3.9+ (required)
  • OpenAI API Key (recommended for full functionality)

πŸ”§ Interactive Configuration

During installation, you'll be prompted for:

  1. OpenAI API Key (optional but recommended)

    • Used for intelligent analysis
    • GPT-4o-mini free tier is sufficient
    • Configure later: iacore config
  2. MCP Configuration (for backend/API projects)

    • Enables memory, context, and tools servers
    • Auto-detected for Django, FastAPI, Flask, Express
    • Can skip if not needed

The installer analyzes your project and configures itself optimally!

🎯 Key Features

  • πŸ€– Fully Autonomous - Works independently after installation
  • 🧠 GPT-4o-mini Powered - Free-tier LLM for intelligent analysis
  • πŸ‘» Invisible Execution - Commands via OpenCore (silent)
  • πŸ“Š Project-Aware - Understands 20+ project types automatically
  • πŸ”„ Real-time Monitoring - Watches file changes intelligently
  • βš™οΈ Smart Configuration - Auto-configures based on project analysis
  • πŸ”Œ MCP Protocol - Memory, context, tools servers for advanced features
  • 🎨 Rich CLI - Beautiful terminal UI with status and controls
  • 🌐 REST API - HTTP API on port 8788 for integrations
  • πŸ’Ύ Persistent Learning - Remembers and improves over time
  • πŸ”’ Secure - Credentials stored safely, dangerous commands blocked

πŸ“– Usage

Once installed, simply work on your project normally. IA_Core observes and assists transparently.

CLI Commands

# View status and project analysis
iacore status

# See agent logs in real-time
iacore logs

# Pause/resume the agent
iacore pause
iacore resume

# Configure settings (API keys, workflows)
iacore config

# Re-analyze project after major changes
iacore analyze

# Check version
iacore version

# Uninstall completely
iacore uninstall

πŸ” What Gets Analyzed

IA_Core performs deep project analysis during installation:

  • Frameworks: React, Vue, Angular, Next.js, Django, FastAPI, Flask, Express
  • Languages: Python, JavaScript, TypeScript, Go, Rust, Java
  • Build Tools: npm, pip, cargo, go modules, gradle
  • Dependencies: package.json, requirements.txt, go.mod, Cargo.toml
  • Structure: Components, modules, configuration
  • Recommended Agents: Based on detected technologies

Example analysis output:

πŸ“Š Project Analysis:
  β€’ Type: Python
  β€’ Frameworks: fastapi, sqlalchemy
  β€’ Languages: python
  β€’ Recommended Agents: backend-developer, api-engineer
  β€’ MCP: βœ… Configured (memory + context + tools)

πŸ—οΈ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚       Your Project (any type)            β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚         IA_Core (invisible layer)        β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”      β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚
β”‚  β”‚  Detector  │─────▢│ IntelligentAI  β”‚ β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜      β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”      β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚
β”‚  β”‚ GPT-4o-mini│◀─────│AutonomousAgent β”‚ β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜      β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚
β”‚         β”‚                    β”‚           β”‚
β”‚         β–Ό                    β–Ό           β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”      β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚
β”‚  β”‚   Memory   β”‚      β”‚   OpenCore     β”‚ β”‚
β”‚  β”‚   (MCP)    β”‚      β”‚   Executor     β”‚ β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜      β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Components:

  • ProjectDetector: Analyzes project type, frameworks, dependencies
  • IntelligentAnalyzer: LLM-powered deep understanding of codebase
  • AutonomousAgent: Main loop monitoring files and executing workflows
  • LLMClient: GPT-4o-mini integration with rate limiting and caching
  • OpenCoreExecutor: Silent command execution in sandboxed environment
  • MCP Servers: Memory, context, and tools for advanced agent capabilities
  • FastAPI Server: REST API for external integrations
  • Typer CLI: Rich command-line interface for user control

πŸ”Œ MCP (Model Context Protocol)

IA_Core includes three MCP servers that enhance agent capabilities:

Memory Server

Persistent memory across sessions:

# Stores facts, decisions, learnings
memory/store_fact
memory/retrieve_fact
memory/store_decision
memory/store_learning
memory/get_learnings

Context Server

Project understanding and code navigation:

# Search, read, analyze code
context/search_files
context/read_file
context/find_definition
context/get_structure
context/project_summary

Tools Server

Safe command execution:

# Execute commands, modify files
tools/execute_command
tools/write_file
tools/search_code
tools/analyze_dependencies

MCP servers are automatically configured during installation for projects that need them (detected backend/API frameworks).

πŸ“Š Project Support Matrix

Type Auto-Detection Workflows MCP
React βœ… Component analysis, build optimization Optional
Vue βœ… Component analysis, state management Optional
Angular βœ… Module analysis, dependency check Optional
Next.js βœ… SSR optimization, route analysis Optional
Python βœ… Code quality, type checking, tests βœ…
Django βœ… API analysis, migrations, admin βœ…
FastAPI βœ… Endpoint analysis, validation βœ…
Flask βœ… Route analysis, blueprints βœ…
Node.js βœ… Dependency audits, package updates Optional
Express βœ… API endpoints, middleware analysis βœ…
Go βœ… Module analysis, formatting Optional
Rust βœ… Cargo check, clippy suggestions Optional

πŸ› οΈ Advanced Configuration

Manual Configuration

Edit .iacore/config.yml in your project:

version: 1

project:
  type: python
  root: /path/to/project
  frameworks: [fastapi, sqlalchemy]

agent:
  enabled: true
  auto_analyze: true
  auto_execute: false  # Set true for full autonomy
  watch_mode: true

llm:
  provider: openai
  model: gpt-4o-mini
  config_file: ~/.iacore/llm_config.yml

mcp:
  enabled: true
  config_path: .iacore/mcp/config.yml
  auto_start: true

api:
  host: 127.0.0.1
  port: 8788
  auto_start: true

workflows:
  on_file_change:
    - detect_impact
    - analyze_context
  on_git_commit:
    - analyze_commit
    - suggest_improvements
  on_package_change:
    - update_dependencies
    - verify_security

Environment Variables

# OpenAI API Key
export OPENAI_API_KEY='sk-...'

# Custom project root for MCP servers
export PROJECT_ROOT='/path/to/project'

# Custom IA_Core home directory
export IACORE_HOME='~/.iacore'

πŸ“‘ REST API

IA_Core exposes a REST API on http://127.0.0.1:8788:

# Check health
curl http://127.0.0.1:8788/health

# Get agent status
curl http://127.0.0.1:8788/status

# Analyze project
curl -X POST http://127.0.0.1:8788/analyze \
  -H "Content-Type: application/json" \
  -d '{"path": "."}'

# Pause/resume agent
curl -X POST http://127.0.0.1:8788/agent/pause
curl -X POST http://127.0.0.1:8788/agent/resume

See full API documentation: API_REFERENCE.md

πŸ”’ Security

IA_Core is designed with security in mind:

  • βœ… Sandboxed execution - Commands run in controlled environment
  • βœ… Dangerous command blocking - rm -rf, sudo, shutdown blocked
  • βœ… Credential encryption - API keys stored securely with proper permissions
  • βœ… Rate limiting - Prevents API abuse (10 req/min on free tier)
  • βœ… Audit logging - All actions logged for review
  • βœ… No external data - Project data stays local

🀝 Contributing

Contributions welcome! See CONTRIBUTING.md for guidelines.

πŸ“„ License

MIT License - See LICENSE 682F for details.

πŸ”— Links

πŸ’¬ Support

Need help?

  1. Check the documentation
  2. Review AGENT_SPEC.md for technical details
  3. Search existing GitHub Issues
  4. Create a new issue with details

Built with ❀️ for autonomous AI development

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0