ClaudeCodeTask banner
hjkl950217 hjkl950217

ClaudeCodeTask

Development community

Description

cct — Claude Code 任务选择器:一条命令列出所有 Claude Code 任务文件夹与历史会话,全屏卡片网格选择器,选中自动 cd 并启动 claude(PowerShell TUI + C# 内核)

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

cct — Claude Code Task Selector

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE) [![Platform: Windows](https://img.shields.io/badge/Platform-Windows-0078D6?logo=windows&logoColor=white)](https://github.com/hjkl950217/ClaudeCodeTask) [![PowerShell 7.6+](https://img.shields.io/badge/PowerShell-7.6%2B-5391FE?logo=powershell&logoColor=white)](https://github.com/PowerShell/PowerShell) [![.NET 8](https://img.shields.io/badge/.NET-8-512BD4?logo=dotnet&logoColor=white)](https://dotnet.microsoft.com/) [![Pester 6](https://img.shields.io/badge/tested%20with-Pester%206-brightgreen)](https://pester.dev) [![GitHub stars](https://img.shields.io/github/stars/hjkl950217/ClaudeCodeTask?style=social)](https://github.com/hjkl950217/ClaudeCodeTask) [![GitHub top language](https://img.shields.io/github/languages/top/hjkl950217/ClaudeCodeTask)](https://github.com/hjkl950217/ClaudeCodeTask) [![PSGallery](https://img.shields.io/powershellgallery/v/ClaudeCodeTask.UI?label=PSGallery&logo=powershell&logoColor=white)](https://www.powershellgallery.com/packages/ClaudeCodeTask.UI) [![Downloads](https://img.shields.io/powershellgallery/dt/ClaudeCodeTask.UI?label=Downloads)](https://www.powershellgallery.com/packages/ClaudeCodeTask.UI)

一条命令列出所有 Claude Code 任务文件夹,选中自动 `cd` 并启动 `claude`。

主要测试平台:Windows(Windows 11 / PowerShell 7.6)。其他平台理论上可运行,但未系统验证。

效果预览

![cct 选择器界面](cct-selector.png)

功能

  • 全屏卡片网格选择器,键盘导航、实时搜索过滤
  • 自动聚合同一任务目录的会话:手动命名项优先,AI 自动标题保底
  • 支持会话中途 cd 到子目录——列表按存储目录分组,恢复目标指向子目录
  • 退出 claude 后终端留在任务目录
  • 增量缓存:热启动扫描加速 ~65-73%

技术亮点

  • 预编译 C# 内核(ClaudeCodeTask.Core):性能关键路径由 C# 内核 dll 承担(CctScannerV4 并行读盘 + 增量缓存),PowerShell 只做类型转换,扫描提速约 24 倍
  • 并行扫描:C# Parallel.For 并发读盘,无共享状态,单文件异常不中断整体
  • 增量缓存:文件数 ≥ 20 且缓存存在时,按 mtime+size 复用精确结果,热启动快 ~65-73%
  • 纯 .NET 目录判定Directory.Exists 替代 Test-Path,免 PowerShell 提供程序开销
  • 行 diff 重绘:选择器仅重绘变化行,覆盖式写入不清行,无闪烁

安装

前置条件