
Company News
Socket Joins New OpenJS Program to Fund Node.js Security Work
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.
@agtnames/countersign
Advanced tools
Scoped session grants for .agt owners: build, describe and redeem per-name record-write mandates enforced on-chain (EIP-7702 + MetaMask Delegation Framework).
Scoped session grants for .agt owners. An owner signs one mandate; a local agent performs the covered record writes on the owner's names without further prompts; the chain refuses everything else.
A grant covers: which names, which record setters, until when, how many calls per name, which session key. It can never move value, never touch the registry or controller, and the owner revokes every grant at once with a single transaction. Every line of the summary the library prints is a caveat enforced on-chain by the MetaMask Delegation Framework; describeGrant rebuilds the grant from its summary and refuses any blob whose caveats differ.
Status: v0.1, Polygon (137) and Amoy (80002). Format version: 1 is a draft until the first production writer ships.
authorised(node) check passes; a bare session key would be rejected.NonceEnforcer nonce. To revoke one grant they call DelegationManager.disableDelegation.Caveats per name, in order: AllowedTargets [AGTResolver], AllowedMethods [chosen setters], ValueLte 0, AllowedCalldata (arg0 == node), Timestamp, LimitedCalls, Redeemer [session], Nonce.
npm install @agtnames/countersign
# owner: build and sign a grant for a session key (key read from an env var, never an argument)
OWNER_KEY=0x… agt-countersign build --chain 137 --owner 0xOWNER --session 0xSESSION \
--names notary,envoy --actions text,endpoint --ttl 1h --calls 5 --sign-with-key OWNER_KEY --out grant.json
# owner with a browser wallet: print EIP-712 payloads, sign them in the wallet, attach the signatures
agt-countersign build … --typed-data > unsigned.json
agt-countersign sign grant.json --signatures 0xSIG1,0xSIG2
# anyone: read the mandate offline, or the live state
agt-countersign describe grant.json
agt-countersign status grant.json
# owner: revoke every outstanding grant
OWNER_KEY=0x… agt-countersign revoke-all --chain 137 --owner-key OWNER_KEY
import { buildGrant, signGrantWithKey, describeGrant, redeem, grantStatus } from "@agtnames/countersign";
const grant = await signGrantWithKey(
buildGrant({ chainId: 137, delegator: owner, delegate: session, names: ["notary"], actions: ["text", "endpoint"], ttlSeconds: 3600, maxCalls: 5, nonce }),
ownerPrivateKey,
);
const d = await describeGrant(grant); // d.ok, d.problems, d.summary (plain language, one line per enforced fact)
await redeem(grant, "notary", { action: "text", key: "url", value: "https://…" }, { session: sessionPrivateKey });
await grantStatus(grant); // calls used per name, expiry, whether the owner revoked, session gas
nonce is the owner's current NonceEnforcer.currentNonce(delegationManager, owner); the CLI reads it for you.
setResolver) or the controller (register, renew).@agtnames/mcp 1.2+ exposes these as opt-in tools (agt_session_new, agt_session_import, agt_session_status, agt_session_forget, agt_set_text, agt_set_addr, agt_set_endpoint, agt_set_manifest_uri, agt_set_wallet) when AGT_SESSION_PASSPHRASE is set. The session key is stored encrypted under AGT_SESSION_DIR and never leaves the machine.
hash and describeGrant().summary to the owner before they sign, and again on import. A wallet's typed-data prompt is a phishing surface; the hash is how a user compares what they were shown with what they signed.@metamask/smart-accounts-kit 2.0.0 and are identical on 137 and 80002. describeGrant refuses a grant whose delegationManager differs.License MIT.
FAQs
Scoped session grants for .agt owners: build, describe and redeem per-name record-write mandates enforced on-chain (EIP-7702 + MetaMask Delegation Framework).
We found that @agtnames/countersign demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Company News
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.

Security News
Two compromised GitHub Actions were re-enabled with malicious tags intact, exposing thousands of downstream repositories to Mini Shai-Hulud.

Research
/Security News
A malicious Firefox extension fetches its payload after installation to evade detection, steal Google session cookies, and automate account takeover.