Skip to content

feat(agents-md): salvage MCP rules from stale refactor branches#37

Merged
mlorentedev merged 1 commit into
mainfrom
feat/agents-md-mcp-salvage
May 17, 2026
Merged

feat(agents-md): salvage MCP rules from stale refactor branches#37
mlorentedev merged 1 commit into
mainfrom
feat/agents-md-mcp-salvage

Conversation

@mlorentedev
Copy link
Copy Markdown
Owner

Summary

Three `refactor/claude-md-*` branches were left unmerged when PR #34 migrated CLAUDE.md content into AGENTS.md. Their improvements to MCP usage rules never made it forward. Before deleting the branches, this PR salvages the substantive additions and integrates them into AGENTS.md.

What I kept

From `refactor/claude-md-hive-fallback-rule` — Hive failure-mode fallback rule:

If Hive hangs or exceeds ~10-20s (queries) / ~30s (writes), abandon the call, fall back to native Read/Edit/Write/grep + manual git commit. Do NOT retry Hive in the same session — the server may be wedged.

From `refactor/claude-md-dedupe-vault-patterns`:

  • Context7: "Prefer over WebSearch", "Skip for stdlib", version-in-prompt examples.
  • Sequential Thinking: "Pairs well with Context7" cross-reference.
  • Hive: three additional tools surfaced (`vault_health`, `delegate_task`, `vault_list`).
  • Obsidian CLI: explicit unique-command list (backlinks, orphans, dead-ends, unresolved, tags, eval) + `OBS_VAULT` env note.

What I dropped

Cosmetic / "Auto-invoke when" rephrasings — AGENTS.md's current "When:" phrasing matches the canonical style established in PR #34 and is consistent across the file.

Tests

  • 491/491 pass locally. Content addition only; no test changes needed.

Follow-up after merge

Delete the three stale branches:

  • `refactor/claude-md-dedupe-vault-patterns`
  • `refactor/claude-md-hive-fallback-rule`
  • `refactor/claude-md-trim-loop-vault-structure`

Test plan

  • `bats tests/*.bats` → 491/491.
  • `grep -n "Failure-mode fallback" AGENTS.md` — confirms the Hive timeout rule landed.
  • `grep -nE "backlinks|orphans|dead-ends" AGENTS.md` — confirms Obsidian CLI command list landed.

References

Three refactor/claude-md-* branches were superseded by the AGENTS.md
migration in PR #34 (canonical content moved out of CLAUDE.md). Before
deleting them, salvage the substantive MCP usage improvements they made
that were never brought forward.

From refactor/claude-md-hive-fallback-rule:
- Hive failure-mode fallback rule: if Hive hangs or exceeds ~10-20s
  (queries) / ~30s (writes), abandon the call, fall back to native
  Read/Edit/Write/grep + manual git commit. Do NOT retry Hive in the
  same session.

From refactor/claude-md-dedupe-vault-patterns:
- Context7: "Prefer over WebSearch", "Skip for stdlib", version-in-prompt
  examples.
- Sequential Thinking: "Pairs well with Context7" cross-reference.
- Hive: three additional tools surfaced (vault_health, delegate_task,
  vault_list).
- Obsidian CLI: explicit unique-command list (backlinks, orphans,
  dead-ends, unresolved, tags, eval) + OBS_VAULT env note.

Cosmetic / "Auto-invoke when" rephrasings from the refactor branches
were NOT brought forward — AGENTS.md's current "When:" phrasing matches
the canonical style established in PR #34.

Tests: 491/491 still pass (AGENTS.md content additions only; no test
changes needed).

Follow-up: delete the three stale refactor/claude-md-* branches
post-merge.
@mlorentedev mlorentedev merged commit 78c8212 into main May 17, 2026
5 checks passed
@mlorentedev mlorentedev deleted the feat/agents-md-mcp-salvage branch May 17, 2026 06:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant