-
Notifications
You must be signed in to change notification settings - Fork 0
hyp difflog_en.md
maoxiaoyue edited this page May 14, 2026
·
1 revision
v0.8.5+This command is a new feature added in HypGo v0.8.5 and is not available in v0.8.1.
Record all AI (or human) changes to the project in a daily log file. Toggle on/off — when off, saves tokens; when on, tracks the full process.
hyp diff-log # Record current uncommitted changes hyp diff-log --on # Enable tracking (AI tools will auto-log) hyp diff-log --off # Disable tracking (saves tokens) hyp diff-log --status # Show current setting
| Flag | Description |
|---|---|
--on |
Enable diff-log, write to .hyp/config.json
|
--off |
Disable diff-log |
--status |
Show current on/off state |
| (no flag) | Execute one recording |
logs/ai.diff_20260410.log
One file per day. Multiple recordings on the same day append to the same file.
Setting stored in .hyp/config.json (project-level):
{
"diff_log": true
}hyp ai-rules generated AGENTS.md includes:
- After making changes: Run `hyp diff-log` to log your changes
All AI tools see this instruction and auto-run hyp diff-log after modifications.
AGENTS.md does NOT include the instruction — AI doesn't know to log, saving ~20 tokens/interaction.
# Early development: enable tracking hyp diff-log --on hyp ai-rules # Update AI config files # Stable phase: disable to save tokens hyp diff-log --off hyp ai-rules # Remove tracking instruction # Ad-hoc check hyp diff-log # Manual one-time recording regardless of setting
- hyp ai-rules — Generate AI config files (affected by diff-log setting)
- hyp impact — Analyze change impact before modifying
設計文件
套件
- config — 設定
- context — 請求上下文
- router — 路由器
- server — 伺服器
- middleware — 中介層
- websocket — WebSocket
- hidb — 資料庫 ORM
- hidb/cassandra — Cassandra
- logger — 日誌
- json — JSON 處理
- grpc — gRPC
AI 協作工具鏈
- schema — Schema-first 路由
- manifest — 專案 Manifest
- contract — Contract Testing
- errors — Typed Error Catalog
- migrate — Migration Diff
- scaffold — 智慧 Scaffold
- airules — AI Rules
CLI 命令
- hyp 總覽
- hyp new
- hyp api
- hyp run
- hyp restart
- hyp generate
- hyp migrate
- hyp context
- hyp ai-rules
- hyp chkcomment
- hyp impact
- hyp docker
- hyp health
- hyp version
- hyp difflog
Design Docs
Packages
- config — Configuration
- context — Request Context
- router — Router
- server — Server
- middleware — Middleware
- websocket — WebSocket
- hidb — Database ORM
- hidb/cassandra - Cassandra 5.0
- logger — Logger
- json — JSON
- grpc — gRPC
AI Collaboration Toolchain
- schema — Schema-first Routing
- manifest — Project Manifest
- contract — Contract Testing
- errors — Typed Error Catalog
- migrate — Migration Diff
- scaffold — Smart Scaffold
- airules — AI Rules
CLI Commands