ai-code-context-helper

作者 sansan0已验证

🚀 Desktop tool for extracting code context to enhance AI-assisted development. Visualize project structure, export multiple files with one-click, and get more accurate suggestions from AI assistants while keeping your code private.

237
Stars
60
Forks
Python
语言
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/sansan0/ai-code-context-helper

快速入门

使用 ai-code-context-helper 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

English | 中文

📝 Introduction

AI Code Context Helper is designed for anyone who needs to understand, learn, and develop code. Through visualized project structure display and one-click code export, whether you're a programming beginner, professional developer, or educator, whether you're learning to understand code, developing new features, or seeking code improvement suggestions, it helps you easily extract code context and communicate efficiently with AI assistants.

Demo GIF

🎯 Main Application Scenarios

This tool allows you to easily transfer code content to AI assistants for the following scenarios:

  • Code Learning: Understand complex project structures and operating principles, improving learning efficiency
  • Development Assistance: Get more accurate code modification and feature implementation suggestions
  • Code Review: Perform automated quality checks and performance optimization analysis
  • Refactoring Guidance: Get code improvement suggestions based on complete context
  • Problem Diagnosis: Help AI locate issues more accurately by providing the complete environment

The software runs locally, doesn't require internet connection, and won't upload any code, ensuring your code privacy. You're free to choose which AI service to use, maintaining complete control over code sharing.

💡 Core Usage Scenarios

1. Code Learning and Analysis

  1. Select Target Project Directory: Open the project you want to analyze
  2. Copy Complete Project Structure: Use the "Copy Directory Tree" function to help AI understand the overall architecture
  3. Provide Core Code Files: Select key files, use "Copy Path and Code" to provide all code at once
  4. Ask AI for Analysis: Request AI to analyze the code structure, explain how it works, or provide a learning path

2. Code Modification and Development

  1. Locate Modules to Modify: Find related files through the visual tree structure
  2. Export Related Code Context: Select multiple related files simultaneously (e.g., models, controllers, and views)
  3. Describe Modification Requirements: Clearly describe to AI the functionality you want to implement or the problem to fix
  4. Get Complete Implementation Solution: AI will provide accurate code modification suggestions based on the complete context

✨ Main Features

Intelligent File Management

  • Directory Tree Visualization: Tree view displays project file structure
  • File Statistics: Automatically shows file line count and size, making it easy to assess code volume
  • File Type Recognition: Automatically detects text file encoding, distinguishes between text and binary files
  • Advanced Filtering: Supports regular expression filtering, .gitignore rules application, and directory depth limits for handling large projects

Flexible Selection and Export

  • Multi-selection Support: Select individual files, multiple files, or entire directories and their subdirectories
  • Mouse Selection Mode: Select/deselect multiple files at once by dragging the mouse
  • Batch Export: Support exporting paths, code, or both for selected content
  • Context Menu: Provides various copy options suitable for different development scenarios
  • Copy Content Statistics: Status bar displays the number of files and total lines involved in the operation

Integration and Convenience

  • System Tray Integration: Minimize to system tray, always available without occupying desktop space
  • Global Hotkey: Press Ctrl+2 hotkey in any application to show/hide the application window
  • Keep on Top Option: Keep the window above other applications for easier operation
  • File System Integration: Open folders in explorer or launch command line terminals directly from the context menu
  • Auto-save Mechanism: Automatically saves settings every 30 seconds to prevent configuration loss

Customization and Ease of Use

  • Multi-language Support: Supports switching between Chinese and English
  • Output Format Customization: Configure code and path prefix/suffix formats
  • Advanced Options Toggle: Hide/show advanced settings to maximize directory tree display space
  • Lightweight Implementation: Low resource usage, quick startup, seamless integration into existing development workflows

🔑 Keyboard Shortcuts

  • Ctrl+C: Copy path and code of selected files
  • Ctrl+B: Copy filename of selected files
  • Ctrl+F: Open selected folder in file explorer
  • Ctrl+T: Open command line terminal in selected folder
  • Ctrl+2: Global hotkey to show/hide the application from anywhere
  • Tree State Persistence: The application remembers the expanded state of each project directory between sessions

🔧 Installation and Usage

Download and Install

  1. Download the latest version from the Releases page
  2. Extract the files to any location
  3. Run AI Code Context Helper.exe to start the application

How to Use

  1. Click the "Browse..." button to select a project root directory
  2. Check the files or folders you want to share in the directory tree
  3. Right-click and select "Copy Path and Code" (or use other copy options)
  4. Paste the copied content into an AI assistant (like ChatGPT, Claude, etc.) conversation
  5. Ask questions or request code modification suggestions based on the provided code context

🛠️ Building from Source

Requirements

  • Python 3.9+
  • Poetry package manager

Install Dependencies

git clone https://github.com/sansan0/ai-code-context-helper.git
cd ai-code-context-helper
poetry install

Build Executable

poetry run python -m cx_Freeze build

📄 License

This project is licensed under the GPL-3.0 License - see the LICENSE file for details

常见问题

What is ai-code-context-helper?

ai-code-context-helper is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by sansan0. 🚀 Desktop tool for extracting code context to enhance AI-assisted development. Visualize project structure, export multiple files with one-click, and get more accurate suggestions from AI assistants while keeping your code private. It has 237 GitHub stars.

Is ai-code-context-helper safe to use?

Yes. ai-code-context-helper passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install ai-code-context-helper?

Clone the repository with "git clone https://github.com/sansan0/ai-code-context-helper" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is ai-code-context-helper written in?

ai-code-context-helper is primarily written in Python. It is open-source under sansan0 on GitHub, so you can review or fork the full source.

Are there alternatives to ai-code-context-helper?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh ai-code-context-helper against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI 智能体
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情