get-current-datetime

get-current-datetime is an agent for coding agents from fengshao1227/ccg-workflow. It costs 27 tokens per session (256 once invoked), scanned A, original, MIT.

A small agent that runs the system date command and returns only its raw output.

In plain words
What is it for?
Use it when a workflow needs the current date and time, including a standard timestamp, filename-safe format, readable format, or ISO format.
Why use it?
It provides a consistent, exact timestamp without extra wording or formatting being added.

Agent

Part of the ccg plugin — 58 skills, 12 commands, 7 agents shipped together

About the project

CCG is a command-line workflow engine that coordinates Claude, Codex, Gemini, and other models as specialized collaborators on coding tasks. It is used to analyze requests, choose a strategy, delegate work to model-specific roles, and combine their results. The catalogue entries provide the skills, commands, agents, and plugin that implement this workflow.

fengshao1227/ccg-workflow · 5,872 stars · on GitHub

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/fengshao1227/ccg-workflow/get-current-datetime
Clone the repo
git clone --depth 1 https://github.com/fengshao1227/ccg-workflow

Or install ccg, the plugin that ships this one along with the rest of its 58 skills, 12 commands, 7 agents.

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/fengshao1227/ccg-workflow/get-current-datetime.svg)](https://agentmods.dev/agents/fengshao1227/ccg-workflow/get-current-datetime)
Your own site
<a href="https://agentmods.dev/agents/fengshao1227/ccg-workflow/get-current-datetime"><img src="https://agentmods.dev/badge/agents/fengshao1227/ccg-workflow/get-current-datetime.svg" alt="Measured on agentmods" height="20"></a>
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 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.00027 $0.00256
Opus 5 $0.00014 $0.00128
Sonnet 5 $0.00005 $0.00051
Haiku 4.5 $0.00003 $0.00026

Measured 5d 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 5d 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/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. 5d 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 fengshao1227/ccg-workflow (5,872 stars, last pushed yesterday), 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. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.