Skip to main content

Mouc

A YAML-based dependency tracker and automatic scheduler for project roadmaps.

What Mouc Does

Mouc takes a YAML file describing your work items and their dependencies, and produces:

  • Scheduled Gantt charts - automatically computed from dependencies, deadlines, priorities, and resource constraints
  • Dependency graphs - visualize what blocks what
  • Documentation - Markdown or Word docs, Gantt charts, and Graphviz/SVG graphs describing your roadmap

The scheduler handles the tedious work of figuring out when things should happen. You define what needs to happen, what it depends on, who can work on it, priorities, and any deadlines. Mouc computes a schedule that respects all constraints.

What Mouc Isn't

Mouc is not a full project management system. It doesn't have:

  • A web UI for editing (it's YAML + CLI)
  • Time tracking, budgets, or cost management
  • Collaboration features (comments, notifications, assignments)
  • Velocity tracking (though you could script this yourself; it's just YAML)

Mouc is for engineers and tech leads who want version-controlled roadmaps with real scheduling logic, not another GUI to babysit.

Mouc vs. Other Tools

Mouc complements tools like Jira rather than replacing them. Use Jira for ticket tracking and team collaboration; use Mouc for dependency-aware scheduling and roadmap generation.

Key differences from typical PM tools:

  • Automatic scheduling: Most tools (including Jira, even with plugins) require you to manually set dates and drag Gantt bars. Mouc computes dates automatically using a real scheduling algorithm.
  • YAML-first: Your roadmap lives in version control. Review changes in PRs. No proprietary database.
  • Workflow expansion: Define patterns like "design → signoff → implement → review" once, apply them to many items. The scheduler handles the phasing automatically.
  • Free and open source: MIT licensed.

The outputs (Mermaid Gantt charts, Graphviz graphs, Markdown) render in GitHub, GitLab, standard doc tools, or any static site. Run Mouc in CI to publish current roadmaps automatically.

Installation

uv pip install mouc   # recommended
# or
pip install mouc

Quick Example

Create feature_map.yaml:

metadata:
  version: 1.0

entities:
  database_layer:
    type: capability
    name: Database Abstraction Layer
    description: Core data access patterns
    meta:
      effort: "2w"
      resources: ["alice"]

  api_service:
    type: capability
    name: REST API Service
    description: Public API endpoints
    requires: [database_layer]
    meta:
      effort: "3w"
      resources: ["bob"]
      end_before: "2025-03-31"

  mobile_app:
    type: outcome
    name: Mobile App Launch
    requires: [api_service]
    links:
      - jira:MOBILE-100

Generate outputs:

# Scheduled Gantt chart
mouc gantt --start-date 2025-01-01 --output schedule.md

# Dependency graph
mouc graph --view all | dot -Tsvg -o deps.svg

# Documentation
mouc doc --output roadmap.md

The Gantt chart automatically schedules database_layer first, then api_service (after its dependency completes), and warns if the March 31 deadline can't be met.

Core Concepts

Entities and Dependencies

By default, Mouc provides three entity types:

  • Capabilities - technical work
  • User Stories - what others need from you
  • Outcomes - business goals

You can define your own entity types in mouc_config.yaml (see Configuration).

Specify dependencies with requires (what this needs) or enables (what this unblocks):

database_layer:
  enables: [api_service, batch_jobs]  # these need database_layer

api_service:
  requires: [database_layer]          # equivalent to above

There's no difference between using enables on the blocker or requires on the blocked; these are normalized to the same thing. Use what is most convenient.

Scheduling

Add metadata to enable automatic scheduling:

meta:
  effort: "2w"                    # how long (days, weeks, months)
  resources: ["alice", "bob"]     # who works on it
  end_before: "2025-03-31"        # hard deadline
  timeframe: "2025q1"             # target quarter/month/week

The scheduler uses a priority-based algorithm that:

  • Respects dependencies (B waits for A if B requires A)
  • Prevents resource conflicts (Alice can't do two things at once)
  • Prioritizes by deadline urgency and task duration
  • Propagates deadlines backward through dependency chains

See docs/scheduling.md for algorithm details including the bounded rollout feature for more-optimal decisions.

Workflows

Workflows expand a single entity into multiple phases with proper dependencies:

auth_redesign:
  type: capability
  name: Auth Redesign
  workflow: design_impl        # expands to design phase + implementation
  meta:
    effort: "2w"

This creates auth_redesign_design (floats freely) and auth_redesign (waits for design + signoff lag). Built-in workflows include design_impl, impl_pr, full, and phased_rollout. You can implement your own workflows with Python plugins.

See docs/workflows.md for details.

Resources

Define team members, availability, and assignment preferences:

# mouc_config.yaml
resources:
  - name: alice
    dns_periods:                  # do-not-schedule periods
      - start: 2025-12-20
        end: 2025-12-31

groups:
  backend_team: [alice, bob, charlie]

default_resource: "*"             # auto-assign unassigned tasks

In your feature map:

meta:
  resources: ["alice"]              # explicit
  resources: ["*"]                  # any available
  resources: ["alice|bob"]          # prefer alice, fall back to bob
  resources: ["backend_team"]       # anyone in the group
  resources: ["!john"]              # Anybody but john

See docs/resources.md for details.

Jira Integration

Sync metadata from Jira issues:

entities:
  auth_service:
    type: capability
    name: Auth Service
    links:
      - jira:AUTH-123           # pulls dates, status, assignee from Jira
mouc jira sync feature_map.yaml --dry-run   # preview changes
mouc jira sync feature_map.yaml --apply     # apply changes

The sync is read-only (Jira → Mouc) with configurable conflict resolution.

See docs/jira.md for setup and configuration.

Commands

Command Description
mouc gantt Generate Mermaid Gantt chart with automatic scheduling
mouc schedule Run scheduler and display or export results
mouc compare Compare schedule scenarios (CSV diff with deltas)
mouc report effort Generate effort report for a time range (CSV)
mouc graph Generate Graphviz dependency graph
mouc doc Generate Markdown or DOCX documentation
mouc jira sync Sync metadata from Jira
mouc jira validate Test Jira connection

Common options:

mouc gantt --output schedule.md --start-date 2025-01-01
mouc graph --view critical-path --target mobile_launch
mouc doc --format docx --output roadmap.docx
mouc --config mouc_config.yaml gantt

Customization

Styling

Write Python functions to customize graph colors, shapes, labels, and Gantt task appearance:

# my_styles.py
from mouc.styling import style_node

@style_node
def color_by_status(entity, context):
    if entity.meta.get('status') == 'done':
        return {'fill_color': '#90EE90'}
    return {}
mouc graph --style-file ./my_styles.py

Graph nodes can also be boxed into subgraph cluster_* groups by any entity field:

mouc graph --cluster-by meta.repo

List values cluster by their first entry, and entities without a value for the field render outside all clusters. For computed cluster keys or custom cluster order, write a @group_tasks function instead; such a function overrides the flag, which then has no effect at all.

See docs/styling.md for the full API.

Configuration

mouc_config.yaml controls resources, scheduling parameters, Jira integration, and output formatting:

resources:
  - name: alice
    jira_username: alice@company.com

scheduler:
  algorithm:
    type: parallel_sgs  # or bounded_rollout, cpsat
  strategy: weighted
  cr_weight: 10.0
  priority_weight: 1.0

jira:
  base_url: https://company.atlassian.net

gantt:
  group_by: type
  sort_by: start

See docs/config.md for all options.

Documentation

Development

git clone https://github.com/rnortman/mouc.git
cd mouc
uv pip install -e ".[dev]"

# Run tests and checks
pytest
pyright
ruff check src tests

About the Name

Mouc stands for "Mapping Outcomes, User stories, and Capabilities" - reflecting its origin as a dependency tracker for these three entity types. It has since grown into a full scheduling system, but the name stuck.

License

MIT License - see LICENSE file for details.

Metadata

Release files for mouc 0.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mouc 0.8.0
File Size Uploaded Provenance Actions
mouc-0.8.0.tar.gz 211.8 kB Without provenance Details for mouc-0.8.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for mouc 0.8.0
File Actions
mouc-0.8.0-cp313-cp313-manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ x86-64 Details for mouc-0.8.0-cp313-cp313-manylinux_2_28_x86_64.whl
mouc-0.8.0-cp312-cp312-manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-64 Details for mouc-0.8.0-cp312-cp312-manylinux_2_28_x86_64.whl
mouc-0.8.0-cp311-cp311-manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ x86-64 Details for mouc-0.8.0-cp311-cp311-manylinux_2_28_x86_64.whl
mouc-0.8.0-cp310-cp310-manylinux_2_28_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.28+ x86-64 Details for mouc-0.8.0-cp310-cp310-manylinux_2_28_x86_64.whl

Total release size: 3.1 MB

Release files / mouc-0.8.0.tar.gz

Download URL mouc-0.8.0.tar.gz
Size 211.8 kB
Tags Source
SHA-256 checksum
How to use checksums
1fe8bb05ecf8d56b0d94cb0f114568927d21637a343bf9458b8980a416f0c9c4
BLAKE2b-256 checksum
How to use checksums
3a83286b566c77559e07f618438b10877bbba6c0f8a82c470fb843093f3e34ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / mouc-0.8.0-cp313-cp313-manylinux_2_28_x86_64.whl

Download URL mouc-0.8.0-cp313-cp313-manylinux_2_28_x86_64.whl
Size 717.0 kB
Tags CPython 3.13 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
a9904941694c054b77578cc50af40a79c31ee69a884fdb19e41d95fd9039b378
BLAKE2b-256 checksum
How to use checksums
ff323febba6957daca082bbd2244a8051b583a661eea3c585b2263cb7af8b005
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / mouc-0.8.0-cp312-cp312-manylinux_2_28_x86_64.whl

Download URL mouc-0.8.0-cp312-cp312-manylinux_2_28_x86_64.whl
Size 717.7 kB
Tags CPython 3.12 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
1f1a27bd5fde82e912f34b27cc155c6f40fed3e9b5060472715f91f2bf9eb2c4
BLAKE2b-256 checksum
How to use checksums
bedb4da9a37426b286a498de369ba1bf3e678093efdd1020f083b9e6c00cc84a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / mouc-0.8.0-cp311-cp311-manylinux_2_28_x86_64.whl

Download URL mouc-0.8.0-cp311-cp311-manylinux_2_28_x86_64.whl
Size 716.3 kB
Tags CPython 3.11 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
594730be1df521a339f2a27785381735ea278ba2d68d26aecaf2a043677fedd4
BLAKE2b-256 checksum
How to use checksums
1302b173390f156d069fc20f9f978479a5762513036a21f736162fe58f14104a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / mouc-0.8.0-cp310-cp310-manylinux_2_28_x86_64.whl

Download URL mouc-0.8.0-cp310-cp310-manylinux_2_28_x86_64.whl
Size 717.4 kB
Tags CPython 3.10 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
91271c005b9890dcf174f4b73db834c06c4fb658bdf3b568e4b458e12847e27c
BLAKE2b-256 checksum
How to use checksums
f5049c05cf0045d6dc68d2f48e4890f73785001790168c828dcd6ab915ab721d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for mouc 0.8.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.8.0 This release

5 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page