How sorensencc-dotcom/toolforge works
Toolforge is a governed AI-tool platform: agents discover tools and submit invocations, which are intended to pass through authorization, validation, isolated execution, and observable result reporting. The tree also shows adjacent marketplace, Cowork registration, TorqueQuery routing, and operational capabilities. The README documents the high-level execution stages, but their implementations are not all present in the supplied tree; the graph therefore avoids asserting undocumented wiring between those subsystems.
Main entry points: TorqueQueryOrchestrator.mjs TorqueQuery routing · invocation-worker.mjs Invocation worker · server.js Marketplace API · SkillRegistry.ts Skill registry
Components 16
Ingress and discovery
- Marketplace API
src/api/server.js - Marketplace UI
src/ui/App.jsx - Skill registration
gateway/cowork/src/registry/RegistrationManager.ts - Skill registry
gateway/cowork/src/registry/SkillRegistry.ts
Governance and routing
- Invocation contract
skills/toolforge-cli/src/invocation-contracts.mjs - TorqueQuery routing
modules/TorqueQueryOrchestrator.mjs - Governed dispatch
CIC-GOVERNANCE/WRAPPERS/torquequery_routing_runtime.py - Routing adapter
CIC-GOVERNANCE/adapters/torquequery_routing_adapter.py
Execution and integrations
- Invocation worker
skills/toolforge-cli/src/invocation-worker.mjs - Skill invocation
skills/toolforge-cli/src/invoke-skill.mjs - Knowledge retrieval
modules/adapters/IcfRetrievalAdapter-v2.mjs - Model adapter
modules/adapters/WhichLlmAdapter.mjs
Operations and observability
- TRM operations MCP
modules/trm-devops/src/mcp/server.ts - Queue reconciliation
modules/trm-devops/src/core/reconciler.ts - Telemetry service
api/telemetry/server.js
Other components
- AI agent
Connections 12
- AI agent → Marketplace API: requests tools
README.md - Marketplace UI → Marketplace API: uses API
- Marketplace API → Skill registry: discovers skills
- Skill registration → Skill registry: registers skills
gateway/cowork/src/registry/RegistrationManager.ts - AI agent → Invocation worker: submits invocation
- Invocation worker → Invocation contract: uses contract
skills/toolforge-cli/src/invocation-worker.mjs - Invocation worker → Skill invocation: delegates invocation
skills/toolforge-cli/src/invocation-worker.mjs - AI agent → TorqueQuery routing: requests routed work
- TorqueQuery routing → Knowledge retrieval: queries context
modules/TorqueQueryOrchestrator.mjs - TorqueQuery routing → Model adapter: checks model gate
modules/TorqueQueryOrchestrator.mjs - Routing adapter → Governed dispatch: evaluates route
CIC-GOVERNANCE/adapters/torquequery_routing_adapter.py - TRM operations MCP → Queue reconciliation: reconciles queue
modules/trm-devops/src/mcp/server.ts