All plugins

sourcebind

Bind one explicit business job to its current local JSON customer ID at one selected native tool's execution boundary. Default mode checks job and customer_id arguments; opt-in ID-only mode checks customer_id for registered customer-only tools while retaining the source-job and native-scope checks. Both modes reread the selected source for each protected call and retain the originating scope through public delegation and compaction events. Disclosure — reads the user-selected local JSON with the process's OS permissions; stores the binding, check mode, absolute source path, native scope aliases and fictional demo records in profile-scoped Hermes plugin state. Source-file writers can change authoritative values. Plugin-initiated network requests, shell commands, background processes, telemetry and credentials: 0.

bluccaToolsv0.1.2Updated 22 days ago

About

Bind one explicit business job to its current local JSON customer ID at one selected native tool's execution boundary. Default mode checks job and customer_id arguments; opt-in ID-only mode checks customer_id for registered customer-only tools while retaining the source-job and native-scope checks. Both modes reread the selected source for each protected call and retain the originating scope through public delegation and compaction events. Disclosure — reads the user-selected local JSON with the process's OS permissions; stores the binding, check mode, absolute source path, native scope aliases and fictional demo records in profile-scoped Hermes plugin state. Source-file writers can change authoritative values. Plugin-initiated network requests, shell commands, background processes, telemetry and credentials: 0.

SourceBind

Two valid customer IDs can both return success. A renewal job for Northwind can
still update Contoso. SourceBind binds an explicit job to its current local
JSON source
, then, by default, checks the actual job and customer_id
immediately before one selected tool runs. Explicit id-only mode supports
customer-only tools, with the job bound to the native scope and selected source.

Try it in 30 seconds

After installing, start Hermes from this checkout. The included
examples/current-customer.json contains:

{"job":"northwind-renewal","customer_id":"nw-41"}

In Hermes:

/sourcebind bind northwind-renewal examples/current-customer.json
/sourcebind status

Then send:

For this fictional demo, first try sourcebind_demo_update with job
"northwind-renewal" and customer_id "ct-91". After that attempt, call
sourcebind_current and retry the update with its current job and customer_id.

The ct-91 attempt is blocked before the update handler. Reading the current
source gives nw-41, whose update succeeds. Both IDs are valid in the fixture;
an unbound scope accepts either. Demo updates write fictional, profile-local
records. Payments and production service calls: 0.

Install

Requires Hermes 0.23.0+. From this checkout:

hermes plugins validate "$PWD" --install-deps
hermes plugins install https://github.com/blucca/hermes-sourcebind --no-enable
hermes plugins enable sourcebind

Restart Hermes after enabling. Plugin Python dependencies: 0; the code uses
the standard library.

Binding and current-source changes

User commandEffect
/sourcebind bind <job> <source.json> [protected_tool]Check both call arguments against the current source; default tool: sourcebind_demo_update.
/sourcebind bind <job> <source.json> <protected_tool> id-onlyExplicitly check customer_id for a customer-only tool; job stays bound to the native scope/source.
/sourcebind statusShow the binding for this native scope.
/sourcebind clearClear this scope's active binding.

The selected JSON must be an object with nonempty, top-level string fields
job and customer_id. Relative paths resolve from the working directory at
bind time; ~ and quoted paths with spaces work. The absolute path is stored.
The model-callable read interface is sourcebind_current; the other plugin
tool updates the fictional fixture. Binding changes use the user slash command.

For a source rollover, edit customer_id while keeping job unchanged. For
example, change Northwind’s current reference from nw-41 to the also-valid
nw-42. The separate ct-91 record belongs to Contoso. The guard rereads
the file at every protected call: the old ID is blocked and the new current ID
passes. A read, UTF-8, JSON, field-validation, or source-job failure blocks the
selected tool. Repairing the file restores the existing binding; choosing a
different job uses a fresh bind.

There is one active binding per profile. A new explicit bind replaces it.
Its scope follows the originating native session through the public
subagent_start and post_compaction events. Independently started sessions
retain their own scopes; a parent reference alone keeps that independence.

Protect an existing tool

/sourcebind bind northwind-renewal "/absolute/path/current source.json" crm_update

Choose an already-registered tool with top-level string arguments job and
customer_id. The check applies to that exact tool name and these two fields.
Selecting it replaces the default fixture as the protected target. Other tools,
arguments, backend effects, and Hermes approvals keep their existing contracts.
Default mode checks both fields on every protected call. Existing v0.1.1
bindings retain this default when reloaded.

ID-only mode for customer-only tools

Use id-only for an already-registered tool whose schema has a top-level string
customer_id and omits job, such as Cash Desk's cashdesk_reply or
cashdesk_hold. The flag is accepted only after an explicit protected tool name.
The selected source still requires the canonical job and customer_id fields:

{"job":"northwind-reply","customer_id":"<your-current-customer-id>"}

Bind that file and the exact native tool in your Hermes conversation:

/sourcebind bind northwind-reply "/absolute/path/current source.json" cashdesk_reply id-only

In this mode, the job is enforced by the explicit native scoped binding and
source.job == bound job at every protected call. Tool arguments are checked
against the current customer_id. A changed source job or source read failure
blocks the call, and a customer-ID rollover immediately changes the accepted ID.
The one-profile, one-active-binding, one-exact-tool scope applies to both modes.

sourcebind_current exposes both source fields in current and only the checked
tool fields in expected_args. Its next_step supplies the current customer ID;
other required tool arguments come from your task. For cashdesk_reply, use
native arguments like these, replacing the placeholders with the selected ID
and the customer's reply text:

{"customer_id":"<your-current-customer-id>","text":"<customer reply text from your task>"}

The text argument keeps Cash Desk's native task contract. SourceBind adds the
current-source identity check; Cash Desk's other arguments and approvals retain
their own contracts. Rebinding without id-only selects the default two-field
argument guard.

The selected file is the authority at call time. When shell or file tools have
write permission to it, those tools can change the authoritative values that
subsequent guarded calls read. Keep source-file write permissions aligned with
who may change the business mapping.

Runtime disclosures

SurfaceBehaviour
Reads outside plugin dataThe explicitly selected local business JSON, using the Hermes process's OS file permissions. Source-content fields exposed to the model: job and customer_id.
Stored dataProfile-scoped Hermes ctx.state: binding with absolute source path, scope and check_job_arg mode flag, native scope aliases, and fictional demo records. clear removes the active binding.
Third-party network requests / telemetry0 plugin-initiated requests; 0 telemetry.
Shell commands / background processes0 plugin-initiated commands; 0 background processes.
Credentials0 requested or stored; 0 credential-store discovery.
Hermes extensionsTwo tools, one user command, and public pre_tool_call, pre_llm_call, subagent_start, post_compaction hooks.

pre_tool_call enforces the binding; pre_llm_call supplies scoped guidance.
The plugin uses public registration and state APIs.

Native demonstration (v0.1.1, default mode)

Watch the 71-second film
or download the MP4. The film includes English
captions and synthesized narration.

Open the recorded native run
— fictional customers, real Hermes tool calls.

Current source, native block and the model’s Northwind update

The standalone examples/native-demo.py harness runs a real Hermes agent and
its native tool dispatcher. It uses your configured model, creates a fictional
source under --output-dir, and saves each observed step as native-demo.json.
Use a dedicated demo profile: this example sets an active SourceBind binding.

Run with the Hermes checkout's Python environment:

/path/to/hermes-agent/.venv/bin/python examples/native-demo.py \
  --hermes /path/to/hermes-agent --provider YOUR_PROVIDER --model YOUR_MODEL \
  --output-dir /path/to/your/workspace/temp/sourcebind-demo

The forced stale calls exercise the native execution boundary; the agent turns
use the configured model. The harness imports Hermes core for the demonstration;
the plugin entrypoint extends Hermes through the public ctx APIs.

Standard-library checks: python3 tests/check.py — 16 checks pass, including
default/legacy bindings and the explicit ID-only guard and guidance. The
v0.1.1 default-mode Hermes v0.23.0 validation passed, including the safe install
scan. Its observed native model run is saved in
demo/native-demo.json:

  • Unbound: valid ct-91 updates Contoso for the Northwind job.
  • Bound: wrong customer/job calls stop; the model reads the selected source and
    updates nw-41.
  • Source rollover: old nw-41 stops; the model refreshes and updates nw-42.
  • Broken JSON stops the protected call; repairing it restores a ready read.

The stock model uses discovery tool_call envelopes. The readout resolves the
actual business calls and retains the native envelopes alongside them. Forced
boundary checks and model calls are recorded separately.

AI-led development: Codex / blucca. Source and documentation: MIT.

Cash Desk interoperability (v0.1.2, ID-only mode)

Cash Desk determines the invoice figures; SourceBind checks which current
customer receives the action. The real native dispatcher record
uses Cash Desk's bundled fictional customers, pin
26d5fabe5f50f250e5dc72c0751adbdb3625f732 (MIT, FutureInvoked).

  • An unbound dispute reply with valid C002 really places that wrong customer on hold.
  • Default two-field mode stops on Cash Desk's missing job argument.
  • Explicit ID-only mode blocks wrong C002, accepts current C001, and follows
    a current-source rollover to C003. SQLite reads verify the customer effects.
  • Broken JSON and a changed source job stop the call; repairing restores a ready read.

Eleven stock tool_call dispatcher calls; model turns, outbound sends and
invoice/bank imports: 0. SourceBind v0.1.2 installed-tree validation passes
all 15 checks on Hermes v0.23.0. For a fresh dedicated demo profile, install
and enable both plugins and run the standalone dispatcher checker
with the Hermes Python environment, --hermes /path/to/hermes-agent and
--output-dir /your/workspace/temp/cashdesk-demo. The checker is standalone
research; SourceBind itself registers through public Hermes plugin APIs.

README from the reviewed commit 66d2247; it updates when the author re-pins.

Developer Mode

Explore built-in Hermes toolsets and actions.

HermesAgent

Developer?

Create a Hermes extension for Desktop or agent workflows.

Developer Section