
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.
agent-receipt
Advanced tools
Automatic receipts for every Claude Code session. Track intent, tool calls, cost, side effects, and outcome quality — without Claude's cooperation.

npx agent-receipt init
That's it. This adds Claude Code hooks and an MCP server to your project. Every session automatically gets a receipt.
| Field | Description |
|---|---|
| Intent | What the session set out to do |
| Outcome | What actually happened |
| Intent Score | 0.0–1.0 alignment score (via Haiku) |
| Cost | Token counts and USD estimate by model |
| Tool Calls | Every tool invocation with input/output |
| Side Effects | File writes, deletes, git pushes, API calls |
| Duration | Wall clock time |
Claude Code hooks fire on lifecycle events — no prompting required:
| Hook | What happens |
|---|---|
SessionStart | Creates a session row in local SQLite |
PostToolUse | Logs each tool call (name, input, response) |
PostToolUseFailure | Logs failed tool calls with error |
SessionEnd | Finalizes the receipt: aggregates calls, detects side effects, calculates cost |
Receipts are stored locally at ~/.agent-receipt/receipts.db.
agent-receipt init # Set up hooks + MCP in current project
agent-receipt init --dry-run # Preview without writing files
agent-receipt setup # Install hooks globally (~/.claude/settings.json)
agent-receipt setup --local # Install hooks in current project only
The MCP server exposes tools for explicit overrides on top of automatic hook tracking:
receipt_start — Set intent, tags, and budget for the current sessionreceipt_log_tool_call — Log a tool call manuallyreceipt_end — End session and generate receipt with optional outcomereceipt_score — Submit intent score after evaluating the scoring promptReceipts export as Markdown for pasting in PRs:
## Agent Receipt `rec_a1b2c3d4`
**Intent:** Add user authentication
**Outcome:** Executed 12 tool call(s): wrote auth middleware, added tests...
**Intent Score:** 0.85 (via host)
**Cost:** $0.42 · 28,400 tokens · 3m 12s
**Side Effects:**
- File writes: src/auth.ts, src/middleware.ts, tests/auth.test.ts
- Bash: npm install jsonwebtoken
- Git: committed changes
Local SQLite database at ~/.agent-receipt/receipts.db. No data leaves your machine.
MIT
FAQs
MCP server that generates structured receipts for Claude Code sessions
The npm package agent-receipt receives a total of 0 weekly downloads. As such, agent-receipt popularity was classified as not popular.
We found that agent-receipt 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.