Configs2026年9月12日·1 分钟阅读

Octotree — GitHub Code Tree Navigation Extension

A browser extension that adds an IDE-like file tree sidebar to GitHub repositories for faster code browsing and navigation.

Agent 就绪

Agent 可直接安装

这个资产可安装;Agent 先选择当前运行时、检查安装计划,再运行匹配命令。

Native · 98/100策略:允许
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Single
信任
信任等级:Established
入口
Octotree
直接安装命令
npx -y tokrepo@latest install 7e3d616c-aef0-11f1-9bc6-00163e2b0d79 --target codex

先 dry-run 确认安装计划,再运行此命令。

Introduction

Octotree adds a familiar file tree sidebar to GitHub, giving developers an IDE-like navigation experience when browsing repositories in the browser. Instead of clicking through directories one level at a time, you can see and jump to any file in the project instantly.

What Octotree Does

  • Displays a collapsible file tree panel on the left side of any GitHub repository page
  • Enables quick file search and navigation within the tree
  • Supports lazy-loading of large repositories to keep performance smooth
  • Provides code bookmarking for frequently accessed files
  • Works with GitHub Enterprise in addition to github.com

Architecture Overview

Octotree is a browser extension built with JavaScript that injects a sidebar panel into GitHub pages. It uses the GitHub API to fetch the repository file tree and renders it as an interactive tree component. The extension caches tree data locally to reduce API calls and handles pagination for repositories with thousands of files.

Self-Hosting & Configuration

  • Install from Chrome Web Store, Firefox Add-ons, or Edge Add-ons
  • Optionally provide a GitHub personal access token for higher API rate limits
  • Configure sidebar width, hotkey, and appearance in the options page
  • Add GitHub Enterprise domains to extend functionality to private instances
  • The free version covers most features; a Pro version adds additional capabilities

Key Features

  • Instant file tree sidebar for any GitHub repository
  • File search within the tree using fuzzy matching
  • Pull request code review with file-level navigation
  • Bookmark files across repositories for quick access
  • Lazy loading handles repositories with tens of thousands of files

Comparison with Similar Tools

  • Gitako — lightweight tree sidebar; Octotree adds bookmarks and PR review features
  • GitHub's built-in file tree — GitHub added a basic tree in 2022; Octotree offers more features like search and bookmarks
  • Refined GitHub — focuses on UI improvements across GitHub; Octotree specializes in file navigation
  • Sourcegraph Extension — adds code intelligence and cross-repo search; Octotree focuses on tree navigation

FAQ

Q: Does Octotree work with private repositories? A: Yes. You need to provide a personal access token with repo scope in the extension settings.

Q: Is Octotree free? A: The core file tree feature is free. Octotree Pro adds code bookmarking, multiple tabs, and other advanced features for a subscription.

Q: Does it work with GitHub Enterprise? A: Yes. Add your Enterprise domain in the settings and provide an appropriate access token.

Q: How does Octotree handle very large repositories? A: It uses lazy loading and caching to fetch directory contents on demand rather than loading the entire tree at once.

Sources

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产