Catalog PyPI
PACKAGE EXPLORERView in registry

aider-jac-osp

PyPI

Aider: AI-powered coding assistant rebuilt with Jac Object-Spatial Programming and Genius Mode

aiassistantautomationcodegenius-modejacllmmtpospspatial-programming
Versions collected1
Direct dependencies23From release 2.0.2
Last observed21 Oct, 10:27 UTC

README

Version 2.0.2 documentation

Rebuilding Aider with Jac

Autonomous Code Editor Powered by Jac Object-Spatial Programming

Developed by Team ByteBrains

🎥 Live Demonstration

Watch the system in action:

See real-time autonomous code editing, multi-file coordination, and spatial programming capabilities demonstrated on production codebases.


Python 3.8+ Agentic AI OSP Technology Jac Language Multi-LLM License: MIT

Overview

An autonomous code editing system that demonstrates Agentic AI capabilities through intelligent task planning, multi-file coordination, and spatial code analysis. Built with Python-Jac integration for professional development workflows.

Key Achievements:

  • 25.8% token cost reduction on production codebases
  • Multi-file autonomous editing with coordinated changes
  • Spatial code analysis using Object-Spatial Programming algorithms
  • Professional CLI interface with comprehensive operation tracking
  • Multi-LLM provider support including cost-effective models

Installation

pip install aider-jac-osp

Option 2: Docker Container

# Build and run with Docker
docker build -t aider-jac-osp .
docker run -it -v $(pwd):/workspace aider-jac-osp

# Or use docker-compose
docker-compose up aider-jac-osp

Option 3: Development Setup

git clone https://github.com/ThiruvarankanM/Rebuilding-Aider-with-Jac-OSP.git
cd Rebuilding-Aider-with-Jac-OSP
python -m venv .venv
source .venv/bin/activate
pip install -e .

Configuration

Set up the system:

aider-genius setup

Configure API settings in ~/.aider-genius/config.json:

{
  "llm_provider": "openrouter",
  "model": "google/gemma-2-9b-it:free",
  "api_key": "your-openrouter-key",
  "max_tokens": 4000,
  "temperature": 0.2
}

Usage

Quick Start

# Install the package
pip install aider-jac-osp

# Basic usage
aider --help                            # Standard aider interface
aider-genius --help                     # Advanced genius mode

Project Analysis

aider-genius analyze                    # Analyze entire project structure
aider-genius analyze --dir src/         # Directory-specific analysis
aider-genius analyze --files main.py utils.py --verbose

Cost Optimization

aider-genius optimize main.py          # Single file optimization
aider-genius optimize --files *.py     # Batch optimization

Autonomous Editing

aider-genius edit "add error handling"
aider-genius edit "improve logging" --files app.py utils.py
aider-genius edit "optimize performance" --dry-run

Architecture

Core System Components

The system implements autonomous intelligence through:

  • Task Planning: Independent decomposition of high-level objectives
  • Spatial Analysis: Multi-dimensional code relationship understanding
  • Coordinated Execution: Synchronized multi-file modification strategies
  • Adaptive Learning: Pattern recognition for improved decision making

Technology Stack

  • Python: Core system implementation and LLM integration
  • Jac: Object-Spatial Programming for advanced code analysis
  • Rich: Professional terminal interface with visual formatting
  • Multi-LLM: OpenAI, Anthropic, OpenRouter provider support

Project Structure

aider/
├── cli.py                     # Command-line interface
├── integration/
│   ├── jac_bridge.py         # Python-Jac integration layer
│   ├── file_editor.py        # Autonomous editing engine
│   ├── llm_client.py         # Multi-provider LLM client
│   └── osp_interface.py      # Spatial programming interface
└── jac/                      # Spatial programming modules
    ├── repomap_osp.jac       # File ranking algorithms
    ├── token_optimizer.jac   # Cost optimization
    ├── planning_walker.jac   # Task decomposition
    └── context_gatherer.jac  # Context optimization

Key Features

Autonomous Code Understanding

  • Real-time analysis of project structure and dependencies
  • Intelligent file relevance scoring using spatial algorithms
  • Cross-component relationship mapping for coordinated changes
  • Pattern recognition for consistent code style maintenance

Professional Development Integration

  • Comprehensive backup system with version control
  • Dry-run mode for safe change preview
  • Git integration for collaborative workflows
  • Enterprise-grade error handling and logging

Cost-Effective Operation

  • Proven 25.8% token reduction on large codebases
  • Support for free-tier LLM models
  • Intelligent prompt optimization for minimal API usage
  • Configurable resource limits and usage tracking

Performance Metrics

FeatureResultImpact
Token Optimization25.8% reductionSignificant cost savings
File Analysis23+ files processedComprehensive coverage
Multi-file CoordinationMultiple simultaneous editsSynchronized changes
Processing SpeedSub-3 second responseReal-time workflow

Object-Spatial Programming Integration

Aider-Genius utilizes Object-Spatial Programming (OSP) for advanced code analysis:

  • Spatial code graphs for relationship visualization
  • Multi-dimensional dependency analysis
  • Context-aware code selection and modification
  • Predictive impact assessment across file boundaries

Supported LLM Providers

  • OpenAI: Complete GPT model support
  • Anthropic: Claude integration
  • OpenRouter: Multi-model access with free tiers
  • Custom: Extensible provider system

Command Reference

CommandDescription
aider-genius setupInitialize system configuration
aider-genius analyzePerform spatial code analysis
aider-genius optimizeOptimize token usage and costs
aider-genius edit <task>Execute autonomous editing tasks
aider-genius --helpDisplay comprehensive help

Testing

# Install and verify package
pip install aider-jac-osp
pip show aider-jac-osp

# Test functionality
aider --version
aider-genius analyze --dry-run
python -c "import aider; print('Import successful')"

# Development testing
python system_test.py

# Test autonomous capabilities
aider-genius edit "comprehensive code improvement" --dry-run

Contributing

  1. Fork the repository
  2. Create feature branches for enhancements
  3. Submit pull requests with comprehensive testing
  4. Follow established code quality standards

Future Enhancements

  • Advanced LLM integration (GPT-4, Claude-3)
  • Web-based interface for visual spatial programming
  • IDE plugins for native development environment integration
  • Enhanced pattern recognition with AST-based analysis
  • Team collaboration features with multi-developer coordination

License

MIT License - Open source autonomous AI innovation


Professional autonomous coding solution powered by Agentic AI and Object-Spatial Programming | Team ByteBrains

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
2.0.23 Sept 202523

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
thiruvarankanm/rebuilding-aider-with-jac-osp

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 10:27 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:563ba76ad59bcedb0e873873764a3d370a6cc4b53393b847625982cf694bef15