Skip to content

Hooks hydrate ~/.agentmemory/.env through one dependency-free loader; open the cluster PR #39

Closed

Description

@possiblyneal

Parent

Part of #31.

Branch: fix/hook-env

What to build

A setting the Operator places in ~/.agentmemory/.env — such as AGENTMEMORY_INJECT_CONTEXT, whose own comment says to put it there — reaches the hook scripts. A hooks-local loader, following the precedent of the existing shared hook helper for project resolution, reads the file (honouring the same home override the daemon honours), sets only keys absent from process.env, and imports nothing beyond node:fs, node:os, node:path. Every hook calls it before its first env read. The committed hook scripts are regenerated with npm run build, never hand-edited. Opens the PR.

Acceptance criteria

Blocked by

  • None — can start immediately

Activity

  1. possiblyneal commented on Sep 22, 2026

    @possiblyneal
    OwnerAuthor

    Done in PR #47 (fix/hook-env, commit d4e993e): src/hooks/_env.ts hydrates ~/.agentmemory/.env before the first env read in all 14 hook entries; plugin/scripts regenerated; npm test 1894 passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agentFully specified, ready for an AFK agent

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions