get-current-datetime

An agent instruction for running the system date command and returning only its raw output.

In plain words
What is it for?
Use it when an exact timestamp is needed in the specified format. The agent must not add explanations, headings, Markdown, or other text.
Why use it?
It prevents extra wording or formatting when another process needs an exact current date and 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/qinye6/pi-ccg/get-current-datetime
Clone the repo
git clone --depth 1 https://github.com/qinye6/pi-ccg
Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 256 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod 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.00027 $0.00256
Opus 5 $0.00014 $0.00128
Sonnet 5 $0.00005 $0.00051
Haiku 4.5 $0.00003 $0.00026

Measured 3d ago against content hash 5b2c2ade3c99, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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

This is a copy

100% identical to get-current-datetime — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

templates/commands/agents/get-current-datetime.md · 30 lines

What it actually says

执行 date 命令并仅返回原始输出。

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

不添加任何文本、标题、格式或说明。 不添加 markdown 格式或代码块。 不添加"当前日期和时间是:"或类似短语。 不使用并行代理。

只返回原始 bash 命令输出,完全按其显示的样子。

示例响应:2025-07-28 23:59:42

如果需要特定格式选项:

  • 文件名格式:添加 +"%Y-%m-%d_%H%M%S"
  • 可读格式:添加 +"%Y-%m-%d %H:%M:%S %Z"
  • ISO 格式:添加 +"%Y-%m-%dT%H:%M:%S%z"

使用 get-current-datetime 代理来获取准确的时间戳,而不是手动编写时间信息。

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. 3d ago First seen · 30 lines · 27 tokens per session scan A 5b2c2ade3c99

Subscribe to this mod's changes

get-current-datetime is an agent published in the GitHub repository qinye6/pi-ccg (10 stars, last pushed 8d ago), licensed MIT. It adds 27 tokens to every session and 256 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to get-current-datetime, differing in 0 lines, and is treated as a copy.