Skip to main content

Morpheus framework - unified library package for AI-assisted development

Project description

Monorepo containing Morpheus, MAC, and CDG

Components

Morpheus - AI-First Development Framework

  • Standardized structure and code enforced rules to restrict your agents to known optimized processes
  • A core set of commonly used libraries, tools and agents in building LLM-based applications: llm proxy, document processing, vector search, etc.
  • A prompt optimization framework
  • Workflow-based context optimization system (80% token reduction)
  • Organizational standards (modes, workflows, observability) integrated from Organon project

Contains:

  • apps/ - User-facing applications
  • agents/ - AI agents and autonomous systems
  • tools/ - Development and deployment utilities (morpheus-cli, project-steward, document-store, codebase-scanner, search)
  • libs/ - Shared libraries and Python packages (LLM integration, document processing, telemetry)
  • templates/ - Project templates and workflow definitions for AI agents
  • admin/ - Framework management and maintenance
  • docs/ - Architecture documentation, sprint planning, and reference materials

MAC - Multi-repository Container Infrastructure

Infrastructure layer providing workspace management and containerized development environments. Uses a config to launch and configure tmux session to a claude session in a container with multiple repos and dirs mounted for a completely isolated multi-agent task work on a set of related repos.

Contains:

  • mac-workspace/ - Multi-repository workspace management with mount and environment configuration
  • devcontainer/ - Container infrastructure for AI development environments

CDG - Code Generation Domain

Specialized domain for Python-ObjectScript code generation with IRIS database integration.

Contains:

  • cdg/apps/ - CDG applications (web-translator FastAPI app, iris-execution Flask service)
  • cdg/agents/ - CDG-specific AI agents
  • cdg/tools/ - CDG-specific development tools
  • cdg/libs/ - CDG domain libraries (generation, analysis, knowledge management)

Quick Start

Installation

# Install all Morpheus packages (dev dependencies)
make install

# Install with full dependencies (includes ML/embedding for search)
make install-full

# Or install specific components manually
cd tools/morpheus-cli/
pip install -e .

Usage Examples

# Morpheus unified CLI
morpheus --help
morpheus plugins

# Project management and standards
morpheus steward sprints create 14 MyFeatureName
morpheus steward sprints list --status Current
morpheus steward validate project ./tools/my-tool
morpheus steward structure generate ./tools/my-tool

# CDG workspace management
morpheus cdg workspace init my-project
morpheus cdg workspace status

# MAC workspace management
morpheus mac_workspace init my-project

# Document tools
morpheus search index ./docs
morpheus doc-conv scan ./files

# Codebase analysis
codebase-scanner scan .
codebase-scanner validate . --rules sample-rules/python.yaml

System Validation

Quick Health Check

# Validate complete system (Sprint 06 integration test)
python tools/learning-integration-test/integration_test.py

Expected: All tests pass with " SUCCESS" status

Learning System Demo 🧬

# See genetic algorithm in action (35%  92% fitness improvement)
python apps/morpheus-evolve/demo_walkthrough.py

Expected: Complete learning walkthrough demonstrating prompt evolution

📖 Complete testing suite: docs/human-testing/

Documentation

Core Documentation

Architecture Documentation

Development Workflow

For AI Agents

  1. Read CLAUDE.md for organizational standards and navigation protocol
  2. Declare mode and workflow (see templates/workflows/README.md)
  3. Follow workflow-specific guidance for task at hand
  4. Use morpheus steward commands for project management
  5. Update .claude-state.md checkpoint for session continuity

For Humans

  1. Start with README.md files to understand components
  2. Check CLAUDE.md files in projects for development instructions
  3. Use shared components from libs/ when possible
  4. Follow established patterns within each category
  5. Maintain clear separation between project types

Navigation Pattern

  • Each directory has STRUCTURE.md for navigation (generate with morpheus steward structure generate)
  • Each project has CLAUDE.md for development instructions
  • README.md files explain what the code does (for engineers)
  • Use templates/workflows/ for workflow-specific guidance
  • Navigate systematically through the hierarchy

License

See individual project licenses within each directory.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

morpheus_libs-0.2.0.tar.gz (32.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

morpheus_libs-0.2.0-py3-none-any.whl (310.0 kB view details)

Uploaded Python 3

File details

Details for the file morpheus_libs-0.2.0.tar.gz.

File metadata

  • Download URL: morpheus_libs-0.2.0.tar.gz
  • Upload date:
  • Size: 32.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for morpheus_libs-0.2.0.tar.gz
Algorithm Hash digest
SHA256 8da14ef26ed8ab523289c042bb5c8324a9fec10502bd1cabc30426d499c51645
MD5 0c57e9ef30e4fbc694ea45ff011afd3f
BLAKE2b-256 640062a9dbd0615a0fcc6e6003fb4cb7a452b71606b4de53c28821230f6055c5

See more details on using hashes here.

Provenance

The following attestation bundles were made for morpheus_libs-0.2.0.tar.gz:

Publisher: publish.yml on pjsulin/morpheus

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file morpheus_libs-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: morpheus_libs-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 310.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for morpheus_libs-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 27b6a3a476cffad162ec7f2d86faadcd8a6a7263dc8e26349627f9bc17691be0
MD5 d44093742966330586d0ec47cff053ac
BLAKE2b-256 920dba2b913624f7c9ec7e00618b72ec3c9ffd159813978b1bf4a26c23788f7c

See more details on using hashes here.

Provenance

The following attestation bundles were made for morpheus_libs-0.2.0-py3-none-any.whl:

Publisher: publish.yml on pjsulin/morpheus

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page