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.3.0.tar.gz (32.9 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.3.0-py3-none-any.whl (314.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: morpheus_libs-0.3.0.tar.gz
  • Upload date:
  • Size: 32.9 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.3.0.tar.gz
Algorithm Hash digest
SHA256 a2a3bbd0a5959642fc06a207f5cf66feee8a59afd0ee12ffbb6a00b3069c9638
MD5 168ee2f0298e92ad4b18a75873030639
BLAKE2b-256 fb01b96c93a0891a673d33c22840839133280cba2eb475f8e6ee7d0e28a28216

See more details on using hashes here.

Provenance

The following attestation bundles were made for morpheus_libs-0.3.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.3.0-py3-none-any.whl.

File metadata

  • Download URL: morpheus_libs-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 314.3 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 379e009f2107da3bd6fbe4a749918865e45d2faa4cc92b015b423ce916981677
MD5 d16b5b22df0e16c7c05a7a3bf42ed0f2
BLAKE2b-256 5cf212d6c16abef523fd7c5a5bc0571fa7dec34d6c9c02a3b1f0922bc24b6ee1

See more details on using hashes here.

Provenance

The following attestation bundles were made for morpheus_libs-0.3.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