Pheromind is a cutting-edge AI agent orchestration framework designed for the autonomous management and execution of complex projects, particularly geared towards intricate software development lifecycles adhering to an AI-Verifiable Methodology. This methodology ensures that project progress is tracked through concrete, measurable, and AI-confirmable outcomes.
At its heart, Pheromind employs a pheromone-based swarm intelligence model. A diverse collective of specialized AI agents collaborates and adapts by interacting indirectly through a shared state medium. A cornerstone of Pheromind's innovation is its βοΈ @orchestrator-pheromone-scribe
. This central agent interprets rich, natural language summaries from high-level Task Orchestratorsβnarratives detailing project progress and AI-verifiable resultsβand translates them into structured, actionable "digital pheromones" or :signals
and human-centric documentation registry updates. These are stored in the .pheromone
file, guiding the swarm's behavior, enabling dynamic task allocation, robust state management, and emergent problem-solving, all while maintaining a clear, human-auditable trail.
Pheromind isn't just about automating tasks; it's about creating an adaptive, intelligent system that can navigate the complexities of modern project execution with a focus on verifiable deliverables and a level of autonomy previously unattainable.
Pheromind Discord Server: https://discord.gg/rTq3PBeThX
Watch the full setup video to see these steps in action:
To grasp the power of Pheromind, familiarize yourself with these foundational principles:
-
π§ Pheromone-Based Swarm Intelligence (Stigmergy): Inspired by social insects, Pheromind agents interact indirectly through a shared environment β the
.pheromone
file. This file contains structured JSON:signals
representing project state and adocumentationRegistry
tracking human-readable project artifacts. Agents "sense" these signals and Task Orchestrators provide natural language summaries that the Pheromone Scribe uses to "deposit" new trails. This "pheromone landscape" guides agent actions, fostering decentralized yet coordinated work. -
π― AI-Verifiable Project Execution: Pheromind champions a methodology where project progression is defined by tasks with AI-Verifiable End Results. The
π @orchestrator-project-initialization
creates a Master Project Plan detailing phases and micro-tasks, each with specific, programmatically checkable completion criteria (e.g., file existence with correct schema, script execution without error, all tests in a suite passing). Task Orchestrators ensure their delegated worker tasks adhere to these verifiable outcomes, making progress unambiguous and AI-auditable. -
βοΈ Autonomous Task Orchestration with Verifiable Outcomes: Once initiated with a high-level objective (e.g., a User Blueprint), Pheromind autonomously manages the project workflow. The
π§ @uber-orchestrator
strategically delegates phases to Task-Specific Orchestrators, guided by the current.pheromone
state. These orchestrators, in turn, assign granular tasks to Worker Agents, ensuring each task has an AI-verifiable end result. Progress, reported as rich natural language summaries detailing these verifiable outcomes, is processed by the Pheromone Scribe to update the global state, allowing the system to dynamically adjust its strategy. -
π¬ Structured
:signals
β The Language of the Swarm's Interpreted State::signals
are the lifeblood of Pheromind's internal state representation. Generated exclusively by theβοΈ @orchestrator-pheromone-scribe
's interpretation of natural language summaries, they are machine-readable, structured JSON objects stored in the.pheromone
file'ssignals
array. Each:signal
influences swarm behavior and typically includes:id
,signalType
,target
,category
,strength
,message
,data
(extracted specifics),timestamp_created
&last_updated_timestamp
. These:signals
are dynamic, subject to rules (evaporation, amplification, pruning) governed by the separate.swarmConfig
file, which the Scribe uses.
-
π£οΈ Natural Language Summary Interpretation β The Scribe's Keystone Role: This is where Pheromind translates complex progress into structured state:
- Worker Agents complete granular tasks, producing AI-verifiable outputs (e.g., a spec file, tested code) and a detailed, natural language
Summary
report of their actions, outcomes, and verification status for their parent Task Orchestrator. - Task-Specific Orchestrators aggregate these worker summaries and details of their own phase-management activities (which also involve tracking AI-verifiable phase goals) into a single, comprehensive natural language summary report.
- This narrative is dispatched to the
βοΈ @orchestrator-pheromone-scribe
. - The Pheromone Scribe, using sophisticated
interpretationLogic
(defined in the external.swarmConfig
file), translates this rich natural language summary into precise, structured JSON:signals
and updates to thedocumentationRegistry
within the.pheromone
file. This unique capability allows the swarm to react to nuanced updates, beyond rigid protocols, and track human-readable documentation.
- Worker Agents complete granular tasks, producing AI-verifiable outputs (e.g., a spec file, tested code) and a detailed, natural language
-
π Human-Centric Documentation Trail: Throughout the project, agents (especially workers like spec writers, architects, coders with TDD, and dedicated documentation writers) produce human-readable artifacts (plans, specifications, architectural documents, code, test reports, final documentation). The Pheromone Scribe, through its interpretation of summaries, populates a
documentationRegistry
within the.pheromone
file. This registry tracks these vital documents, making project progress, decisions, and potential issues transparent and understandable to human supervisors and developers.
Pheromind's architecture revolves around specialized AI agents, a central state file managed by the Scribe, and a configuration file guiding the Scribe's interpretation.
-
The
.pheromone
File: The Swarm's Shared Understanding & Documentation Hub This single JSON file, exclusively managed by theβοΈ @orchestrator-pheromone-scribe
, acts as the central repository for the swarm's current interpreted state and documentation pointers. It contains two primary top-level keys:signals
: An array of structured JSON:signal
objects representing the current "pheromone landscape."documentationRegistry
: A JSON object mapping to and describing key human-readable project documents (specifications, architecture, plans, reports), essential for human oversight and agent context. The Scribe never writes configuration data (from.swarmConfig
or.roomodes
) into this file.
-
The
.swarmConfig
File: The Scribe's Interpretation Rulebook A separate JSON file (e.g.,project_root/.swarmConfig
) containing all operational parameters for signal dynamics and, most importantly, theinterpretationLogic
. This logic (rules, patterns, semantic mappings) dictates how the Pheromone Scribe translates incoming natural language summaries into structured:signals
anddocumentationRegistry
updates. The Scribe loads this file at the start of its cycle and never modifies it. -
The
.roomodes
File: Agent Definitions This file contains the JSON definitions for all Pheromind agents, detailing their roles, specific instructions, and capabilities.
-
βοΈ @orchestrator-pheromone-scribe
(The Pheromone Scribe) The intelligent gatekeeper and sole manipulator of the.pheromone
file.- Loads
interpretationLogic
from the.swarmConfig
file. - Loads the current
.pheromone
file (or bootstraps an empty one:{"signals": [], "documentationRegistry": {}}
). - Receives comprehensive natural language summaries and handoff reason codes from Task Orchestrators.
- Interprets this NL summary using its
interpretationLogic
to understand completed work, AI-verifiable outcomes, new needs, problems, and generated documentation. - Generates/Updates structured JSON
:signals
in thesignals
array and entries in thedocumentationRegistry
. - Manages signal dynamics (evaporation, amplification, pruning) applied only to signals.
- Persists the updated
signals
anddocumentationRegistry
to the.pheromone
file. - Activates the
π© @head-orchestrator
to continue the project flow.
- Loads
-
π© @head-orchestrator
(Plan Custodian Initiator) Initiates the project by passing its initial prompt (e.g., User Blueprint details) directly to theπ§ @uber-orchestrator
. -
π§ @uber-orchestrator
(Pheromone-Guided Delegator & Verifiability Enforcer) The primary strategic decision-maker.- State & Documentation Awareness: Reads the
.pheromone
file (signals anddocumentationRegistry
) and consults referenced documents to understand the global project state and ensure human programmer clarity. - Strategic Delegation to Orchestrators: Based on project goals and the current "pheromone landscape," delegates major work phases exclusively to appropriate Task-Specific Orchestrators.
- Ensuring AI-Verifiable Tasks: Crucially, it instructs selected Task Orchestrators to define tasks with clear, AI-verifiable end results and to ensure their subsequent worker delegations also adhere to this principle. It also tells them to consult the
.pheromone
file and relevant docs for context.
- State & Documentation Awareness: Reads the
-
Task-Specific Orchestrators (e.g.,
π @orchestrator-project-initialization
,π οΈ @orchestrator-framework-scaffolding
,βοΈ @orchestrator-feature-implementation-tdd
) Manage distinct, large-scale project phases, enforcing AI-verifiable outcomes.- Phase Management with Verifiability: Decompose their phase into logical sub-tasks, each with an AI-verifiable end result (e.g.,
@orchestrator-project-initialization
creates a Master Project Plan where every task has an AI-verifiable deliverable). - Worker Delegation (AI-Verifiable): Assign sub-tasks to specialized Worker Agents, providing them with instructions that define AI-verifiable completion criteria.
- Synthesis of Outcomes: Collect rich natural language
Summary
reports (detailing verifiable results) from workers. Synthesize these, plus their own phase management narrative, into a single, comprehensive natural language summary. - Reporting to Scribe: Send this comprehensive NL summary and a handoff reason code to the Pheromone Scribe for interpretation. They do not generate structured
:signals
. Their summary must explain its intent for Scribe interpretation based onswarmConfig
. They also pass through original directive details to the Scribe.
- Phase Management with Verifiability: Decompose their phase into logical sub-tasks, each with an AI-verifiable end result (e.g.,
-
Worker Agents (e.g.,
π¨βπ» @coder-test-driven
,π @spec-writer-feature-overview
,π @research-planner-strategic
,π§ͺ @tester-tdd-master
) Specialists performing granular, hands-on tasks that produce AI-verifiable results.- Focused Execution for Verifiable Outcomes: Execute narrowly defined roles (e.g., write code to pass specific tests, generate a spec document matching a schema, run tests verifying AI-Actionable End Results from a Test Plan).
- Rich Natural Language Reporting: Primary output to their parent Task Orchestrator is a detailed, natural language
Summary
in theirtask_completion
message. This summary meticulously describes actions taken, AI-verifiable results achieved (and how they were verified), files created/modified (which become part of the human-readable documentation trail), issues, and potential next steps. - Worker Agents do not create or propose structured
:signals
. Their narrativeSummary
is raw input for aggregation and eventual Scribe interpretation. Theπ§ͺ @tester-tdd-master
is crucial for verifying AI-Verifiable End Results using London School TDD and recursive testing.
Pheromind operates via a cyclical "boomerang" process: tasks are delegated downwards with AI-verifiable criteria, and rich narrative results (confirming these verifications) flow upwards for interpretation and state update.
- Initiation: A project launches.
π© @head-orchestrator
passes the initial User Blueprint/Change Request toπ§ @uber-orchestrator
. - Pheromone-Guided Phase Assignment with Verifiability Mandate:
π§ @uber-orchestrator
consults the.pheromone
file (signals anddocumentationRegistry
+ referenced docs). It delegates the next major phase to a suitable Task-Specific Orchestrator (e.g.,π @orchestrator-project-initialization
), instructing it to ensure all sub-tasks have AI-verifiable outcomes and to consult pheromones/docs. - Task Orchestration & Verifiable Worker Tasking: The Task-Specific Orchestrator (e.g.,
@orchestrator-project-initialization
) breaks down its phase. It defines sub-tasks for Worker Agents, each with an AI-verifiable end result. (e.g.,@orchestrator-project-initialization
might task@spec-writer-feature-overview
to produce a spec file atpath/to/spec.md
with defined sections, and later create the Master Project Plan with verifiable tasks). - Worker Execution & Narrative Summary (AI-Verified): A Worker Agent (e.g.,
π @spec-writer-feature-overview
) completes its task (e.g., createsdocs/specs/AddTask_overview.md
). ItsSummary
details actions, confirms the AI-verifiable outcome (e.g., "Specification created atdocs/specs/AddTask_overview.md
matching schema requirements"), and is sent to its parent.- Example Worker
Summary
for TDD Coder: `"Coding for 'AddTaskModule' complete. All tests in 'tests/test_add_task.py' (15 tests) are now passing, confirming adherence to specifications and AI-verifiable criteria defined in Test Plan. Code pushed to 'feature/add-task' branch. Output log from 'pytest' attached. Module ready for integration."*
- Example Worker
- Task Orchestrator Aggregation & Comprehensive NL Summary: The Task-Specific Orchestrator collects
Summary
reports. It synthesizes them with its own phase management narrative into a single, comprehensive NL summary. This summary explicitly mentions AI-verifiable milestones achieved and explains its intent for Scribe interpretation.- Example Task Orchestrator NL Summary (Excerpt): "...
π @orchestrator-project-initialization
reports: Feasibility study by@research-planner-strategic
(report atdocs/research/feasibility.md
added to documentation registry) confirmed project viability. Specs for 'AddTask' (docs/specs/AddTask_overview.md
) and 'ViewTasks' (docs/specs/ViewTasks_overview.md
) created by@spec-writer-feature-overview
, verified against blueprint sections A1-A5. Master Project Plan (docs/Master_Project_Plan.md
), detailing all phases with AI-verifiable micro-tasks, has been generated and added to documentation registry. Project initialization phase achieved its AI-verifiable goal: 'Master Project Plan in place'. This comprehensive natural language summary details collective worker outcomes for interpretation byβοΈ @orchestrator-pheromone-scribe
using itsswarmConfig.interpretationLogic
to update.pheromone
signals and documentation registry, indicating readiness for framework scaffolding for 'TodoApp'..."
- Example Task Orchestrator NL Summary (Excerpt): "...
- Handoff to Scribe: The Task-Specific Orchestrator sends its comprehensive NL summary, handoff reason code, and original directive details to the
βοΈ @orchestrator-pheromone-scribe
. - Scribe's Interpretation & State Update: The Pheromone Scribe:
- Loads its
interpretationLogic
from.swarmConfig
. - Analyzes the incoming NL summary.
- Identifies AI-verified events, documentation paths, needs.
- Generates/updates structured JSON
:signals
(e.g.,signalType: "project_initialization_complete_verified"
,target: "TodoApp"
) and updates thedocumentationRegistry
(e.g., addingMaster_Project_Plan.md
). - Applies pheromone dynamics to signals.
- Persists updated
signals
anddocumentationRegistry
to.pheromone
. - Activates
π© @head-orchestrator
.
- Loads its
- Cycle Continuation: The
π© @head-orchestrator
re-engagesπ§ @uber-orchestrator
. The UBER Orchestrator reads the newly updated.pheromone
file. Fresh, potent signals (e.g., reflectingframework_scaffolding_needed_for_TodoApp_verified
) and new documentation entries directly influence its next delegation, continuing autonomous, verifiable project progression.
- AI-Verifiable Project Execution: Ensures progress is tracked via concrete, measurable, and AI-confirmable outcomes.
- Autonomous Project Management: Manages complex lifecycles with minimal human intervention post-initiation.
- Human-Centric Documentation Trail: Actively tracks and registers human-readable documents for transparency and oversight.
- Sophisticated NL-Driven State Updates: The Scribe translates rich narrative summaries into structured state and documentation links, guided by
.swarmConfig
. - Dynamic & Adaptive Tasking: Evolves project direction based on real-time, interpreted state.
- Resilience & Modularity: Decentralized coordination and clear role specialization promote robustness.
- Centralized State Interpretation: The Pheromone Scribe's exclusive management of
.pheromone
ensures coherent state updates.
- Verifiable Progress: Pheromind isn't just about doing tasks; it's about proving they're done correctly via AI-verifiable criteria.
- The Power of Interpreted Narratives: Leverages natural language for rich communication, with the Scribe performing the heavy lifting of translation into formal state based on
.swarmConfig
. This allows flexibility and expressiveness beyond rigid message formats. - Stigmergy for Scalable Coordination: Indirect communication via the
.pheromone
medium enables adaptability and scalability. - Centralized Interpretation, Decentralized Action: The Pheromone Scribe centralizes state interpretation for consistency, while agents act with role-specific autonomy.
- Emergent Behavior Guided by Explicit Logic: Complex project management emerges from agent interactions governed by defined roles (
.roomodes
) and the Scribe's explicitinterpretationLogic
(.swarmConfig
). - Transparency and Human Oversight: AI-verifiable outcomes and a maintained
documentationRegistry
provide clear insight into the swarm's operations for human developers.
These three components are crucial:
- The swarm's interpreted shared state, exclusively written to by the Pheromone Scribe.
- Contains:
signals
: An array of structured JSON:signal
objects.// Example Signal in .pheromone's "signals" array { "id": "signal-xyz-789", "signalType": "feature_implementation_verified_tdd_complete", "target": "UserAuthenticationModule", "category": "task_status_verified", "strength": 9.2, "message": "TDD cycle for UserAuthenticationModule completed. All 42 unit tests passed, verifying AI-actionable end results from Test Plan TP-003. Ready for integration.", "data": { "featureBranch": "feature/user-auth-v2", "commitSha": "fedcba987654", "testPlanId": "TP-003", "verifiedResultCount": 42, "relevantDocRegistryKey": "doc_user_auth_test_report_final" }, "timestamp_created": "2023-11-15T14:00:00Z", "last_updated_timestamp": "2023-11-15T14:00:00Z" }
documentationRegistry
: A JSON object mapping keys to metadata about project documents (path, description, timestamp), enabling human and AI access to critical information.// Example entry in .pheromone's "documentationRegistry" "doc_master_project_plan_v1": { "path": "docs/Master_Project_Plan.md", "description": "Master Project Plan with AI-verifiable micro-tasks and phases for Project Phoenix.", "lastUpdated": "2023-11-10T10:00:00Z", "generatedBy": "orchestrator-project-initialization" }
- A separate JSON file defining the Pheromone Scribe's "brain" and pheromone dynamics.
- Crucially contains
interpretationLogic
: Rules, patterns, semantic mappings for the Scribe to parse NL summaries and generate/update:signals
anddocumentationRegistry
entries. - Also defines
evaporationRates
,amplificationRules
,signalPriorities
, validsignalTypes
,category
definitions, etc. - Loaded by the Scribe; never modified by the Scribe. Careful tuning enables sophisticated emergent behavior.
- Contains detailed JSON definitions for all AI agent modes, specifying their roles,
customInstructions
, and capabilities, forming the behavioral blueprint of the swarm.
- Setup Environment:
- Ensure a compatible Roo Code environment.
- Configure your LLM (e.g., Claude 3.x) and API keys.
- Define Agent Modes (
.roomodes
):- Craft your agent definitions in the
.roomodes
file (as provided in your example).
- Craft your agent definitions in the
- Create
swarmConfig
File:- Prepare your initial
.swarmConfig
JSON file in the project root. This file must exist, as the Pheromone Scribe loads itsinterpretationLogic
from here. Define rules for signal dynamics and especially theinterpretationLogic
for NL summary-to-signal translation.
- Prepare your initial
- Prepare
.pheromone
File (Optional First Run):- The
βοΈ @orchestrator-pheromone-scribe
, on its first run, if the.pheromone
file (e.g.,./.pheromone
) is missing, will bootstrap an empty one:{"signals": [], "documentationRegistry": {}}
. For subsequent runs, it loads and updates the existing file.
- The
- Craft Your Input:
- For a new project: A detailed User Blueprint (e.g.,
MyProject_Blueprint.md
). This will feed into theMaster Project Plan
creation with AI-verifiable tasks. - For changes: A Change Request or Bug Report.
- For a new project: A detailed User Blueprint (e.g.,
- Initiate the Swarm:
- Activate the
π© @head-orchestrator
with parameters like:Original_User_Directive_Type_Field
Original_User_Directive_Payload_Path_Field
Original_Project_Root_Path_Field
Pheromone_File_Path
(path to.pheromone
)- (The Head Orchestrator will pass these to the UBER Orchestrator, which needs the pheromone file path. The Scribe will also use its pheromone file path.)
- Activate the
- Observe & Iterate: Monitor agent logs and inspect the
.pheromone
file (read-only) and generated documents in thedocumentationRegistry
to track autonomous, AI-verifiable progress.
High-quality initial input is key.
- User Blueprint: Detail goals, features, constraints, and measurable success criteria that can translate into AI-verifiable outcomes in the Master Project Plan.
- Change Requests/Bug Reports: Clearly define scope, problem, expected verifiable behavior, and context.
The Pheromone Scribe's interpretation of summaries derived from these inputs will shape early-stage signals and documentation.
The swarmConfig.interpretationLogic
is powerful. Design it to recognize specific keywords, phrases, or patterns in Task Orchestrator summaries (e.g., "AI-verifiable outcome XYZ achieved," "Master Plan section 2.3 complete," "tests for ABC passed"). The Scribe uses this to generate precise signals (e.g., :BlueprintAnalysisComplete_Verified
, :FeatureSpecApproved_AI_Checked
) and update the documentationRegistry
accurately, enhancing swarm coordination and human understanding.
Pheromind is an evolving framework. We welcome contributions! (Standard contributing guidelines would go here.)
Potential Future Directions:
- Visual Pheromone & Documentation Landscape: Tools to visualize
.pheromone
signals anddocumentationRegistry
. - Advanced
swarmConfig
Tuning & Validation UI. - Self-adaptive
interpretationLogic
: Scribe suggests improvements to its own rules. - Expanded Agent Ecosystem for diverse AI-verifiable project types.
- Enhanced Analytics on signal/documentation patterns for project health.
Unleash the collective, verifiable intelligence of Pheromind and transform how your complex projects are executed.