periodic-planning

periodic-planning is a cursor rule for Cursor from lwyBZss8924d/DeepSearchAgents. It costs 0 tokens per session (463 once invoked), scanned A, original, MIT.

A rule for making a research agent pause at set intervals and reconsider its plan. The agent reviews its progress, missing information, search approach, and remaining tasks.

In plain words
What is it for?
Use it when building or configuring ReAct or CodeAct research agents that need regular strategy checks while gathering information.
Why use it?
It reduces the risk of an agent continuing with a poor initial plan after new information changes the situation. Periodic reviews help keep complex searches focused.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when building or configuring ReAct or CodeAct research agents that need regular strategy checks while gathering information.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/lwybzss8924d/deepsearchagents/periodic-planning
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/lwyBZss8924d/DeepSearchAgents

Made for: Cursor.

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 periodic-planning

README.md
[![agentmods](https://agentmods.dev/badge/rules/lwybzss8924d/deepsearchagents/periodic-planning/github.svg)](https://agentmods.dev/rules/lwybzss8924d/deepsearchagents/periodic-planning)
Your own site
<a href="https://agentmods.dev/rules/lwybzss8924d/deepsearchagents/periodic-planning"><img src="https://agentmods.dev/badge/rules/lwybzss8924d/deepsearchagents/periodic-planning/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 periodic-planning

Your own site · 80×15
<a href="https://agentmods.dev/rules/lwybzss8924d/deepsearchagents/periodic-planning"><img src="https://agentmods.dev/badge/rules/lwybzss8924d/deepsearchagents/periodic-planning.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 463 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.00000 $0.00463
Opus 5 $0.00000 $0.00231
Sonnet 5 $0.00000 $0.00093
Haiku 4.5 $0.00000 $0.00046

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

Security

Grade A, and why

periodic-planning 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 10d 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.

.cursor/rules/periodic-planning.mdc · 77 lines

How it starts

The opening of the file, as written. The whole thing — 77 lines — stays where its author put it; the contents beside it link to each section on GitHub.

DeepSearchAgent Periodic Planning

DeepSearchAgent v0.2.4 introduces periodic planning capability for both agent types, allowing strategic reassessment during complex search tasks.

Concept

Periodic planning helps agents maintain focus and adapt their search strategy as they gather new information. Instead of blindly following an initial plan, agents reassess at regular intervals to:

  1. Evaluate progress on the current goal
  2. Identify gaps in the information collected
  3. Adjust search strategy based on discoveries
  4. Prioritize remaining sub-tasks

Implementation

ReAct Agent

In agent.py, the ReAct agent implements planning with:

# Set planning interval (default: 7)
planning_interval = planning_interval

The planning process involves:

  • Initial planning at the start of a task
  • Periodic planning every planning_interval steps
  • Sending special planning prompts to the LLM to reconsider its approach

CodeAct Agent

In codact_agent.py, the CodeAct agent uses:

# Set planning interval (default: 5)
search_planning_interval = planning_interval

The CodeAct planning involves:

  • Detailed strategy assessment in Python code
  • State tracking for visited URLs, search queries, etc.
  • Python-based plan adjustments

Configuration

Planning intervals can be configured in:

  1. config.toml:

    agents:
      react:
        planning_interval: 7
      codact:
        planning_interval: 5
    
  2. Command line:

    # For ReAct agent
    python -m src.agents.cli --agent-type react --react-planning-interval 10
    
    # For CodeAct agent
    python -m src.agents.cli --agent-type codact --planning-interval 8
    

Benefits

  • More coherent search strategy over long tasks
  • Better adaptation to discovered information
  • Reduced "tunnel vision" where agent follows initial assumptions
  • Improved handling of complex, multi-part research questions

Read the full file on GitHub · 77 lines

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. 10d ago First seen · 77 lines · 0 tokens per session scan A 63bacd70d965

Subscribe to this mod's changes

periodic-planning is a cursor rule published in the GitHub repository lwyBZss8924d/DeepSearchAgents (135 stars, last pushed 1y ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 463 tokens. 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.