whatisgithub

What is mega-tron?

mega-edo/mega-tron — explained in plain English

Analysis updated 2026-05-18

17PythonAudience · developerComplexity · 3/5LicenseSetup · moderate

In one sentence

A shared skill layer for Codex, Claude Code, and Gemini CLI that only loads relevant skills per prompt and tracks which ones actually help.

Mindmap

mindmap
  root((MEGA Tron))
    What it does
      Shared skill layer
      Works across 3 AI CLIs
      Cuts wasted tokens
    Tech stack
      Python
    Use cases
      Sync skills across hosts
      Track skill performance
      Auto archive broken skills
    Audience
      Developers
      Codex users
      Claude Code users

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Cut the token cost of loading many AI assistant skills by only injecting the ones relevant to your current prompt.

USE CASE 2

Keep the same skill definitions in sync across Codex, Claude Code, and Gemini CLI instead of maintaining three copies.

USE CASE 3

See a dashboard of which skills are actually helping versus silently failing, and retire the broken ones automatically.

What is it built with?

Python

How does it compare?

mega-edo/mega-tron0petru/sentimoalingalingling/akasha-wechat
Stars171717
LanguagePythonPythonPython
Setup difficultymoderatemoderatehard
Complexity3/53/54/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires Python 3.11+ and at least one supported host CLI (Codex, Claude Code, or Gemini CLI) already installed.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

So what is it?

MEGA Tron is a local layer that sits above Codex, Claude Code, and Gemini CLI to manage the custom skills (also called slash commands or agents) you load into those tools. It addresses three problems that get worse as you accumulate more skills. The first problem is token waste. When you type even a simple message, the host CLI injects a large block of skill metadata into the request, regardless of whether those skills are relevant. MEGA Tron replaces that fixed injection with a per-turn semantic router: your prompt is embedded and ranked against every skill in your pool, and only the top-K relevant ones are sent along. According to the project's benchmarks, this reduces catalog token cost from roughly 1,200 to 3,500 tokens per turn (native hosts) down to about 100 to 600 tokens, while maintaining 0.96 coverage of the skills that were actually needed. The second problem is host isolation. If you maintain skills in Codex, you have to separately maintain them in Claude Code and Gemini CLI. MEGA Tron stores all skills in a single master pool directory and creates symlinks from each host's skill folder to that pool. Editing a skill in one place updates it everywhere. The third problem is that none of the three hosts records whether a skill actually helped. MEGA Tron captures a verdict for every skill use, labeling it HELPFUL, HARMFUL, or NEUTRAL, along with the prompt context and which host ran it. These verdicts feed back into ranking: a skill that fails repeatedly across sessions gets auto-archived, a skill that performs well in Claude lifts its rank in Codex when a similar prompt arrives. A local dashboard web interface shows which skills are performing, which have broken silently, and how performance changes over time. The easiest installation path is to tell your AI coding assistant to follow the agent installation guide linked in the repository. The tool requires Python 3.11 or later and is licensed under Apache 2.0.

Copy-paste prompts

Prompt 1
install or update mega-tron for me following https://github.com/mega-edo/mega-tron/blob/main/docs/agent%20installation.md
Prompt 2
Explain how MEGA Tron's per-turn router decides which skills to load into my prompt.
Prompt 3
Show me how to open the MEGA Tron dashboard and read the HELPFUL and HARMFUL verdicts for my skills.
Prompt 4
Walk me through setting up MEGA Tron so my skills stay in sync between Claude Code and Codex.

Frequently asked questions

What is mega-tron?

A shared skill layer for Codex, Claude Code, and Gemini CLI that only loads relevant skills per prompt and tracks which ones actually help.

What language is mega-tron written in?

Mainly Python. The stack also includes Python.

What license does mega-tron use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is mega-tron to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is mega-tron for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.