Skip to content

docs: add Mode C — pre_llm_call shell hook integration - #491

Merged
ajianaz merged 3 commits into
developfrom
docs/mode-c-shell-hook
Jun 29, 2026
Merged

ajianaz merged 3 commits into
developfrom
docs/mode-c-shell-hook

Conversation

@ajianaz

@ajianaz ajianaz commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

What

Adds Mode C documentation to docs/integrations/hermes.md — the lightest uteke-Hermes integration pattern.

Why

Mode C (shell hook) was deployed to production across all 6 agents but not documented in the repo. Mode A + Mode B were documented; Mode C was missing.

Changes

  • New section: Mode C — pre_llm_call Shell Hook
    • Full handler.py example (copy-paste ready)
    • Wire protocol reference (stdin/stdout JSON)
    • Comparison table: Mode A vs B vs C
    • Quick setup guide (4 steps)
    • Recommended combo: Mode A + Mode C

Related

  • Internal reference: devops/uteke/references/hermes-hook-injection.md
  • Deployed to: badsector, cfo, cto, kai, novelist, sosmed

Adds documentation for the lightest uteke-Hermes integration:
- Standalone Python handler, no plugin/daemon needed
- Wire protocol reference (stdin/stdout JSON)
- Comparison table (Mode A vs B vs C)
- Quick setup guide with full handler.py example
- Recommended combo: Mode A (manual tool) + Mode C (auto recall)
@ajianaz ajianaz added the documentation Improvements or additions to documentation label Jun 29, 2026
@github-actions

github-actions Bot commented Jun 29, 2026 •

Copy link
Copy Markdown

🔍 Cora AI Code Review

❌ Blocked — critical issues found.

🔴 Error (1)

  • docs/integrations/hermes.md:311 — The new Mode C example config registers the hook as command: "python3 /path/to/handler.py". In shell-hook systems, a single command string is commonly executed via a shell, which makes the invocation sensitive to shell metacharacters and whitespace in the configured path. This is especially risky here because the section encourages users to substitute their own handler path. The embedded Python example itself uses subprocess.run([...]) safely, but this YAML snippet reintroduces command-injection risk at the integration boundary.

Review powered by cora-cli · BYOK · MIT

@ajianaz

ajianaz commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator Author

👋 CTO review: This PR is clean — Mode C docs with accurate info, comparison table, no contradictory patterns. Ready to merge after approval.

Note: #490 closed as duplicate. Getting-started 3-mode callout will be ported in a follow-up PR.

if not UTEKE_BIN.exists():
return []
try:
proc = subprocess.run(
@ajianaz
ajianaz merged commit dfcb1c4 into develop Jun 29, 2026
8 of 9 checks passed
KazamiHazaki pushed a commit to KazamiHazaki/uteke that referenced this pull request Jul 2, 2026
After merging codecoradev#491 (Mode C docs), the getting-started Hermes callout
still referenced only Mode B. Update to list all 3 modes with links
to the full integration docs.

Ported from codecoradev#490 (closed as duplicate).
@ajianaz
ajianaz deleted the docs/mode-c-shell-hook branch July 9, 2026 14:27
ajianaz added a commit that referenced this pull request Aug 13, 2026
After merging #491 (Mode C docs), the getting-started Hermes callout
still referenced only Mode B. Update to list all 3 modes with links
to the full integration docs.

Ported from #490 (closed as duplicate).
ajianaz added a commit that referenced this pull request Aug 13, 2026
docs: add Mode C — pre_llm_call shell hook integration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants