IVRZ-da/agentiker-plan-follow
Structured plan creation & task enforcement for Hermes Agent — review gates, parallel groups, auto-verify, git integration, 12 templates
plan_follow is a Hermes plugin for creating and managing structured plans with task dependencies, parallel groups, and review gates. It supports automatic verification when completing a plan, auto-commit on task completion, plan validation, archiving and restoration, due dates, and Git-related tools.
- Plans can use templates and task dependencies.
- Review uses an independent reviewer subagent pattern.
- Git tools cover branches, stashing, status, and pull requests.
full readme from github
📋 plan_follow — Hermes Plugin
Structured plan creation, task enforcement, review gates, parallel groups, auto-verify/commit, plan validation, due dates, archive/restore, and session isolation.
39 tools · 3 hooks · 13 templates · 1556 tests · 0.5.33
📋 Table of Contents
- ✨ Why?
- 🚀 Quick Start
- 🛠 Tools
- 📦 Installation
- 🏗 Architecture
- 📝 Templates & Review Profiles
- 🧪 Development
- 📄 Changelog
- 🤝 Contributing
- 📄 License
✨ Why?
Hermes ships with todo and basic task tracking. When you need structured multi-step plans — with dependencies, parallel execution, review gates, auto-verification, and git integration — you'd normally juggle manual checklists and external tools.
plan_follow turns plan management into enforceable agent workflows:
| Feature | What it does |
|---|---|
| Task Dependencies | depends_on array for ordered execution |
| Parallel Groups | Multiple tasks run in parallel within a group, groups run sequentially |
| Review Gates | 6 review profiles with independent reviewer subagent pattern |
| Auto-Verify | Automatic verify command execution on plan_complete |
| Auto-Commit | Git commit on task completion |
| Drift Detection | Git diff against task scope on every verify |
| Archiving | Soft delete via plan_archive / plan_restore |
| Due Dates | Per-task deadlines with automatic banner warnings (🟡 SOON / 🔴 OVERDUE) |
| Git Integration | 9 tools for branch, commit, stash, PR creation |
| Cross-Session | Locks, notifications, session overview for parallel workers |
| 12 Templates | deploy, bugfix, feature, refactoring, research, analysis, fix, and more |
The result: editor-grade plan management in the terminal — your plans are always up-to-date, verified, and versioned.
🚀 Quick Start
Installation
cd ~/.hermes/plugins
git clone https://github.com/IVRZ-da/agentiker-plan-follow.git
cd agentiker-plan-follow
pip install -e .
Create and run a plan
# 1. Create a plan (template-based)
plan_create(goal="Fix login validation", template="bugfix",
params={ "files": ["lib/validation.ts"] })
# 2. Show the current task
plan_current() # "p1: Write a failing test for validation"
# 3. Complete a task — auto-verify + auto-commit
plan_complete("p1", auto_verify=True, auto_commit=True)
# 4. Review a task before completion
plan_review("p2", profile="unit-test")
# 5. Management — archive, git, PR
plan_list() # List all plans
plan_validate() # Check plan integrity
plan_archive("2026-06-18-fix-validation") # Archive completed plan
plan_git_branch(action="create", name="feature/validation") # Git branch
plan_pr_create(title="Fix validation", body="...") # Create PR
Version: 0.5.46
Tests: 1755 tests
Tools (39):
Profiles:
| Profile | Tools | Description |
|---|---|---|
none |
— | Kein Review (Default) |
unit-test |
— | Tests + Coverage + Edge-Cases |
api-route |
— | API-Routen: Validierung + Error-Handling + Security |
ui-component |
— | React/UI: A11y + SSR + State + Forms + Mobile |
security |
— | Secrets + Injection + XSS + Auth |
full |
— | Alle Checks kombiniert |
Cross-Session — Locks, Notifications (4 Tools)
| Tool | Description |
|---|---|
plan_coord_cleanup |
Clean the shared coordination state: removes stale sessions and file locks. Run it before touching files that a crashed session still holds. |
plan_lock |
Manage resource locks for cross-session coordination. |
plan_notify |
Send a notification to another session or check own notifications. |
plan_session |
Show active sessions with their plans, locks, and pending notifications. |
Git Integration — Branch, Commit, PR (9 Tools)
| Tool | Description |
|---|---|
plan_git_branch |
Manage git branches in configured repos. |
plan_git_init |
Initialize a Git repository in ~/.hermes/plans/ for plan versioning. |
plan_git_push |
Push committed changes to remote for all configured repos. |
plan_git_stash |
Stash or unstash uncommitted changes in configured repos. |
plan_git_status |
Show comprehensive git status for all configured repos. Returns branch name, dirty flag, ahead/behind count, and last commit message for each repo. |
plan_git_sync |
Pull to add to commit to push in one step for all configured repos. |
plan_git_tag |
Create, list, or delete git tags in configured repos. |
plan_history |
Show git-based plan version history. |
plan_pr_create |
Create a Pull Request via Forgejo API for all configured repos. |
Plan Lifecycle — Create & Complete (5 Tools)
| Tool | Description |
|---|---|
plan_abort |
Abort the active plan or a specific task. |
plan_complete |
Complete the current task, verify it, advance to the next one. |
plan_create |
Create the tracked plan for any task >~2 minutes. Default planner — never write an ad-hoc markdown plan. |
| Supply the tasks either as template=... | |
plan_current |
Show the current task. ONLY ONE task is returned at a time — you see only what needs to be done now. Returns task details including allowed files, ... |
plan_todo |
Manage your task list for the active plan. |
Plan Management — List, Select, Archive (7 Tools)
| Tool | Description |
|---|---|
plan_archive |
Move a plan to the archive directory (soft delete). |
plan_delete |
Permanently delete a plan from disk. |
plan_list |
List all plans (including completed and aborted ones), newest first. Returns plan_id, goal, progress, and whether each plan is currently active. Us... |
plan_restore |
Restore a plan from the archive back to the plans directory. |
plan_select |
Switch to a different saved plan as the active one. |
plan_suggest |
Suggest a plan decomposition for a goal by analyzing the project. |
plan_template |
Manage user-defined plan templates. |
Roadmap & Decomposition (3 Tools)
| Tool | Description |
|---|---|
plan_decompose |
Manage hierarchical task decomposition (compound tasks with sub-tasks). |
plan_roadmap |
Manage roadmaps — strategic phase overviews. |
plan_sync |
Sync plans with external systems. |
Status & Review — Track & Verify (7 Tools)
| Tool | Description |
|---|---|
plan_auto_review |
Prepare a complete review in one call — reads files, measures test coverage, and builds the delegate_task prompt. |
plan_review |
Review a task's files using an independent reviewer subagent. |
plan_review_profiles |
Show all available review profiles with their names, descriptions, and checks. Use this to see what each profile validates before selecting one for... |
plan_review_save_result |
Save a review result for a task. |
plan_status |
Show all tasks with their current status (pending/in_progress/completed/blocked). Returns a progress overview with counts and blocked-by reasons. |
plan_update |
Update a task's properties without aborting the plan. |
plan_verify |
Check for drift: compare current git changes against the plan's task scope. Returns list of unplanned files if drift detected. Call this before pla... |
Time Tracking & Simulation (2 Tools)
| Tool | Description |
|---|---|
plan_simulate |
Simulate a plan to find critical path and parallelization opportunities. |
plan_time |
Track time spent on tasks. |
Validation & Deadlines (2 Tools)
| Tool | Description |
|---|---|
plan_duedate |
Set or view a due date for a task. |
plan_validate |
Validate the integrity of a plan. |
Recent Changelog
[0.5.46] — 2026-11-25
Nudge nennt den Aufruf, der wirklich funktioniert
Der pre_llm_call-Hinweis bei fehlendem Plan war unter Tool Search unbrauchbar: er
nannte tool_call(name='plan_create', arguments={...}), was kein gültiger Aufruf ist
(der Sanitizer repariert das nur manchmal), und behauptete zugleich, plan_create
liege eager im Set — stimmt nur ohne Bridge.
Jetzt zustandsabhängig: ohne Bridge der direkte Tool-Name, mit Bridge der kopierbare
Block tool_call({"calls":[{"name":"plan_create","arguments":{...}}]}), auf zwei
Zeilen unter der 96-Zeichen-Kappung von _build_banner. Neu:
tests/test_nudge_lines.py (12 Tests, davon einer rot ohne den Fix) — einmal pro
Session, Plattform-Skip (cron/webhook/headless/kanban/api), Zeilenlänge in beiden
Zweigen.
README: Abschnitt „Tools under tool_search (deferral)" mit dem calls-Format,
Batching mehrerer Kontroll-Tools in einem Aufruf, und was enabled: off kostet.
[0.5.45] — 2026-11-23
Review-Profil code-intel
Neues Profil für Umbauten an bestehendem Code. Es prüft, was ein Kompilierlauf nicht sieht:
code_intel_diagnostics—code_lsp op=diagnosticsauf den geänderten Dateien ist leer (statt auf den Build zu warten)code_intel_impact_checked—code_graph op=impactwurde vor Symbol- Änderungen bemüht (Blast-Radius bekannt)no_unused_symbols—code_review op=unused_findermeldet keine neuen verwaisten Symboleno_structural_drift— Umbenennungen liefen übercode_edit op=rename
Registriert in VALID_REVIEW_PROFILES und VALID_PROFILES (Peer-Review),
Beschreibungen in get_check_description. Aufruf:
review_profile: "code-intel" im Task.
[0.5.44] — 2026-11-23
🔇 Welle 4: Peer-Review-Rauschen entfernen
Beim Anlegen des Welle-3-Plans meldete der Peer Review zwei „important"-Befunde für Tasks, die nichts falsch gemacht hatten. Beide Meldungen stammten aus Namensheuristiken mit Substring-Matching — und beide brachten einen Auto-Fix mit, der nichts veränderte. Genau dieses Rauschen lässt echte Befunde untergehen.
P3-19 — depends_on-Heuristik
- Die Prüfung war
word in task_namegegen{use, run, test, deploy, migrate, update, build}. „Änderungen" trafrun, „because" trafuse, „Runner" trafrun. Ergebnis: fast jeder Code-Task bekam einen Befund. - Jetzt
\b-Wortgrenzen, und gemeldet wird nur, wenn es tatsächlich einen früheren Task gibt, dessen Name nach Vorarbeit klingt (setup/init/migrate/install/bootstrap/seed) und der dieselben Dateien anfasst. Ohne Kandidat gibt es keine Aussage — also keine Meldung.
📦 Installation
1. Plugin aktivieren
Enable in ~/.hermes/config.yaml:
plugins:
enabled:
- plan_follow
Requires Hermes restart (/new or daemon restart).
2. Dependencies installieren
# Ins Hermes-Venv installieren
cd ~/.hermes/plugins/plan_follow
~/.hermes/hermes-agent/venv/bin/pip install -e .
Dependencies: rich>=13.0, PyYAML>=6.0, packaging>=24.0
🏗 Architecture
plugin.yaml — v0.5.17 manifest
__init__.py — register() entry point, tool registration, schemas
plan_core.py — Data model, JSON persistence, plan CRUD, validation
plan_tools.py — Tool handler implementations (17 tools)
plan_hooks.py — pre_llm_call + post_tool_call hooks
plan_templates.py — 6 built-in templates + YAML user template support
plan_review.py — Review dispatch, prompt building, result validation
review_profiles.py — 6 review profile definitions
skills/ — Companion skill for LLM awareness
tests/ — 217 tests
CHANGELOG.md — Release history
⚠️ Limitations
| Area | Limitation | Workaround |
|---|---|---|
| Session Isolation | Plans not automatically shared across Hermes sessions | Use plan_select() to load a plan from disk in a new session |
| Review Profiles | Only 6 built-in profiles available | Custom profiles require plugin modification |
| Git Branching | Auto-commit only supports plan_complete context |
Manual git operations for complex workflows |
| Due Dates | Soft enforcement (banner warnings only) | Agent must self-enforce via plan_verify |
| Drift Detection | Only compares git state against task scope | Not a full audit trail |
| Templates | Free-form plans not supported | Task structure must match template format (by design) |
🔍 Tools under tool_search (deferral)
When Hermes' Tool Search is active (tools.tool_search.enabled is not off), plugin
tools are not in the prompt. Only tool_search, tool_describe and tool_call are
visible, and every plan_* tool sits behind that bridge — except the three hot-path
controls (plan_create, plan_current, plan_complete), which this plugin keeps eager
through its core-toolset rebind. Calling a deferred one directly fails with
"not a directly-listed tool".
The bridge takes a calls array, not named arguments:
tool_call({"calls":[{"name":"plan_create",
"arguments":{"goal":"...","tasks":[...]}}]})
Batch related controls in one call — plan_current before plan_complete, for example —
so the extra round trip is paid once instead of per tool:
tool_call({"calls":[{"name":"plan_current","arguments":{}},
{"name":"plan_complete","arguments":{"task_id":"n1"}}]})
The pre_llm_call nudge names the correct form for the current state: the direct tool
name when no bridge is active, the copyable calls block when there is one.
Cost of turning it off. hermes config set tools.tool_search.enabled off puts all 39
schemas into every prompt (11k tokens). If you only need the control path, keep the
bridge: 1.2k tokens) without the bridge.plan_create, plan_current and plan_complete are the three tools a plan loop
actually calls, and they cost ~4.8k characters (
Catalog note. hermes plugins validate reports no core override for this plugin
because it marks those three tools eager by way of toolsets._HERMES_CORE_TOOLS, which
catalog rule 9 forbids. That rebind is the local-only path until Hermes offers a public
eager seam.
🤖 Subagent-Integration
| Feature | Description |
|---|---|
| Review Subagent | plan_review spawns an independent reviewer subagent via delegate_task, passing files, review profile, and scope |
| Auto-Review | plan_auto_review prepares a complete review prompt — reads files, measures test coverage, and builds the delegate_task payload |
| Review Profiles | 6 profile templates (none, unit-test, api-route, ui-component, security, full) that configure the reviewer's focus and depth |
| auto_peer_review | Optional post-create review: plan_create auto-launches a peer review subagent when enabled |
| Session Isolation | pre_llm_call hook uses in-memory cache only — no plan leakage across subagent task delegations |
| Plugin Hooks | pre_llm_call + post_tool_call hooks integrate with the Hermes agent lifecycle for drift tracking, health checks, and coordination |
| Plan Validation | plan_validate checks consistency across dependencies, cycles, profiles, and orphan tasks — useful for subagent workflow validation |
| Auto-Verify/Commit | plan_complete(task_id, auto_verify=True, auto_commit=True) chains verification and git commit as a single subagent action |
Test Suite
cd ~/.hermes/plugins/plan_follow
# Run tests
python3 -m pytest tests/ -q --tb=short
# With coverage
python3 -m pytest tests/ --cov=. -q --tb=short
# Ruff Lint
python3 -m ruff check . --select F,E,T,W,I
# README auto-generieren
python3 scripts/generate_readme.py # Update
python3 scripts/generate_readme.py --check # Verify (exit 1 if stale)
# Pre-Commit Hook aktivieren
git config core.hooksPath .githooks
Currently: 1556 tests, coverage enforced via pre-commit hook.
📄 Changelog
See CHANGELOG.md for full release history.
🤝 Contributing
- Fork the repo
- Create a feature branch
- Add tests for your changes (Coverage ≥ 90%)
- Run
python3 -m pytest tests/ -q— all tests must pass - Open a PR
See CONTRIBUTING.md for details.