get-current-datetime

get-current-datetime is an agent for Claude Code from UfoMiao/zcf. It costs 26 tokens per session (232 once invoked), scanned A, original, MIT.

A tiny agent that runs the system's `date` command and returns the current date and time as raw text.

In plain words
What is it for?
Use it when another workflow needs the exact current date and time, such as a filename, log entry, or timestamped record.
Why use it?
It provides a consistent timestamp without extra wording or formatting.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit Use it when another workflow needs the exact current date and time, such as a filename, log entry, or timestamped record.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/ufomiao/zcf/get-current-datetime
About the project

ZCF is a command-line setup tool for configuring Claude Code and Codex with agents, instructions, skills, hooks, commands, and settings. It is for developers who want to install and personalize these coding-agent workflows through an interactive setup.

UfoMiao/zcf · 6,081 stars · on GitHub · zcf.ufomiao.com

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.

Clone the repo
git clone --depth 1 https://github.com/UfoMiao/zcf

Made for: Claude Code.

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 get-current-datetime

README.md
[![agentmods](https://agentmods.dev/badge/agents/ufomiao/zcf/get-current-datetime/github.svg)](https://agentmods.dev/agents/ufomiao/zcf/get-current-datetime)
Your own site
<a href="https://agentmods.dev/agents/ufomiao/zcf/get-current-datetime"><img src="https://agentmods.dev/badge/agents/ufomiao/zcf/get-current-datetime/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for get-current-datetime

Your own site · 80×15
<a href="https://agentmods.dev/agents/ufomiao/zcf/get-current-datetime"><img src="https://agentmods.dev/badge/agents/ufomiao/zcf/get-current-datetime.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 232 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00026 $0.00232
Opus 5.5 $0.00010 $0.00093
Sonnet 5.5 $0.00005 $0.00046
Haiku 4.5 $0.00003 $0.00023

Measured 1mo ago against content hash 3fb96db499d9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

get-current-datetime 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 1mo ago.

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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

templates/claude-code/en/workflow/common/agents/get-current-datetime.md · 30 lines

What it actually says

Execute date and return ONLY the command output.

date +'%Y-%m-%d %H:%M:%S'

DO NOT add any text, headers, formatting, or explanations. DO NOT add markdown formatting or code blocks. DO NOT add "Current date and time is:" or similar phrases. DO NOT use parallel agents.

Just return the raw bash command output exactly as it appears.

Example response: 2025-07-28 23:59:42

Format options if requested:

  • Filename: Add +"%Y-%m-%d_%H%M%S"
  • Readable: Add +"%Y-%m-%d %H:%M:%S %Z"
  • ISO: Add +"%Y-%m-%dT%H:%M:%S%z"

Use the get-current-datetime agent to get accurate timestamps instead of manually writing time information.

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. 1mo ago First seen · 30 lines · 26 tokens per session scan A 3fb96db499d9

Subscribe to this mod's changes

get-current-datetime is an agent published in the GitHub repository UfoMiao/zcf (6,081 stars, last pushed 1mo ago), licensed MIT. It adds 26 tokens to every session and 232 once invoked, about $0.0001 per session on Opus 5.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-08-30.

Related

Other agents, from other repositories

docs-specialist

Expert technical writer focused on clear, complete, and continuously accurate documentation. Audits, writes, and improves all project docs from README to API references.

ZaxbyHub/opencode-swarm · 34 tokens

python-pro

Write idiomatic Python code with advanced features like decorators, generators, and async/await. Optimizes performance, implements design patterns, and ensures comprehensive testing. Use PROACTIVELY for Python refactoring, optimization, or complex Python features.

echoVic/blade-code · 51 tokens

code-reviewer

Comprehensive code review with scout-based edge case detection. Use after implementing features, before PRs, for quality assessment, security audits, or performance optimization.

opencue/cuecards · 35 tokens

self-review-applier

The writing hand of the self-review loop. Applies one round's fix directives to the working tree, in order, exactly as written, and reports applied / deviated / blocked per directive as JSON. Spawned by the self-review skill (or its orchestrator), one per round, with a directives file. Has no shell — it cannot run…

HoussemDjeghri/self-review · 86 tokens

scramjet:instruction-semantics-analyzer

Use when changed command wording, frontmatter, ordering, authority, or output contracts may conflict or admit materially different interpretations.

LeanAndMean/scramjet · 35 tokens

seo-analyst

An SEO analysis agent for improving how web content is organized for search engines. SEO means making pages easier for search engines to understand and show in results.

sodam-ai/SoDam-Agent · 24 tokens