← All guides
· 9 min read

4 GitHub Repos That Level Up Claude Code (Setup Guide)

Install Trail-code (graft), Agency Agents, Codebase Memory MCP and OpenMontage for Claude Code. What each one does, setup steps, and how to check it works.

4 GitHub repos that level up Claude Code

These four open-source repos each fix a different weak spot in Claude Code: it gets lost in big codebases, it burns tokens re-reading files, it does everything as one generalist, and it can’t make videos. This guide sets up each one and shows you how to check it worked.

Each one installs with a few commands. You need Claude Code, a terminal and Node.js; OpenMontage also needs Python and FFmpeg.

What you’re building

RepoWhat it gives Claude CodeStarsLicense
Trail-code (previously graft)A map of your code, plus notes your team has learned about it10kMIT
Agency Agents230+ ready-made specialist agents: frontend, design, research, testing and more160kMIT
Codebase Memory MCPA knowledge graph of your codebase that Claude queries instead of opening files46.6kMIT
OpenMontageA video production pipeline your coding agent runs: research, script, voice, edit68.5kAGPL-3.0

Star counts are from the GitHub API on 15 October 2026.

An MCP server (Model Context Protocol) is a small program that gives Claude Code extra tools it can call, like “find who calls this function”. A code graph is an index of your code: every function, and which other functions call it.

Your prompt → Claude Code → asks the graph / picks a specialist agent → reads only what it needs → answer

Before you start: the honest catch

  • Don’t install all four on day one. Start with the one that fixes your actual problem. Trail-code and Codebase Memory MCP both give Claude a code graph, so most people only need one of them.
  • In the reel I said graft makes Claude Code “4x cheaper and 3x faster”. The README’s own benchmark is more modest, and it’s the one to go by: across 162 runs, 32% lower cost, 42% fewer uncached input tokens and 60% less time.
  • Trail-code writes outside your project. It adds hooks to ~/.claude/settings.json, so they run in every repo you open with Claude Code. Its --dry-run flag shows exactly what it will write first.
  • OpenMontage is free and can make videos with zero API keys, but AI providers cost money. Once you add image or video providers, the README estimates $0.15 to $1.50 a video, and $1 to $3 with the full setup.

Step 1: Give Claude a map of your code with Trail-code

Trail-code is graft’s new name. It parses your repo into a map of every file and function and who calls what. With each prompt, Claude gets pointers to the right files instead of opening one file after another. It needs no API key and runs on your machine.

How Trail-code works: without it the agent searches blind each session, with it the agent reads the graft map and saves learnings
Without Trail-code every session starts from zero. With it, the agent starts from the map and from what the team already learned. Source: Trail-code repo.
  1. Check you have Node.js 20 or newer (the package requires it):
node --version
  1. Install the CLI once:
npm install -g @trailhq/trail-code
  1. In your project folder, preview what it will set up, then run it for real:
trail init --dry-run
trail init

trail init builds the map, creates a .trail/ folder for learnings, and wires Claude Code with a statusline and hooks. It never touches your CLAUDE.md.

  1. Restart Claude Code in that folder.

Check it worked: the Claude Code statusline shows the map’s size and how many learnings the repo has. Ask Claude “what calls the login function?” and it should answer from the map with file and line numbers.

Already had graft installed? Nothing breaks. The graft command still works, and graft upgrade adds the trail command next to it.

Step 2: Add specialist agents with Agency Agents

Agency Agents is a collection of 230+ agent files. Each one is a specialist with its own workflow and deliverables: Frontend Developer, UI Designer, Application Security Engineer, Reality Checker and many more.

One repo, an agent for each kind of work. From the reel.
  1. Clone the repo:
git clone https://github.com/msitarzewski/agency-agents.git
cd agency-agents
  1. Install only the teams you need. For example, engineering and security:
./scripts/install.sh --tool claude-code --division engineering,security

Run ./scripts/install.sh --list teams to see every team and its agent count. To install everything, drop the --division flag. The agents are copied into ~/.claude/agents/.

Prefer not to use the terminal? The README’s recommended option is the Agency Agents desktop app for macOS, Linux and Windows, which installs agents with a click.

Check it worked: run ls ~/.claude/agents/ and you’ll see the agent files. In Claude Code, type /agents to list them, or just ask: “Activate Frontend Developer mode and help me build a React component.”

Step 3: Save tokens with Codebase Memory MCP

Codebase Memory MCP indexes your code into a persistent knowledge graph: functions, classes, imports, HTTP routes and how they connect, across 162 languages. Claude asks the graph instead of reading files one by one.

CBM Lens showing a C source file next to its file impact summary and a graph of its direct dependencies
The graph behind it, in the project’s CBM Lens viewer: source on one side, what depends on the file on the other. Source: Codebase Memory MCP repo.

How much does it save? In the project’s five-query comparison, about 3,400 tokens versus about 412,000 when exploring file by file, roughly 120x fewer. A separate study across 31 repositories, linked in the README, reports 10x fewer tokens. What you save depends on the questions you ask.

  1. Install the latest release (macOS or Linux):
curl -fsSL https://raw.githubusercontent.com/DeusData/codebase-memory-mcp/main/install.sh | bash

The installer finds the coding agents you have and adds the MCP server to them. On Windows, the README has a PowerShell installer.

  1. Restart Claude Code.
  2. In your project, tell Claude: “Index this project.”

Check it worked: type /mcp in Claude Code and the new codebase memory server should be listed as connected. Then ask “what calls <a function in your code>?” and Claude should answer with a call chain.

Already using Trail-code? You probably don’t need this as well. Both give Claude a code graph. Pick the one whose answers you like better on your own repo.

Step 4: Turn your agent into a video studio with OpenMontage

OpenMontage is an agent-driven video production system: 12 production pipelines and 100+ tools. You give it an idea, and your coding agent researches it, writes and narrates a script, finds music, adds subtitles and renders the final video.

Idea in, finished video out. From the reel.
  1. Install the prerequisites: Python 3.10+, FFmpeg (brew install ffmpeg on a Mac) and Node.js 18+.
  2. Clone and set it up:
git clone https://github.com/calesthio/OpenMontage.git
cd OpenMontage
make setup
  1. Open the folder in Claude Code and give it an idea. This one needs no API keys:
Make a 45-second animated explainer about why the sky is blue

With zero keys it uses free tools: Piper for narration, free stock and archive footage, and Remotion to put the video together.

OpenMontage's storyboard paused at the script stage, waiting for the user's approval
The pipeline stops at the script and waits for your OK before it renders anything. Source: OpenMontage repo.

Check it worked: Claude walks you through the pipeline and asks for your approval at each creative decision. The finished video lands under projects/<project-name>/renders/, and it runs its own checks (frame samples, audio levels, subtitles) before showing you.

The end of the pipeline: a complete video file. From the reel.

Troubleshooting

trail: command not found after installing

Your global npm folder isn’t on your PATH. Run npm prefix -g and add its bin folder to your PATH, or open a new terminal.

trail init wrote nothing

It writes nothing when there’s no interactive terminal to ask you in (CI, a Dockerfile, a piped shell). Run it in a normal terminal, or pass --agents claude to say which agent to wire.

Claude doesn’t see the new agents or MCP tools

Claude Code loads agents and MCP servers when it starts. Quit and reopen it in the project folder, then check /agents and /mcp.

Windows Defender flags Codebase Memory MCP

The README calls this a known false positive (Trojan:Script/Wacatac.B!ml) and explains how to verify the release yourself with the published SHA-256 checksums.

OpenMontage npm install fails on Windows

The README’s fix for ERR_INVALID_ARG_TYPE: use npx --yes npm install instead.

What else you can do with it

  • Share Trail-code with your team: commit .claude, .mcp.json, .trail, .gitignore and .ignore. Teammates’ Claude Code then reads the repo’s learnings, and trail check flags a change that undoes a teammate’s decision before the PR.
  • Run an Agency Agents scenario. The README has full ones, like building a startup MVP with a team of agents.
  • Codebase Memory MCP ships a graph UI, so you can explore architecture and call paths visually.
  • OpenMontage can start from a video you like: “Here’s a YouTube short I love. Make me something like this, but about CRISPR.”

Quick recap

  1. Trail-code (graft): npm install -g @trailhq/trail-code, then trail init in your repo. Claude gets a code map and team learnings.
  2. Agency Agents: clone it and run ./scripts/install.sh --tool claude-code. 230+ specialist agents land in ~/.claude/agents/.
  3. Codebase Memory MCP: one install script, restart Claude Code, then “Index this project”. Pick it or Trail-code, not both.
  4. OpenMontage: git clone, make setup, then describe the video you want.
  5. Start with the one that fixes your biggest problem today.