Skip to content

IgorWarzocha/Opencode-Roadmap

Repository files navigation

Opencode Roadmap Plugin

Persistent project roadmaps for OpenCode. Coordinates work across sessions and parallel Task tool subagents.

Why Use This?

OpenCode's built-in todo is session-scoped—it disappears when you restart. Task tool subagents are stateless—they can't see each other's work.

This plugin solves both:

  • Persists to disk — survives restarts, available across sessions
  • Shared context — subagents read the same roadmap to understand the bigger picture
  • Concurrent awareness — agents see what's in_progress and avoid conflicts

opencode-roadmap

Installation

Add to your opencode.json:

{
  "plugin": ["@howaboua/opencode-roadmap-plugin@latest"]
}

OpenCode installs it automatically on next launch.

Tools

createroadmap

Create or extend a project roadmap. Requires a feature list and a short spec for each feature.

"Create a roadmap with features: 1) Auth, 2) Profiles. Specs: Auth uses OAuth and must support password reset; Profiles needs avatar uploads and privacy settings"
  • Features group related work ("1", "2", "3") and include a brief spec
  • Actions are markdown task list items (- [ ] 1.01 ...) within features
  • New actions always start as pending
  • Append-only: existing IDs never change

readroadmap

View current state and progress.

"Show me the roadmap"
"What's the status of feature 2?"

Before delegating work to Task tool subagents, instruct them to read the roadmap first so they understand their assigned action within the broader plan.

updateroadmap

Change action status or description. Each update includes a brief note appended to the updates section.

"Mark action 1.01 as in_progress — Drafted schema notes"
"Action 2.03 is completed — Added tests for edge cases"

Statuses: pendingin_progresscompleted | cancelled

Transitions are flexible—you can revert if plans change. Only cancelled is terminal.

Auto-archives the roadmap when all actions reach completed.

Coordinating Parallel Work

When multiple subagents work simultaneously:

  1. Each reads the roadmap to see what's in_progress
  2. Agents stay focused on their assigned action only
  3. They avoid modifying files that belong to another in_progress action
  4. Errors outside their scope get noted, not fixed

This prevents conflicts when subagents run in parallel.

Workflow Example

You: "Plan out building a REST API with auth, users, and posts endpoints"

AI: Creates roadmap with 3 features, ~12 actions

You: "Implement feature 1"

AI: Reads roadmap → sees Feature 1 has 4 actions → uses todowrite for immediate steps → delegates to subagents → each subagent reads roadmap first → updates status when done

Storage

  • Active: Stored as a markdown roadmap alongside the project
  • Archived: Snapshot archived when complete

License

MIT

About

A set of tools that allow sharing a repo-wide todoliist between sessions.

Resources

License

Stars

Watchers

Forks