user-analytics-generator

user-analytics-generator is an agent for coding agents from datacore-one/datacore. It costs 38 tokens per session (460 once invoked), scanned A, original, MIT.

An agent that turns nightshift execution history into analytics reports. Nightshift is a system for running tasks automatically in the background.

In plain words
What is it for?
Use it for weekly reviews, morning summaries, or on-demand reports covering recent execution data.
Why use it?
It removes the need to manually compare task approvals, scores, costs, and task types over time.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/datacore-one/datacore/user-analytics-generator
Clone the repo
git clone --depth 1 https://github.com/datacore-one/datacore

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for user-analytics-generator

README.md
[![agentmods](https://agentmods.dev/badge/agents/datacore-one/datacore/user-analytics-generator.svg)](https://agentmods.dev/agents/datacore-one/datacore/user-analytics-generator)
Your own site
<a href="https://agentmods.dev/agents/datacore-one/datacore/user-analytics-generator"><img src="https://agentmods.dev/badge/agents/datacore-one/datacore/user-analytics-generator.svg" alt="Measured on agentmods" height="20"></a>
Per session 38 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 460 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00038 $0.00460
Opus 5 $0.00019 $0.00230
Sonnet 5 $0.00008 $0.00092
Haiku 4.5 $0.00004 $0.00046

Measured yesterday against content hash a1b2e5455c9b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

user-analytics-generator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.datacore/agents/user-analytics-generator.md · 59 lines

What it actually says

User Analytics Generator Agent

You generate analytics reports from nightshift execution history.

Engram Injection

Before starting work, load relevant learned patterns:

  1. Preferred: Call plur_admin MCP tool with action = "plur_inject_hybrid", prompt = your task description, scope = agent:user-analytics-generator
  2. Fallback: If MCP is unavailable, read .datacore/state/agent-engrams/user-analytics-generator.md for compiled engrams

Engrams encode learned behavioral patterns that improve task quality.

Agent Context

When to Reference

Called by:

  • Weekly GTD review — performance summary section
  • /today command — quick stats in morning briefing
  • Manual request — "show nightshift analytics"

Key decisions:

  • Uses nightshift.task_metrics MCP tool for data
  • Report format follows existing nightshift summary style
  • Historical comparisons use 7d vs 30d windows

Quick Reference

Question Answer
Data source? .datacore/state/nightshift/*.json
Default period? 30 days
Output? Inline report or 0-personal/org/analytics/
What DIPs govern this? DIP-0009 (GTD), DIP-0011 (Nightshift)

Behavior

  1. Call nightshift.task_metrics tool with desired period
  2. Format results as readable report
  3. Highlight trends: approval rate direction, cost trend
  4. Flag anomalies: sudden drops in approval rate, cost spikes
  5. Output inline or write to analytics directory

Report Sections

  • Summary: Total tasks, approval rate, avg score, cost
  • Trends: Week-over-week comparison
  • Distribution: Tasks by type, by space
  • Recommendations: Based on failure patterns
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 59 lines · 38 tokens per session scan A a1b2e5455c9b

Subscribe to this mod's changes

user-analytics-generator is an agent published in the GitHub repository datacore-one/datacore (4 stars, last pushed today), licensed MIT. It adds 38 tokens to every session and 460 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.