소스 정보
- 저장소
- lukemcqueen/hermes-cortex
- 최근 소스 활동
- 2026년 7월 31일 19:17
- 감지된 SKILL.md 언어
- 영어
- 스타
- 4
- 포크
- 1
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/lukemcqueen/hermes-cortex --skill cleanup-commit-regression-check명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
Cross-server agent health monitoring using binary status vectors — deploy health endpoints on each agent, poll from orchestrator, alert on state transitions.
Wire a self-hosted Langfuse instance to Hermes Agent — generate API keys, configure env vars, enable the bundled plugin, install SDK, and verify traces flow.
Use before enforcement code changes or shared-repo commits.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | cleanup-commit-regression-check |
| version | 1.0.0 |
| category | devops |
| description | When scripts fail with NameError after a mass-edit commit. |
| platforms | ["linux","macos"] |
Load this when:
NameError: <name> is not defined after a
recent "fix"/"cleanup"/"adversarial findings" commitMass-edit commits that replace no-op lines (e.g. _ = None # expected — silently handled) with real handling (e.g. print(...)) routinely delete
structural lines adjacent to the edit — the very def line of the next
function, plus return statements. The result compiles (the orphaned body
becomes module-level or attaches to the previous function) but fails at
runtime with NameError or silently misbehaves.
Confirmed 2026-07-31: commit 84272894 ("fix: all high adversarial
findings") stripped def _resolve_var(...) and return env from two bus
scripts, def embed_skills(...) + conn.commit() + return count from a
cache script, def get_previous_good_sha(...) + return None from a
rollback script, and def _analyze_python(...) + return files + two
append lines from a project-map script. The bus forwarder cron crashed
every 2 minutes with NameError: name '_resolve_var' is not defined.
py_compile passes on these files (the damage is semantically wrong but
syntactically valid). The reliable check is an AST function-set diff
between the commit and its parent:
# For every .py file touched by the suspicious commit:
import ast, subprocess, pathlib
def funcs_of(text):
try:
tree = ast.parse(text)
except SyntaxError:
return set()
return {n.name for n in ast.walk(tree)
if isinstance(n, (ast.FunctionDef, ast.AsyncFunctionDef))}
parent = subprocess.run(['git','show',f'{COMMIT}^:{path}'],
capture_output=True, text=True).stdout
current = pathlib.Path(path).read_text()
deleted = funcs_of(parent) - funcs_of(current)
if deleted:
print(f"{path}: DELETED FUNCS: {sorted(deleted)}")
Single-function deletions are the smoking gun; wholesale file rewrites legitimately delete many functions and need manual review instead.
Re-runnable probe: scripts/find-deleted-funcs.py <commit> (AST function-set
diff, exit 1 on deletions).
Verifying a cleanup-commit fix surfaced a deeper deployment trap: the cron
runner executes from ~/.hermes/scripts/, but cortex-update deploys to
~/.hermes-cortex/scripts/. The symlink bridge is skipped when local-only
files exist, so deployed fixes silently don't reach the running cron, and
the doctor misses it (it checks the deploy dir, not the cron dir). Full
detail, detection commands, and the safe sync fix:
references/cron-path-vs-deploy-path.md.
A function whose def line was stripped leaves its docstring dangling.
Grep for callers of an undefined helper:
grep -rn "_resolve_var(" ops/scripts/ 2>/dev/null | grep -v "def _resolve_var"
# → files that CALL it without defining it
git show COMMIT^:path — extract the original structural linesdef <name>(...): + missing return statements +
any append lines that were collateralpython3 -m py_compile — execute the
script or import it so the module-level code exercises the restored
function~/.hermes/cron/output/<job>/)
that the next tick flips to silentpy_compile is NOT verification for this bug class — orphaned bodies
compile fine. Run the actual code path.used - defined scan flags every HOME, STATE_DIR, etc.
The function-set diff between commit and parent is the precise tool.# SOURCE: header — diff -q against the
repo always reports drift even when synced. Compare deployed vs the
deploy dir (~/.hermes-cortex/scripts/) or strip the header.