Armory
Source
Browse
CLAUDE.md / Rules

subagent-lifecycle-logger

Audit trail for subagent invocations using SubagentStart and SubagentStop lifecycle hooks. Every time Claude spawns or finishes a subagent, a timestamped JSON entry is appended to .claude/agent-log.jsonl — recording the agent name, event type, and ISO timestamp. Provides an offline, zero-dependency log for debugging multi-agent workflows, tracking which agents ran and in what order, and estimating AI usage per session.

Score
Unranked
Evidence
No signals yet
Last commit
Not known
Listed

Install

armory install subagent-lifecycle-logger --cli claude

writes the file to.claude/rules/subagent-lifecycle-logger.mdListed as compatible

Configuration
# fetches the source and writes it to:
.claude/rules/subagent-lifecycle-logger.md

Needs the armory CLI · not on npm yet, build it from cli/ in the repository

What it is

Audit trail for subagent invocations using SubagentStart and SubagentStop lifecycle hooks. Every time Claude spawns or finishes a subagent, a timestamped JSON entry is appended to .claude/agent-log.jsonl — recording the agent name, event type, and ISO timestamp. Provides an offline, zero-dependency log for debugging multi-agent workflows, tracking which agents ran and in what order, and estimating AI usage per session.

When to use it

Audit trail for subagent invocations using SubagentStart and SubagentStop lifecycle hooks. Every time Claude spawns or finishes a subagent, a timestamped JSON entry is appended to .claude/agent-log.jsonl — recording the agent name, event type, and ISO timestamp. Provides an offline, zero-dependency log for debugging multi-agent workflows, tracking which agents ran and in what order, and estimating AI usage per session.

How to install / invoke

# Merge the settings block into your .claude/settings.json
curl -sL https://raw.githubusercontent.com/davila7/claude-code-templates/main/cli-tool/components/settings/hooks/subagent-lifecycle-logger.json | jq .

Notes

Extracted from davila7/claude-code-templates, hooks category.