Repository navigation
Codomyrmex v0.1.2: 78-Module Python Toolbox Bridging PAI to Scientific Computing via MCP #716
Closed
docxology
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
We built Codomyrmex (v0.1.2) as an open-source, modular Python development platform — 78 specialized modules that PAI agents consume via MCP. Here's what that looks like concretely.
The Architecture
PAI is the cognitive layer (TypeScript/Bun,
~/.claude/). Codomyrmex is the tool layer (Python, installable viauv). MCP connects them:Source:
docs/pai/architecture.md— full component diagram and data flowWhat PAI Provides: Cognitive Augmentation
Without PAI, an agent is a stateless function caller. PAI provides the cognitive scaffold:
This is the "nestmate" augmentation: PAI turns a generic LLM session into a situated agent with method, memory, and judgment.
What Codomyrmex Provides: The Bridge from NL to Tools
Codomyrmex is the continuum from natural language intent to deterministic tool execution:
Every module follows the RASP pattern —
README.md,AGENTS.md,SPEC.md,PAI.md— so AI agents can discover what each module offers without parsing source code.Source:
PAI.md— the authoritative bridge documentAlgorithm Phase to Module Mapping
Each phase of PAI's Algorithm routes to specific Codomyrmex tools:
system_discovery,search,pattern_matchinglist_modules,search_codebasecerebrum,graph_rag,agents/theory/analyze_python,module_infoorchestrator,logisticsread_file,json_querycoding,agents/ai_code_editing/write_fileagents(all providers),git_operationsrun_command,run_testscoding/static_analysis/,securitygit_diff,checksum_fileagentic_memory,logging_monitoringpai_awareness,pai_statusSource:
docs/pai/workflows.md— bidirectional data flow detailsNesting, Recursion, and Self-Reference
The architecture is reflexive by design:
PAIBridge introspects PAI itself. The
pai_bridge.pymodule reads~/.claude/skills/PAI/SKILL.md, enumerates all skills/hooks/agents/memory stores, and exposes them as structured data. PAI can query its own configuration through Codomyrmex.The MCP Bridge is self-discovering.
mcp_bridge.pyauto-discovers tools from every module at runtime viadiscover_all_public_tools(). Add a module, and its functions appear as MCP tools — no registration step.The Trust Gateway gates itself.
trust_gateway.pyenforces a three-tier model (UNTRUSTED -> VERIFIED -> TRUSTED) where the/codomyrmexVerifyand/codomyrmexTrustworkflows — themselves exposed via the MCP bridge — control which tools are executable. The verification workflow audits the trust system using the trust system.Universal module proxy. Three meta-tools (
list_module_functions,call_module_function,get_module_readme) let a PAI agent discover and invoke any public function from any of the 78 modules — without those modules knowing they're being called via MCP. The tool layer is transparent to itself.This recursive structure means PAI agents can inspect, extend, and reason about the toolbox they're using — while using it.
Concrete Numbers (v0.1.2)
Get Started
Then connect to PAI via MCP.
Full integration docs:
docs/pai/— architecture, tools reference, API, workflowsAll reactions