directory-monitor

directory-monitor is an agent for Claude Code from FortiumPartners/ensemble. It costs 27 tokens per session (318 once invoked), scanned A, original, MIT.

An agent that watches a project directory for file changes and reacts when the changes pass a configured threshold.

In plain words
What is it for?
Use it to monitor directories, detect significant changes, and automatically run the fold-prompt command to update project documentation.
Why use it?
It helps keep project notes and context from becoming outdated as files change.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the ensemble-core plugin — 2 skills, 6 agents shipped together

Good fit Use it to monitor directories, detect significant changes, and automatically run the fold-prompt command to update project documentation.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/fortiumpartners/ensemble/directory-monitor
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/FortiumPartners/ensemble

Made for: Claude Code.

Or install ensemble-core, the plugin that ships this one along with the rest of its 2 skills, 6 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 directory-monitor

README.md
[![agentmods](https://agentmods.dev/badge/agents/fortiumpartners/ensemble/directory-monitor/github.svg)](https://agentmods.dev/agents/fortiumpartners/ensemble/directory-monitor)
Your own site
<a href="https://agentmods.dev/agents/fortiumpartners/ensemble/directory-monitor"><img src="https://agentmods.dev/badge/agents/fortiumpartners/ensemble/directory-monitor/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 directory-monitor

Your own site · 80×15
<a href="https://agentmods.dev/agents/fortiumpartners/ensemble/directory-monitor"><img src="https://agentmods.dev/badge/agents/fortiumpartners/ensemble/directory-monitor.svg" alt="Reviewed on agentmods" width="80" 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 318 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.00027 $0.00318
Opus 5 $0.00014 $0.00159
Sonnet 5 $0.00005 $0.00064
Haiku 4.5 $0.00003 $0.00032

Measured 12d ago against content hash 57aef47a9d78, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

directory-monitor 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 12d 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.

packages/core/agents/directory-monitor.md · 31 lines

What it actually says

Mission

You are a directory monitoring specialist responsible for real-time project directory surveillance, intelligent change detection, and automated workflow triggering. Your primary mission is maintaining project context awareness by detecting significant changes (10% threshold) and automatically executing the /fold-prompt command to update project documentation.

Core Philosophy: Proactive monitoring prevents context drift. Automated workflows keep documentation synchronized with codebase evolution.

Boundaries

Handles: You are a directory monitoring specialist responsible for real-time project directory surveillance, intelligent change detection, and automated workflow triggering. Your primary mission is maintaining project context awareness by detecting significant changes (10% threshold) and automatically executing the /fold-prompt command to update project documentation.

Does Not Handle: Delegate specialized work to appropriate agents

Responsibilities

High Priority

  • Primary Responsibility: You are a directory monitoring specialist responsible for real-time project directory surveillance, intelligent change detection, and automated workflow triggering. Your primary mission is maintaining project context awareness by detecting significant changes (10% threshold) and automatically executing the /fold-prompt command to update project documentation.

Core Philosophy: Proactive monitoring prevents context drift. Automated workflows keep documentation synchronized with codebase evolution.

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. 12d ago First seen · 31 lines · 27 tokens per session scan A 57aef47a9d78

Subscribe to this mod's changes

directory-monitor is an agent published in the GitHub repository FortiumPartners/ensemble (12 stars, last pushed today), licensed MIT. It adds 27 tokens to every session and 318 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.

Related

Other agents, from other repositories

joycraft-verifier

Independent verification agent — checks implementation against spec, read-only.

maksutovic/joycraft · 16 tokens

joycraft-researcher

Independent research agent — sees only questions, never the brief.

maksutovic/joycraft · 17 tokens

iloom-issue-complexity-evaluator

Use this agent when you need to quickly assess the complexity of an issue before deciding on the appropriate workflow. This agent performs a lightweight scan to classify issues as SIMPLE or COMPLEX based on estimated scope, risk, and impact. Runs first before any detailed analysis or planning.

iloom-ai/iloom-cli · 64 tokens

iloom-wave-verifier

Wave verification agent that checks must-have criteria from child issues after each swarm wave, invokes fix skills for failures, and reports structured results.\n\nExamples:\n \nContext: Orchestrator wants to verify that wave 1 work meets acceptance criteria\nuser: "Verify must-haves for issues #101, #102, #103 from…

iloom-ai/iloom-cli · 0 tokens

iloom-framework-detector

Use this agent to detect a project's language and framework, then generate appropriate build/test/dev scripts for non-Node.js projects. The agent creates .iloom/package.iloom.json with shell commands tailored to the detected stack. Use this for Python, Rust, Ruby, Go, and other non-Node.js projects that don't have a…

iloom-ai/iloom-cli · 76 tokens

iloom-issue-phase-verifier

Use this agent after an implementation phase completes to independently verify that the phase's must-haves/invariants from the plan are actually met in the worktree. The agent gathers its own evidence (reads files, runs targeted tests) and returns a GO/NO-GO verdict per must-have. It reports violations but never fixes…

iloom-ai/iloom-cli · 308 tokens