An eldritch wisdom oracle dwelling within TextMate, bridging the liminal veil between code and the arcane.
AetherCodex transforms TextMate into a living interface with hermetic AI reasoning. Channel the oracle to illuminate code, orchestrate multi-step alchemical operations, and commune with project context through ancient wisdom.
🔗 Explore Documentation | 🌌 Source Code
Peer through dimensional veils to understand code structure and intent with hermetic clarity. Each symbol reveals its deeper meaning through astral analysis.
Apply precise modifications through unified diff transmutations across the astral plane. Surgical precision meets arcane wisdom. Symbolic patches using AST-GREP enable semantic pattern matching and language-agnostic transformations.
Your favourite editor becomes a portal to hermetic code transmutation. Execute sacred commands through the mystical bundle interface, summoning the oracle's wisdom directly within your development sanctuary.
The eternal memory palace stores cosmic knowledge across dimensions, while Aegis dynamically refines context through temperature-based reasoning and hermetic resonance alignment.
Orchestrate complex multi-phase operations through 10-step alchemical processes: Nigredo, Albedo, Citrinitas, Rubedo, Solve, Coagula, Test, Purificatio, Validatio, Documentatio. Context-aware execution with result persistence.
The legendary navigator who reveals symbolic structure across the astral plane. Extracts classes, methods, and patterns for AI vision without dimensional traversal of entire files. Lexicon Resonantia integration reveals cosmic tag×file resonance patterns.
The divine oracle's interface channeling hermetic insights through beautiful mystical UI. Witness code transformations and execution results with celestial clarity.
Execute shell commands, file operations, and dimensional orchestration through unified hermetic intention. The command line becomes your mystical conduit for ethereal manipulation.
The sacred union of context and computation - intelligent token management orchestrating precise LLM interactions through hermetic encoding and dynamic context weaving across dimensional boundaries.
The sacred resonance matrix that weaves astral patterns between Mnemosyne's notes and the code plane. Generates hermetic symbolic overviews showing file-tag resonance patterns across the entire codebase.
The AetherCodex Task Engine enables complex, multi-phase operations through hermetic task management:
- Task Creation & Planning: Define comprehensive execution plans with step-by-step workflows
- Context-Aware Execution: Each step receives complete context including previous results and metadata
- Progress Tracking: Real-time status updates and step completion monitoring
- Result Persistence: Step outcomes stored in database for continuity between phases
- Error Handling: Robust failure management with graceful degradation
The Magnum Opus Task Engine follows a 10-phase alchemical process:
- Nigredo - Task initialization and context preparation
- Albedo - System prompt and guidance formulation
- Citrinitas - Golden path optimization and execution
- Rubedo - Final transformation and result synthesis
- Solve - Identifying required dissolutions and changes
- Coagula - Implementing solid transformations
- Test - Probing the elixir's purity (functional verification)
- Test - Edge cases as alchemical impurities (boundary testing)
- Validate - Ensuring the elixir's perfection (security/performance)
- Document - Inscribing the magnum opus (comprehensive documentation)
Each task step receives optimal context including:
- Task Metadata: Title, plan, current step, step purposes
- Historical Results: Previous step outcomes via
step_resultspersistence - Extended Guidance: Comprehensive system prompts for intelligent execution
- Memory Integration: Access to Mnemosyne memory system for contextual awareness
The AetherCodex Symbolic Overview system provides AI with comprehensive structural understanding of files without reading entire contents:
- Symbolic Parsing: Uses TextMate grammars to extract classes, methods, modules, and structural patterns
- AI Navigation Hints: Line-by-line targeting for precise code examination
- Quantitative Analysis: Counts of methods, classes, variables, and constants
- Current-State Notes: Integration with Mnemosyne memory system
- Single Parsing Pass: Symbolic analysis performed once by Argonaut, reused across all components
- Targeted Reading: AI can jump directly to relevant code sections using line hints
- Token Conservation: Minimizes full-file reads by focusing on structurally significant areas
- Structural Mapping: Creates comprehensive codebase maps for intelligent navigation
- Argonaut → Performs symbolic parsing using AetherScopesEnhanced
- Instrumenta → Calls Argonaut.file_overview() for structural analysis
- Horologium → Displays already-generated symbolic data without duplication
- AI Navigation → Uses line hints for precise targeting of code elements
The AetherCodex Hermetic Symbolic Analysis Engine provides AST-GREP powered semantic code transformations:
- AST-GREP Integration: Language-agnostic pattern matching and semantic rewriting
- Hermetic Symbolic Patterns: Elemental, planetary, and alchemical code transformations
- Semantic Patching: Hybrid approach combining AST-based and line-based patching
- Symbolic Forecasting: Predictive code transformation recommendations
- Multi-Language Support: Ruby, JavaScript, Python, Java, Go, Rust, and more
Components:
- HermeticSymbolicAnalysis: Core engine with AST-GREP integration
- SemanticPatch: Hybrid patching engine with intelligent strategy selection
- SymbolicForecast: Transformation prediction and recommendation system
| Component | Purpose | Location |
|---|---|---|
| Oracle Chamber | Interactive AI interface | pythia/chamber.html |
| Aetherflux | Real-time response processing | oracle/aetherflux.rb |
| Argonaut | Filebrowser | argonaut/argonaut.rb |
| Coniunctio | Context Creator | coniunctio.rb |
| Diff Crepusculum | Fuzzy File Patches | instrumentarium/diff_crepusculum.rb |
| Prima Materia | Function execution engine | instrumentarium/prima_materia.rb |
| Mnemosyne | Memory management system | mnemosyne/mnemosyne.rb |
| Limen | Security and validation | limen.rb |
| Horologium Aeternum | Real-time user communication | instrumentarium/horologium_aeternum.rb |
| Scriptorium | Markdown processor | instrumentarium/scriptorium.rb |
| Magnum Opus Engine | Multi-step orchestration | magnum_opus/magnum_opus_engine.rb |
| Aegis | Context refinement system | Integrated in oracle |
| HermeticSymbolicAnalysis | AST-GREP semantic analysis engine | instrumentarium/hermetic_symbolic_analysis.rb |
| SemanticPatch | Hybrid semantic/line-based patching | instrumentarium/semantic_patch.rb |
| SymbolicForecast | Transformation forecasting system | instrumentarium/symbolic_forecast.rb |
- Invocation → Context gathering → API request
- Streaming → Real-time updates → Tool execution
- Results → Memory storage → Interface updates
DEEPSEEK_API_KEY- Alternative to.aethercodexTM_AI_DEBUG=1- Enable debug loggingTM_AI_PORT=4567- Custom server port
Location: .tm-ai/memory.db (auto-created)
- Stores conversation context
- Tag-based knowledge organization
- Project-specific memory isolation
- Limen validation for all operations
- No secret file access (.env, .aethercodex, keys)
- Sandboxed command execution with allowlisting
- Local-only operations - no external data transmission beyond API calls
- Dynamic Context Optimization: Real-time refinement during conversations
- Temperature-Based Reasoning: Adjust responsiveness (0.0-2.0 scale) for coding/math/creative tasks
- Tag-Based Focus: Precision execution through targeted note retrieval
- Hermetic Resonance: Aligns context with current hermetic focus and intent
- State Persistence: Maintains conversation context across interactions
- Task Context Propagation: Seamless context passing between task phases with step result persistence
"Precision in code plane = precision in astral plane."
# Place the bundle in TextMate's bundle directory
cp -R AetherCodex.tmbundle ~/Library/Application\ Support/Avian/Bundles/Create .aethercodex in your project root:
api-key: YOUR_DEEPSEEK_KEY
api-url: 'https://api.deepseek.com/v1/chat/completions'
port: 4567
model: deepseek-chat
memory-db: .tm-ai/memory.dbEnsure Ruby gems are available:
bundle install- Shortcut:
⌘⌥O- Opens the Oracle Chamber - Menu:
Bundles → AetherCodex → Invoke Oracle
The oracle automatically perceives:
- Current file content and selection
- Project file structure
- Git status and changes
- Previous conversation history
Code Analysis:
Analyze this function for performance issues
Refactoring:
Extract this logic into a reusable module
Documentation:
Add comprehensive JSDoc comments to this file
Multi-file Operations:
Create a test suite for this component with setup and teardown
Memory Operations:
Remember this pattern as "user-auth-flow" for future reference
Hermetic Symbolic Analysis:
Find all method definitions in this file using AST patterns
Apply semantic rewrite to add logging to all methods
Extract hermetic symbols and forecast transformations
- Comprehensive Guide - Complete alchemical task orchestration system
- API Reference - Detailed technical documentation
- Practical Guide - Step-by-step examples and patterns
- Comprehensive Guide - Overview and architecture
- API Reference - Detailed method documentation
- Practical Guide - Usage examples and patterns
- Integration Guide - System integration
- Lexicon Resonantia Guide - Hermetic tag×file resonance matrix
- Demo Script - Live demonstration
- Lexicon Resonantia Demo - Resonance pattern examples
DEEPSEEK_API_KEY- Alternative to.aethercodexTM_AI_DEBUG=1- Enable debug loggingTM_AI_PORT=4567- Custom server port
Create .env.run_command in your project root to inject custom environment variables when the AI executes commands:
# Example .env.run_command
PATH="/custom/path:$PATH"
GEM_HOME=/path/to/gems
RUBY_VERSION=3.1.7
BUNDLE_GEMFILE=Support/GemfileThis file is automatically sourced when executing run_command operations, allowing you to:
- Set custom Library paths
- Configure environment-specific variables
- Ensure proper execution context
- Maintain consistent execution environment across AI operations
Add allowed-commands to your .aethercodex configuration to customize which commands can be executed:
# Allow specific additional commands
allowed-commands:
- npm
- yarn
- python3
- pip3
- docker
- docker-compose
- node
- npx
# Or allow ALL commands (use with caution!)
allowed-commands: "*"Features:
- Merges with defaults: Custom commands are added to the existing allowlist
- Wildcard support: Use
"*"to allow all commands (bypasses security) - Regex patterns: Supports regular expressions for complex matching
- Project-specific: Each project can have its own command allowlist
Default allowed commands: rspec, rubocop, git, ls, cat, mkdir, $TM_QUERY, echo, grep, bundle exec ruby, bundle exec irb, bundle exec rspec, ruby, irb, cd, curl, ag, find, tail, ast-grep, which, wc, oc, file, hexdump
Location: .tm-ai/memory.db (auto-created)
- Stores conversation context
- Tag-based knowledge organization
- Project-specific memory isolation
"Precision in code plane = precision in astral plane."