@chrono-meta/fh-gate 3.26.2 → 3.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +4 -4
- package/AGENTS.md +2 -1
- package/CLAUDE.md +84 -1329
- package/README.ja.md +2 -4
- package/README.ko.md +2 -4
- package/README.md +19 -19
- package/README.zh.md +2 -4
- package/knowledge/shared/dialogue/memory_intent_recall.md +35 -0
- package/knowledge/shared/harness-core/builtin_capability_map.md +70 -0
- package/knowledge/shared/harness-core/claude_md_full_reference.md +1277 -0
- package/knowledge/shared/harness-core/fh_module_contract.md +97 -0
- package/knowledge/shared/harness-core/multi_model_sidecar_strategy.md +64 -0
- package/knowledge/shared/learnings/subagent_invocations_log.yaml +145 -0
- package/package.json +14 -1
- package/plugins/fh-commons/.claude-plugin/plugin.json +1 -1
- package/plugins/fh-commons/skills/ko-tech-writer/SKILL.md +84 -4
- package/plugins/fh-commons/skills/ko-tech-writer/fh-module.yaml +19 -0
- package/plugins/fh-commons/skills/ko-tech-writer/fixtures/known_negative.md +73 -1
- package/plugins/fh-commons/skills/ko-tech-writer/fixtures/known_positive.md +39 -1
- package/plugins/fh-commons/skills/ko-tech-writer/fixtures/known_unclosed.md +6 -0
- package/plugins/fh-meta/.claude-plugin/plugin.json +1 -1
- package/plugins/fh-meta/CHANGELOG.md +23 -0
- package/plugins/fh-meta/skills/context-doctor/SKILL.md +1 -1
- package/plugins/fh-meta/skills/frontier-digest/SKILL.md +14 -10
- package/plugins/fh-meta/skills/frontier-digest/SKILL_detail.md +17 -1
- package/plugins/fh-meta/skills/install-doctor/SKILL.md +1 -1
- package/plugins/fh-preprep/.claude-plugin/plugin.json +1 -1
- package/plugins/fh-qp/.claude-plugin/plugin.json +1 -1
- package/scripts/fh_env_delta_scan.sh +20 -4
- package/scripts/fh_module_check.py +686 -0
- package/scripts/fixtures/frontier_digest_recall.tsv +5 -0
- package/scripts/ko_tech_writer_calibrate.py +288 -15
- package/scripts/memory_gc_report.py +270 -0
- package/scripts/probe_live_eval.sh +19 -1
- package/scripts/probe_live_eval_lib.py +174 -5
- package/scripts/resident_cost.py +1 -1
- package/scripts/selfcheck.sh +34 -1
- package/scripts/session_checklist.py +66 -0
- package/scripts/session_close_check.sh +44 -0
- package/scripts/sim_isolated_run.sh +31 -0
- package/scripts/test_claude_md_size_lanes.sh +22 -7
- package/scripts/test_env_delta_worktree_lanes.sh +61 -0
- package/scripts/test_fh_module_check_lanes.sh +581 -0
- package/scripts/test_frontier_digest_recall.sh +26 -0
- package/scripts/test_frontier_digest_recall_negctl.sh +15 -0
- package/scripts/test_ko_tech_writer_lanes.sh +1 -1
- package/scripts/test_memory_gc_report_lanes.sh +210 -0
- package/scripts/test_probe_live_eval_lanes.sh +116 -0
- package/scripts/test_regression_guard_sibling_lanes.sh +193 -0
- package/scripts/test_resident_cost_lanes.sh +1 -1
- package/scripts/test_session_checklist_lanes.sh +29 -0
- package/scripts/test_sim_isolated_run_lanes.sh +51 -0
- package/scripts/test_utterance_checklist_hook_lanes.sh +175 -0
- package/scripts/utterance_checklist_hook.py +193 -0
- package/scripts/utterance_checklist_hook.sh +31 -0
- package/templates/regression_guard.sh +30 -12
package/README.ja.md
CHANGED
|
@@ -3,14 +3,12 @@
|
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
5
|
<p align="center">
|
|
6
|
+
<a href="https://arxiv.org/abs/2609.04218"><img src="https://img.shields.io/badge/arXiv-2609.04218-b31b1b.svg" alt="arXiv:2609.04218 — the FH governance paper"></a>
|
|
6
7
|
<a href="https://github.com/walkinglabs/awesome-harness-engineering#coding-agent-harnesses"><img src="https://awesome.re/mentioned-badge.svg" alt="Mentioned in Awesome Harness Engineering"></a>
|
|
7
8
|
<a href="https://github.com/VoltAgent/awesome-agent-skills#community-skills"><img src="https://img.shields.io/badge/listed_in-awesome--agent--skills-0ea5e9.svg" alt="Listed in awesome-agent-skills"></a>
|
|
8
|
-
<a href="https://github.com/anthropics/claude-code"><img src="https://img.shields.io/badge/Claude_Code-compatible-a855f7.svg" alt="Claude Code compatible — official Claude Code repository"></a>
|
|
9
|
-
<a href="https://chrono-meta.github.io/forge-harness/"><img src="https://img.shields.io/badge/whole_map-interactive-6366f1.svg" alt="FH whole map — interactive diagrams on GitHub Pages"></a>
|
|
10
9
|
<a href="https://github.com/marketplace/actions/fh-gate-typed-ai-code-review-verdict"><img src="https://img.shields.io/badge/GitHub_Action-marketplace-2088FF.svg" alt="GitHub Actions Marketplace — fh-gate"></a>
|
|
11
10
|
<a href="https://www.npmjs.com/package/@chrono-meta/fh-gate"><img src="https://img.shields.io/npm/v/@chrono-meta/fh-gate.svg?color=cb3837" alt="npm"></a>
|
|
12
11
|
<a href="https://github.com/chrono-meta/homebrew-forge-harness"><img src="https://img.shields.io/badge/homebrew-tap-FBB040.svg" alt="Homebrew tap"></a>
|
|
13
|
-
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-22c55e.svg" alt="MIT License"></a>
|
|
14
12
|
</p>
|
|
15
13
|
|
|
16
14
|
<p align="center">
|
|
@@ -34,7 +32,7 @@
|
|
|
34
32
|
|
|
35
33
|
| 得られるもの | 実際には | 根拠 |
|
|
36
34
|
|---|---|---|
|
|
37
|
-
| **マージ前のゲート** | 変更が入る*前*に diff を判定し、その変更が何を失ったかを名指しします。判定は grep する文章ではなく、型を持つ値(`PASS · PENDING · BLOCKED · ESCALATE`)です。エージェントのコードだけでなく、自分で書いたコードにも働きます。 | 下のデモ GIF · 他人が書いたコードでの実行と穴を仕込んだテスト(サンプル数つき): [根拠](#根拠とその限界) |
|
|
35
|
+
| **マージ前のゲート** | 変更が入る*前*に diff を判定し、その変更が何を失ったかを名指しします。判定は grep する文章ではなく、型を持つ値(`PASS · PENDING · BLOCKED · ESCALATE`)です。エージェントのコードだけでなく、自分で書いたコードにも働きます。 | 下のデモ GIF · 他人が書いたコードでの実行と穴を仕込んだテスト(サンプル数つき): [根拠](#根拠とその限界) · 方法論と統制されたアブレーション: [arXiv:2609.04218](https://arxiv.org/abs/2609.04218) |
|
|
38
36
|
| **引き継がれる記憶** | `tracks/` に各セッションで学んだことが残り、2 回目のセッションは 1 回目が止まったところから始まります。 | 設計意図です。セッション終了時に `tracks/_meta/` のカードが更新され、次のセッションが起動時にそれを読みます([`CLAUDE.md`](CLAUDE.md) §Session Wrap-up)。このページには計測された効果へのリンクはありません。2 回目のセッションから現れる効果でもあります。 |
|
|
39
37
|
| **検査を選んでくれる相手** | 「このプロジェクトを診断して」または「このプロジェクトを加速して」と言うと、直すもの・入れるものの優先順位つき一覧が返ります。項目ごとに承認するまで何も変更されません。 | [`CLAUDE.md`](CLAUDE.md) に記述あり(§Field-Harness Diagnostic)。どのくらいの頻度で当たるかのベンチマークはなし |
|
|
40
38
|
|
package/README.ko.md
CHANGED
|
@@ -3,14 +3,12 @@
|
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
5
|
<p align="center">
|
|
6
|
+
<a href="https://arxiv.org/abs/2609.04218"><img src="https://img.shields.io/badge/arXiv-2609.04218-b31b1b.svg" alt="arXiv:2609.04218 — the FH governance paper"></a>
|
|
6
7
|
<a href="https://github.com/walkinglabs/awesome-harness-engineering#coding-agent-harnesses"><img src="https://awesome.re/mentioned-badge.svg" alt="Mentioned in Awesome Harness Engineering"></a>
|
|
7
8
|
<a href="https://github.com/VoltAgent/awesome-agent-skills#community-skills"><img src="https://img.shields.io/badge/listed_in-awesome--agent--skills-0ea5e9.svg" alt="Listed in awesome-agent-skills"></a>
|
|
8
|
-
<a href="https://github.com/anthropics/claude-code"><img src="https://img.shields.io/badge/Claude_Code-compatible-a855f7.svg" alt="Claude Code compatible — official Claude Code repository"></a>
|
|
9
|
-
<a href="https://chrono-meta.github.io/forge-harness/"><img src="https://img.shields.io/badge/whole_map-interactive-6366f1.svg" alt="FH whole map — interactive diagrams on GitHub Pages"></a>
|
|
10
9
|
<a href="https://github.com/marketplace/actions/fh-gate-typed-ai-code-review-verdict"><img src="https://img.shields.io/badge/GitHub_Action-marketplace-2088FF.svg" alt="GitHub Actions Marketplace — fh-gate"></a>
|
|
11
10
|
<a href="https://www.npmjs.com/package/@chrono-meta/fh-gate"><img src="https://img.shields.io/npm/v/@chrono-meta/fh-gate.svg?color=cb3837" alt="npm"></a>
|
|
12
11
|
<a href="https://github.com/chrono-meta/homebrew-forge-harness"><img src="https://img.shields.io/badge/homebrew-tap-FBB040.svg" alt="Homebrew tap"></a>
|
|
13
|
-
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-22c55e.svg" alt="MIT License"></a>
|
|
14
12
|
</p>
|
|
15
13
|
|
|
16
14
|
<p align="center">
|
|
@@ -36,7 +34,7 @@
|
|
|
36
34
|
|
|
37
35
|
| 얻는 것 | 실제로는 | 근거 |
|
|
38
36
|
|---|---|---|
|
|
39
|
-
| **머지 전 게이트** | 변경이 들어오기 *전에* diff 를 판정하고, 판정문은 그 변경이 무엇을 잃었는지 이름으로 짚어 줍니다. 판정은 grep 으로 뒤지는 글이 아니라 타입이 있는 값(`PASS · PENDING · BLOCKED · ESCALATE`)입니다. 에이전트가 쓴 코드뿐 아니라 직접 쓴 코드에도 동작합니다. | 아래 데모 GIF · 남이 쓴 코드에 돌린 실행과 구멍을 심은 시험(표본 크기 포함): [근거](#근거) |
|
|
37
|
+
| **머지 전 게이트** | 변경이 들어오기 *전에* diff 를 판정하고, 판정문은 그 변경이 무엇을 잃었는지 이름으로 짚어 줍니다. 판정은 grep 으로 뒤지는 글이 아니라 타입이 있는 값(`PASS · PENDING · BLOCKED · ESCALATE`)입니다. 에이전트가 쓴 코드뿐 아니라 직접 쓴 코드에도 동작합니다. | 아래 데모 GIF · 남이 쓴 코드에 돌린 실행과 구멍을 심은 시험(표본 크기 포함): [근거](#근거) · 방법론과 통제된 제거 실험: [arXiv:2609.04218](https://arxiv.org/abs/2609.04218) |
|
|
40
38
|
| **이어지는 기억** | `tracks/` 에 세션마다 배운 것이 남아서, 두 번째 세션이 첫 번째 세션이 멈춘 자리에서 시작합니다. | 세션을 마칠 때 `tracks/_meta/` 의 카드가 갱신되고, 다음 세션은 그 카드를 읽고 시작합니다([`CLAUDE.md`](CLAUDE.md) §Session Wrap-up). |
|
|
41
39
|
| **검사를 대신 골라 주는 상대** | "이 프로젝트 진단해줘" 또는 "이 프로젝트 가속화해줘"라고 하면 고치거나 설치할 것의 우선순위 목록을 받습니다. 항목마다 승인하기 전에는 아무것도 바뀌지 않습니다. | 절차는 [`CLAUDE.md`](CLAUDE.md) §Field-Harness Diagnostic 에 있습니다. 항목마다 승인한 뒤에만 반영합니다 |
|
|
42
40
|
|
package/README.md
CHANGED
|
@@ -3,14 +3,12 @@
|
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
5
|
<p align="center">
|
|
6
|
+
<a href="https://arxiv.org/abs/2609.04218"><img src="https://img.shields.io/badge/arXiv-2609.04218-b31b1b.svg" alt="arXiv:2609.04218 — the FH governance paper"></a>
|
|
6
7
|
<a href="https://github.com/walkinglabs/awesome-harness-engineering#coding-agent-harnesses"><img src="https://awesome.re/mentioned-badge.svg" alt="Mentioned in Awesome Harness Engineering"></a>
|
|
7
8
|
<a href="https://github.com/VoltAgent/awesome-agent-skills#community-skills"><img src="https://img.shields.io/badge/listed_in-awesome--agent--skills-0ea5e9.svg" alt="Listed in awesome-agent-skills"></a>
|
|
8
|
-
<a href="https://github.com/anthropics/claude-code"><img src="https://img.shields.io/badge/Claude_Code-compatible-a855f7.svg" alt="Claude Code compatible — official Claude Code repository"></a>
|
|
9
|
-
<a href="https://chrono-meta.github.io/forge-harness/"><img src="https://img.shields.io/badge/whole_map-interactive-6366f1.svg" alt="FH whole map — interactive diagrams on GitHub Pages"></a>
|
|
10
9
|
<a href="https://github.com/marketplace/actions/fh-gate-typed-ai-code-review-verdict"><img src="https://img.shields.io/badge/GitHub_Action-marketplace-2088FF.svg" alt="GitHub Actions Marketplace — fh-gate"></a>
|
|
11
10
|
<a href="https://www.npmjs.com/package/@chrono-meta/fh-gate"><img src="https://img.shields.io/npm/v/@chrono-meta/fh-gate.svg?color=cb3837" alt="npm"></a>
|
|
12
11
|
<a href="https://github.com/chrono-meta/homebrew-forge-harness"><img src="https://img.shields.io/badge/homebrew-tap-FBB040.svg" alt="Homebrew tap"></a>
|
|
13
|
-
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-22c55e.svg" alt="MIT License"></a>
|
|
14
12
|
</p>
|
|
15
13
|
|
|
16
14
|
<p align="center">
|
|
@@ -38,7 +36,7 @@ themselves or of finding out too late that a change was wrong. You get three thi
|
|
|
38
36
|
|
|
39
37
|
| You get | In practice | Evidence |
|
|
40
38
|
|---|---|---|
|
|
41
|
-
| **A gate before merge** | A diff is judged *before* it lands, and the verdict names what the change lost. The verdict is a typed value (`PASS · PENDING · BLOCKED · ESCALATE`), not text you grep. It works on your own code, not only an agent's. | Demo GIF below · a run on code someone else wrote and a planted-hole test, with sample sizes: [Evidence](#evidence) |
|
|
39
|
+
| **A gate before merge** | A diff is judged *before* it lands, and the verdict names what the change lost. The verdict is a typed value (`PASS · PENDING · BLOCKED · ESCALATE`), not text you grep. It works on your own code, not only an agent's. | Demo GIF below · a run on code someone else wrote and a planted-hole test, with sample sizes: [Evidence](#evidence) · method and controlled ablation: [arXiv:2609.04218](https://arxiv.org/abs/2609.04218) |
|
|
42
40
|
| **Memory that carries over** | `tracks/` keeps what each session learned, so session 2 starts where session 1 stopped. | At session end the card in `tracks/_meta/` is updated, and the next session starts from it ([`CLAUDE.md`](CLAUDE.md) §Session Wrap-up). |
|
|
43
41
|
| **Someone who picks the check for you** | Say "diagnose this project" or "accelerate this project" and you get a ranked list of what to fix or install. Nothing is changed until you approve each item. | The procedure is in [`CLAUDE.md`](CLAUDE.md) §Field-Harness Diagnostic. Each item lands only after you approve it |
|
|
44
42
|
|
|
@@ -99,22 +97,24 @@ or the `tracks/` memory. First-time walkthrough in Korean: [`docs/USER_GUIDE.md`
|
|
|
99
97
|
This is the intended flow. Which steps are enforced by code and which by rules the AI is told to follow is
|
|
100
98
|
in the "What FH does, and how far it goes" table below and in [`docs/map/FH_MAP.md`](docs/map/FH_MAP.md).
|
|
101
99
|
|
|
100
|
+
```mermaid
|
|
101
|
+
flowchart TD
|
|
102
|
+
A["You say what you want<br/>(plain language)"] --> B["FH reads the intent"] --> C["Forges it into one of two forms"]
|
|
103
|
+
C --> R1["Rules an AI follows<br/>(CLAUDE.md, skills)"]
|
|
104
|
+
C --> R2["Code that needs no AI<br/>(hooks, gates, scripts)"]
|
|
105
|
+
R1 --> S1
|
|
106
|
+
R2 --> S1
|
|
107
|
+
subgraph G["Every change to the harness passes through"]
|
|
108
|
+
direction TB
|
|
109
|
+
S1["1. Write down what counts as success and what it never does, *before* designing"] --> S2["2. Try it from several independent angles<br/>(another model family, another repo's view)"] --> S3["3. Attack it until what is left is sound, then ship"]
|
|
110
|
+
end
|
|
102
111
|
```
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
│ 1. write down "what counts as success / what it never does" BEFORE designing
|
|
110
|
-
│ 2. try it from several independent angles (other model family, other repo's view)
|
|
111
|
-
│ 3. attack it until what is left is sound — then ship
|
|
112
|
-
└──────────────────────────────────────────────────────────┘
|
|
113
|
-
│
|
|
114
|
-
irreversible steps (publish · delete · rewrite history) stop and ask a human
|
|
115
|
-
what a check could not measure is reported as "not measured" — never as 0
|
|
116
|
-
what each session learned is written to tracks/ ──► the next session starts there
|
|
117
|
-
```
|
|
112
|
+
|
|
113
|
+
If the diagram does not render: you say what you want → FH reads the intent → forges it into rules an AI follows or code that needs no AI → (every change) 1. write down success and what it never does first → 2. try it from independent angles → 3. attack it until what is left is sound, then ship.
|
|
114
|
+
|
|
115
|
+
- Irreversible steps (publish · delete · rewrite history) stop and ask a human
|
|
116
|
+
- What a check could not measure is reported as "not measured", never as 0
|
|
117
|
+
- What each session learned is written to `tracks/`, and the next session starts there
|
|
118
118
|
|
|
119
119
|
The hub (this repo) holds shared `knowledge/` and per-project `tracks/`; each project you connect points
|
|
120
120
|
back to it. Full map, every node a real path: [`docs/map/FH_MAP.md`](docs/map/FH_MAP.md) (interactive:
|
package/README.zh.md
CHANGED
|
@@ -3,14 +3,12 @@
|
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
5
|
<p align="center">
|
|
6
|
+
<a href="https://arxiv.org/abs/2609.04218"><img src="https://img.shields.io/badge/arXiv-2609.04218-b31b1b.svg" alt="arXiv:2609.04218 — the FH governance paper"></a>
|
|
6
7
|
<a href="https://github.com/walkinglabs/awesome-harness-engineering#coding-agent-harnesses"><img src="https://awesome.re/mentioned-badge.svg" alt="Mentioned in Awesome Harness Engineering"></a>
|
|
7
8
|
<a href="https://github.com/VoltAgent/awesome-agent-skills#community-skills"><img src="https://img.shields.io/badge/listed_in-awesome--agent--skills-0ea5e9.svg" alt="Listed in awesome-agent-skills"></a>
|
|
8
|
-
<a href="https://github.com/anthropics/claude-code"><img src="https://img.shields.io/badge/Claude_Code-compatible-a855f7.svg" alt="Claude Code compatible — official Claude Code repository"></a>
|
|
9
|
-
<a href="https://chrono-meta.github.io/forge-harness/"><img src="https://img.shields.io/badge/whole_map-interactive-6366f1.svg" alt="FH whole map — interactive diagrams on GitHub Pages"></a>
|
|
10
9
|
<a href="https://github.com/marketplace/actions/fh-gate-typed-ai-code-review-verdict"><img src="https://img.shields.io/badge/GitHub_Action-marketplace-2088FF.svg" alt="GitHub Actions Marketplace — fh-gate"></a>
|
|
11
10
|
<a href="https://www.npmjs.com/package/@chrono-meta/fh-gate"><img src="https://img.shields.io/npm/v/@chrono-meta/fh-gate.svg?color=cb3837" alt="npm"></a>
|
|
12
11
|
<a href="https://github.com/chrono-meta/homebrew-forge-harness"><img src="https://img.shields.io/badge/homebrew-tap-FBB040.svg" alt="Homebrew tap"></a>
|
|
13
|
-
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-22c55e.svg" alt="MIT License"></a>
|
|
14
12
|
</p>
|
|
15
13
|
|
|
16
14
|
<p align="center">
|
|
@@ -34,7 +32,7 @@
|
|
|
34
32
|
|
|
35
33
|
| 你得到 | 实际表现 | 证据 |
|
|
36
34
|
|---|---|---|
|
|
37
|
-
| **合并前的门禁** | 在改动落地*之前*判定 diff,判定会点名这次改动丢掉了什么。判定是有类型的值(`PASS · PENDING · BLOCKED · ESCALATE`),而不是需要你去 grep 的文字。对 agent 写的代码有效,对你自己写的代码同样有效。 | 下方演示 GIF · 一次对他人所写代码的运行与一次埋洞测试,附样本量:[证据](#证据以及它薄弱的地方) |
|
|
35
|
+
| **合并前的门禁** | 在改动落地*之前*判定 diff,判定会点名这次改动丢掉了什么。判定是有类型的值(`PASS · PENDING · BLOCKED · ESCALATE`),而不是需要你去 grep 的文字。对 agent 写的代码有效,对你自己写的代码同样有效。 | 下方演示 GIF · 一次对他人所写代码的运行与一次埋洞测试,附样本量:[证据](#证据以及它薄弱的地方) · 方法与受控消融实验:[arXiv:2609.04218](https://arxiv.org/abs/2609.04218) |
|
|
38
36
|
| **能延续的记忆** | `tracks/` 记录每次会话学到的东西,第 2 次会话从第 1 次停下的地方开始。 | 设计意图。会话结束时更新 `tracks/_meta/` 里的卡片,下次会话启动时读取它([`CLAUDE.md`](CLAUDE.md) §Session Wrap-up)。本页没有链接任何实测收益;而且它要从第 2 次会话起才看得出来。 |
|
|
39
37
|
| **替你挑检查的帮手** | 说“诊断这个项目”或“加速这个项目”,你会得到一份按优先级排序的待修复/待安装清单。逐项批准之前不会改动任何东西。 | 描述见 [`CLAUDE.md`](CLAUDE.md)(§Field-Harness Diagnostic);没有关于它命中率的基准测试 |
|
|
40
38
|
|
|
@@ -173,6 +173,41 @@ guard's **explicit, goal-justified opt-out**. (Operator observation, 2026-06-14:
|
|
|
173
173
|
are the graceful fallback. A hook-enforced semantic recall is a future candidate, deliberately not
|
|
174
174
|
built today (keep the surface thin).
|
|
175
175
|
|
|
176
|
+
## Lifecycle — which entries stay above the index cap (recurrence age, not recency)
|
|
177
|
+
|
|
178
|
+
The index is a **capped overview**: the loader reads about 25,000 characters of `MEMORY.md` and drops
|
|
179
|
+
the rest without warning, so the ordering rule decides which entries a new session ever sees. Ordering
|
|
180
|
+
by recency pushes long-confirmed feedback below the cut. The lifecycle model (generational GC applied to
|
|
181
|
+
agent rules — imweb tech, 2026-10-06) ranks by **age instead: age rises only when the same observation
|
|
182
|
+
is recorded again.**
|
|
183
|
+
|
|
184
|
+
- **Record recurrence, do not re-create.** When a mistake a memory already covers happens again, append
|
|
185
|
+
one dated line to that file's frontmatter instead of writing a near-duplicate file:
|
|
186
|
+
```yaml
|
|
187
|
+
metadata:
|
|
188
|
+
type: feedback
|
|
189
|
+
hits:
|
|
190
|
+
- 2026-10-15 | live-lane windows covered the operator's screen
|
|
191
|
+
- 2026-10-16 | same class, a different lane
|
|
192
|
+
```
|
|
193
|
+
The first line is the founding incident. A recurrence stated only in prose ("하루 3회") is invisible
|
|
194
|
+
to any ranking.
|
|
195
|
+
- **States.** age 1 and recent = new · age ≥ 2 = recurred · age ≥ 3 across ≥ 2 distinct days =
|
|
196
|
+
**promotion candidate** (to a rule, a hook or a lint — same-day repeats count once, they may be one
|
|
197
|
+
session's circumstances; promotion is proposed, a human approves) · a non-user entry at age 1 with no
|
|
198
|
+
recurrence for 30 days or more = **cold**: drop it from the index, keep the file. User entries never go cold.
|
|
199
|
+
- **Never delete for lack of recurrence.** A rule that is followed well also stops recurring; the
|
|
200
|
+
record cannot tell "obsolete" from "working". And **no `hits` is UNMEASURED, not age 1** — an entry
|
|
201
|
+
nobody has recorded a date for is never called cold.
|
|
202
|
+
- **Before adding an entry at all:** a fact the agent can find another way (reading code, running a
|
|
203
|
+
command, a test, a hook message) does not belong in memory — route it to that mechanism. Memory keeps
|
|
204
|
+
judgment.
|
|
205
|
+
- **Instrument:** `python3 scripts/memory_gc_report.py <memory_dir>` — read-only. It prints index
|
|
206
|
+
hygiene (unlisted files, duplicate lines, dangling local links), the line where the loader cap cuts, age per
|
|
207
|
+
entry (and every malformed, unreadable or future-dated record as an error — never as "no hits"), cold and promotion candidates, and a proposed order (user entries first, then measured entries
|
|
208
|
+
by age, then the rest in place). It changes nothing; reordering the index and promoting are separate,
|
|
209
|
+
approved steps. Lanes: `scripts/test_memory_gc_report_lanes.sh`.
|
|
210
|
+
|
|
176
211
|
## Check class
|
|
177
212
|
|
|
178
213
|
**Judged** — recall relevance and divergent-traversal are LLM-judge calls, paired (no judge-only path)
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# Built-in Capability Map — Claude Code features to reach for BEFORE an FH skill
|
|
2
|
+
|
|
3
|
+
> **Why this exists.** FH's no-reinvention rule says a platform built-in that covers the need outranks
|
|
4
|
+
> an FH skill (Tier 0 before Tier 1 before net-new). That rule only fires if the session *knows* the
|
|
5
|
+
> built-in exists. A feature that is not on any routing surface gets used only when the model happens
|
|
6
|
+
> to remember it — muscle, not skeleton — so a Sonnet session or another person's install silently
|
|
7
|
+
> skips it. This map is the routing surface. It is a lookup table, not doctrine: keep it current with
|
|
8
|
+
> the platform, and route to it from `CLAUDE.md` §Autonomous Initiative Layer.
|
|
9
|
+
>
|
|
10
|
+
> **Verified 2026-10-15** against the official command reference (`code.claude.com/docs` — commands,
|
|
11
|
+
> skills, model-config pages) and a local `claude --version` = 2.1.300 / `claude --help`. Trigger: an
|
|
12
|
+
> external cheat sheet (Claude Code Cheat Sheet v2, 2026-10-15) listed 51 items; 13 had no FH route.
|
|
13
|
+
> **Re-verify when the CLI version changes** — names and flags churn (`multi_model_sidecar_strategy.md`
|
|
14
|
+
> §Binary names churn).
|
|
15
|
+
|
|
16
|
+
## Routing table — intent → preferred built-in (after its prerequisites) → what FH adds
|
|
17
|
+
|
|
18
|
+
Each row carries Korean phrasings too, so a Korean request can match a row by its words. Measured on the `/simplify` row (floor tier, Sonnet, 3 runs, isolated clone with a real duplicate in the diff): 0/3 before and 0/3 after adding «단순하게 정리» — in every run the session simplified the code itself instead of naming `/simplify`. Simplifying directly may well satisfy the request, but these runs only show that the added phrase did not change routing. The Korean phrasings are kept as unvalidated intent examples.
|
|
19
|
+
|
|
20
|
+
"Built-in first" means *prefer the built-in over rebuilding it*, not *run it before its prerequisites*: where a row names a step that must happen first, that step comes first.
|
|
21
|
+
|
|
22
|
+
| User intent / situation | Preferred built-in | FH on top / prerequisite |
|
|
23
|
+
|---|---|---|
|
|
24
|
+
| "how full is my context", "why so slow", token pressure · «컨텍스트 얼마나 찼어», «왜 이렇게 느려» | `/context` (usage grid + heavy-tool / memory-bloat hints; `/context all` itemises) | `/context-doctor` — writes `.claudeignore`, routes CLI output through a trimming proxy, audits hub CLAUDE.md / MEMORY.md bloat on a cadence |
|
|
25
|
+
| context nearly full, keep working · «컨텍스트 거의 찼어», «압축하고 계속» | `/compact [focus]` (summarise to free space) | **before** compacting: write down what must survive (completion log, card, memory) — compaction loses what was only in the conversation |
|
|
26
|
+
| a side question that should not pollute this context · «잠깐 딴 질문», «곁가지로 하나만» | `/btw [question]` | — |
|
|
27
|
+
| "check my install / setup", CLAUDE.md problems · «설치 점검», «설정 확인해줘» | `/doctor` (bundled skill; installation, settings, extensions, CLAUDE.md; `prompt-audit`) | `/install-doctor` — FH plugin conflicts and overwrite risk · `/harness-doctor` — harness structure, drift, broken references. 🟥 Name clash: built-in `/doctor` ≠ `/harness-doctor` |
|
|
28
|
+
| cost / plan limits / "how much did this use" · «얼마나 썼어», «한도 얼마 남았어» | `/usage` (aliases `/cost`, `/stats`) | `/token-budget-gate` — *estimates before* an expensive run; it consumes `/usage` output as the actual |
|
|
29
|
+
| "how have I been using this", usage patterns · «내가 어떻게 쓰고 있나» | `/insights` (HTML report over recent local sessions; not in cloud sessions) | its findings are input for the UAP and the weekly audit — FH does not rebuild this report |
|
|
30
|
+
| review a diff for bugs · «이번 변경에 버그 있는지 봐줘», «코드 리뷰» | `/code-review [--comment]` (bundled; `ultra` = cloud deep review) | `/harness-pr-reviewer` for FH-asset coherence. 🟥 `--fix` writes to the tree — author use only; a sidecar reviewer never uses it (§Runtime Authority) |
|
|
31
|
+
| simplify / de-duplicate changed code · «단순하게 정리», «중복 줄여줘», «바꾼 코드 깔끔하게» | `/simplify [target]` (bundled; 4 parallel agents; not a bug hunt). 🟥 **It applies fixes to the tree** | author use only — never as a read-only review lane or a sidecar (§Runtime Authority: a sidecar does not write). The 4-axis gate verifies afterwards |
|
|
32
|
+
| see what changed · «뭐 바뀌었어» | `/diff` | — |
|
|
33
|
+
| undo the last edits / go back in the conversation · «편집 되돌려», «아까로 돌아가» | `/rewind` (aliases `/checkpoint`, `/undo`) — restores **checkpoint-tracked** edits only | 🟥 files changed by Bash commands and most subagent edits are not restored; nothing outside the session (pushed commits, remote branches) is. Check `git status` after a rewind; the Destructive-Op gate still governs remote state |
|
|
34
|
+
| keep working until a condition holds · «될 때까지 계속» | `/goal [condition]` | **before** starting: `/goal-quench`'s budget gate for an expensive run; verification after |
|
|
35
|
+
| repeat / watch on an interval · «N분마다 확인», «계속 지켜봐» | `/loop [interval] [prompt]` | pair with the WATCH list |
|
|
36
|
+
| try another direction without losing this one · «이건 두고 다른 방향도» | `/branch [name]` (conversation branch; back via `/resume`). 🟥 Not a git branch | git branches still follow §PR Direction and the branch-claim steps |
|
|
37
|
+
| hand a copy of this conversation to a background session · «이 대화를 복사해서 별도 세션에서 백그라운드로» | `/fork [prompt]` (by default the copy is told to create its own worktree before editing) | 🟥 isolation is **conditional**: with `worktree.bgIsolation: "none"`, outside git, or with agent view off, the copy edits the same checkout. Check the copy's actual working directory. If it is a worktree: no FH-asset commits from it, reclaim gitignored output before removing it |
|
|
38
|
+
| free the terminal, let this session run on · «이 세션을 백그라운드로 돌려줘», «터미널 비워줘» | `/background` (`/bg`, CLI `--bg`; watch with `claude agents`) | close-protocol Agent-View pre-read applies |
|
|
39
|
+
| think harder on this turn / this session · «더 깊게 생각해», «깊이 고민» | `ultrathink` in the prompt (that turn only; API effort unchanged) · `/effort low…max\|auto` | Mode D model notice and `capability_escalation_consent.md` decide when to *ask* for more |
|
|
40
|
+
| faster output · «추가 비용이 들어도 빠른 출력 모드로» | `/fast` (extra cost; limited under `-p`) | — |
|
|
41
|
+
|
|
42
|
+
## Skill frontmatter `context: fork` — what it is NOT
|
|
43
|
+
|
|
44
|
+
`context: fork` runs a skill body as a prompt in a new subagent (general-purpose unless `agent:` says
|
|
45
|
+
otherwise), without the conversation history. **It does not isolate the subagent from the project
|
|
46
|
+
`CLAUDE.md`.** Measured 2026-10-15 in a folder outside this repo, Sonnet, 3 runs per arm, with a
|
|
47
|
+
canary string placed only in the project `CLAUDE.md`:
|
|
48
|
+
|
|
49
|
+
| Arm | Setup | Answer |
|
|
50
|
+
|---|---|---|
|
|
51
|
+
| F | `context: fork` + CLAUDE.md | canary 3/3 |
|
|
52
|
+
| control A | no fork + CLAUDE.md | canary 3/3 |
|
|
53
|
+
| control B | no CLAUDE.md | NONE 3/3 |
|
|
54
|
+
|
|
55
|
+
The canary came from the forked subagent itself (its task prompt did not contain it; the final message
|
|
56
|
+
was the relayed subagent output). So a blind evaluation still needs a clone outside the repo run
|
|
57
|
+
headless (`scripts/sim_isolated_run.sh`), exactly as before. Not measured: the docs' claim that
|
|
58
|
+
`agent: Explore` / `Plan` start without `CLAUDE.md`; whether the user-level `~/.claude/CLAUDE.md` is
|
|
59
|
+
visible to the fork. ⚠️ The `-p` JSON summary reported `subagent_stats.spawned: 0` and `num_turns: 0`
|
|
60
|
+
for the forked run although the stream shows `task_started … spawn_depth=1` — read the stream, not the
|
|
61
|
+
summary, before concluding a fork did or did not happen.
|
|
62
|
+
|
|
63
|
+
## Limits
|
|
64
|
+
|
|
65
|
+
- Built-in names, aliases and flags come from one CLI version (2.1.300) and the docs read on
|
|
66
|
+
2026-10-15; the docs' skills and model-config pages were read up to 100,000 characters (their last
|
|
67
|
+
~9k / ~17k characters unread).
|
|
68
|
+
- The exact text `ultrathink` injects is not documented.
|
|
69
|
+
- This map routes; it does not prove a session follows it. Whether a floor-tier session reaches for the
|
|
70
|
+
built-in first is a separate measurement (blind sim, isolated clone, with and without this map).
|