P0-2: Kill blank_start: true in config — the nuclear option that wipes ALL learned knowledge on every run. Replaced with memory_hygiene() selective amnesia that prunes low-confidence entries while preserving high-confidence learned patterns. P0-3: Purge all root-level garbage scripts (scratch.py, test_run.py, profile_dump.xml, resp_dump.json, pytest_output.log, test_output.log, coverage.xml, coverage_e2e.json). Updated .gitignore to prevent reaccumulation. P2-2: Replace piecemeal BANNED_SCREENS/REQUIRED_MARKERS with complete Action Compatibility Matrix (VALID_SCREENS whitelist). Every interaction intent now has an explicit set of valid screens. Covers like, comment, follow, unfollow, save, repost across all 14 screen types. P2-3: Remove non-deterministic 'press back' transitions from HD Map topology for OTHER_PROFILE, POST_DETAIL, and SEARCH_RESULTS. Add tab transitions to POST_DETAIL. P2-4: Replace ScreenMemoryDB nuclear 200-entry wipe with LRU eviction. store_screen() now accepts confidence parameter. TDD: 22 new tests (all GREEN), 240 unit/tdd/integration passed, 0 regressions. E2E: 288 passed (+2 fixed), 6 pre-existing LIE DETECTED failures.
GramPilot
Full Self-Driving for Instagram.
An autonomous Agentic Engine that navigates the Instagram App like a human.
Originally derived from GramAddict, completely re-architected.
Created by Marc Mintel <marc@mintel.me>
🏎️ What is GramPilot?
GramPilot is not a traditional script. Traditional bots rely on fixed UI locators (like XPaths) or external APIs, causing them to crash with every Instagram update or get banned within days.
GramPilot introduces a Telepathic Full Self-Driving (FSD) approach to UI navigation: It uses a 3-Stage Resolution Cascade backed by CPU Fast-Paths, Ollama Vector Similarity, and OpenRouter LLMs (Gemini/Qwen) to "read" the screen, understand context, and learn new UI layouts asynchronously.
If Instagram updates its app and moves a button, GramPilot doesn't crash. It falls back to its Agentic LLM reasoning, dynamically reasons about the new layout using raw XML structure, clicks the right button, and never hallucinates on that button again.
✨ Core Features
- 🚫 Zero Limits Configuration: Forget about configuring "max_likes" or "delays". GramPilot uses a Dopamine Pacing Engine to simulate human boredom. If the content isn't interesting, it skips it or ends the session early.
- 🎯 Mission-Driven Navigation: Say goodbye to abstract goal configurations. Define a
strategy(likeaggressive_growthornurture_community) inconfig.yml, and the Goal Decomposer Engine automatically orchestrates the optimal routing and task allocation using enabled plugins. - ⚖️ Active Inference (Shadow Mode): The bot continuously predicts the outcome of its clicks. If it lands on a popup instead of a profile, it registers a "Prediction Error", presses back, and dynamically recalibrates without panicking.
- ⛩️ Telepathic Engine: A strictly tiered resolution cascade (Keyword -> Vectors -> LLM) that ensures 90% of navigation happens at 0-token cost while maintaining fallback AI resilience.
- 🧬 Resonance Oracle: The bot only interacts with content that matches a pre-defined persona aesthetic, completely bypassing spam or low-quality content.
- 🛡️ Honeypot Radome: Instagram plants invisible, 1x1 pixel trap buttons for bots. Our Radome Sensor sanitizes the XML view before the agent ever sees it, mathematically guaranteeing evasion of tracker traps.
🏗️ Project Status (May 2026)
The engine has undergone a massive stabilization refactor to achieve 100% TDD compliance on critical navigation paths.
- Structural Hardening: Purged non-deterministic "Geometric Fallbacks" for navigation tabs. Replaced with strict Resource ID -> Semantic Content validation.
- Grid-Lock Recovery: Implemented O(1) structural fast-paths for grid interactions and state-aware Adaptive Snap logic to prevent erroneous back-presses on profile grids.
- Navigation Reliability: Resolved 'Identity Shadowing' bugs to ensure deterministic detection of
OWN_PROFILE. - Autonomous Recovery: Hardened the
SituationalAwarenessEngine(SAE) to handle anomaly states including system dialogs and persistent survey modals.
🚀 Quick Start
Prerequisites
- A physical Android device or emulator
- Python 3.10+
adb(Android Debug Bridge) installed and added to your PATH
Installation
-
Clone the repository:
git clone https://github.com/marcmintel/grampilot.git cd grampilot -
Initialize Environment & Dependencies:
python3 -m venv .venv source .venv/bin/activate pip install -r requirements.txt -
Start the Engine:
python3 run.py --config config.yml
Note
Unlike legacy bots, GramPilot requires zero maintenance. It will automatically re-learn the UI over time using its integrated Qdrant memory vectors.