By ylxmf2005
Search and inspect past coding-agent sessions from Codex, Claude Code, Cursor, Gemini, Aider, and ChatGPT using the `cass` CLI to recover project context, past fixes, or build evidence handoffs
让强模型放手工作,让人保留方向、边界与裁决。
面向 Codex、Claude Code 和 Pi 的工程 Skills 与安装 CLI。
longrein install
├── 7 个工程 Skills
├── job + soul
└── Codex · Claude Code · Pi
需要 Node.js 18 或更高版本:
npm install -g longrein
longrein install -y
longrein status
longrein install -y 会把全部 Skills 与 job、soul 常驻规则安装到 Codex 和 Claude Code,并跳过可选 Extension。安装完成后重新打开宿主,让新能力进入会话。
方向、范围或关键关系还不可靠时,可以直接开始:
| Claude Code | Codex | Pi |
|---|---|---|
/shape <你的请求> | $shape <你的请求> | /skill:shape <你的请求> |
宿主也可以根据每个 Skill 的 description 自动选择能力。
Longrein 不规定固定阶段。Agent 根据当前真正缺少的能力选择 Skill,并从真实对象与可检查证据继续工作。
| Skill | 负责什么 |
|---|---|
shape | 方向、边界或关键前提还不足以承诺时,接触现实并形成可信 Context |
grill | 方向已经成形时,分轮推进决策前沿,直到用户取得共同理解 |
dev | 从已成立的承诺进入代码,把行为改到根因需要的尺度 |
test | 从真实入口走到系统终态,以可重放证据判断承诺是否成立 |
review | 对需求、设计、代码或交付物做独立裁决 |
walkthrough | 沿承重关系讲清非平凡对象,让用户能够继续判断 |
evolution | 从真实轨迹提炼值得改变未来工作的经验 |
job 负责长期协作、权威来源与交接纪律;soul 保存面向现实、克制复杂度并尊重用户决定的工程人格。
需要跨会话交接的任务使用 context.md 保存原始请求、现实坐标、Goal、Scope、Non-goals 和 Current Artifacts。专业结论留在拥有它的产物中,context.md 只提供当前承诺与入口。
实现、测试、评审和讲解从这些来源进入真实对象。简单且上下文清楚的工作无需为了形式创建任务文件。
交互安装可以选择宿主、Skills 和 Extension 组件:
longrein install
脚本或自动化环境可以明确选择:
longrein install shape dev test -y --codex
longrein install -y --claude
longrein install -y --pi
默认使用复制模式;开发 checkout 可以使用 --link。遇到同名但不属于 Longrein 的 Skill 时,安装不会静默覆盖。
Extension 编排 FastCtx、CodeGraph、cass,以及提供 coding-agent-session-search 的 longrein-extension 插件:
longrein install -y --extensions
longrein extension install codegraph cass --yes
longrein extension status
Longrein 调用这些项目的官方安装渠道,不维护上游 fork,也不会自动为仓库运行 codegraph init。各组件与宿主的具体支持情况见 Codex 推荐 Extension。
longrein update
longrein doctor
longrein uninstall shape dev
longrein uninstall --all
不带 --all 时只移除指定 Skills。uninstall --all 清理 Longrein 拥有的 Skills、规则块、插件、marketplace、旧 MCP 注册与旧服务;它保留独立安装的 FastCtx、CodeGraph、cass,也保留项目中的 context.md、专业产物和旧任务数据。
完整命令与宿主选项见 CLI 文档。
| 文档 | 内容 |
|---|---|
| 文档入口 | 文档导航与权威来源 |
| 安装与首次使用 | 安装、验证、更新与卸载 |
| CLI | 命令、宿主与目标选择 |
| Codex 推荐 Extension | 可选的本地检索、代码关系与历史能力 |
git clone https://github.com/ylxmf2005/Longrein.git
cd Longrein
npm install
npm run typecheck
npm test
npm link
longrein install --link -y
问题与建议请提交到 GitHub Issues。
MIT
Based on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub ylxmf2005/longrein --plugin longrein-extensionAstaNews — daily AI full-stack digest agent: papers, model releases, evals, infra/serving, MaaS changelogs, agents, embodied AI, safety, product/business, devtools. Community-extensible source registry.
基于 Anthropic 论文的双轨 Agent 系统,用于指导 AI Agent 进行增量开发
Battle-tested configuration system for Claude Code agents: 28 architectural principles (incl. P-28 Feature-Layer Architecture for project-knowledge-as-a-navigable-tree), 19 safety hooks, 23 skills (incl. /layer-new + /feature-new for ULTRAPACK-style feature narratives), 16 alternative comparisons, 12 templates (incl. extended kb-skeleton with docs/layers/), diagnostic scripts (incl. build_kb_graph.py + validate_kb_links.py). Pairs with mclaude for multi-session coordination.
Meta-tools for Claude Code configuration and customization
Feature development with code-architect/explorer/reviewer agents, CLAUDE.md audit and session learnings, and Agent Skills creation with eval benchmarking from Anthropic.
Two-loop skill pipeline for Claude Code. Inner loop (plan-interview, intent-framed-agent, context-surfing, verify-gate, self-healing, simplify-and-harden) catches failures in-session — including active runtime recovery via self-healing when a command, test, build, helper, env, or external service fails mid-task. Outer loop (learning-aggregator, harness-updater, eval-creator, pre-flight-check) captures recurring patterns, promotes them to CLAUDE.md as permanent rules, and turns failures into regression tests.
Ultra-compressed communication mode. Cuts 65% of output tokens (measured) while keeping full technical accuracy by speaking like a caveman.