centient 3.1.1 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/CHANGELOG.md +49 -8
  2. package/README.md +13 -13
  3. package/dist/commands.d.ts.map +1 -1
  4. package/dist/commands.js.map +1 -1
  5. package/dist/index.js +1 -1
  6. package/dist/index.js.map +1 -1
  7. package/dist/postinstall.js +1 -1
  8. package/dist/postinstall.js.map +1 -1
  9. package/dist/server.d.ts.map +1 -1
  10. package/dist/server.js +9 -0
  11. package/dist/server.js.map +1 -1
  12. package/dist/tools/channels/channelMessage.d.ts.map +1 -1
  13. package/dist/tools/channels/channelMessage.js +4 -1
  14. package/dist/tools/channels/channelMessage.js.map +1 -1
  15. package/dist/tools/channels/channelRead.d.ts.map +1 -1
  16. package/dist/tools/channels/channelRead.js.map +1 -1
  17. package/dist/tools/consultation/aggregateConsensus.d.ts.map +1 -1
  18. package/dist/tools/consultation/aggregateConsensus.js +1 -16
  19. package/dist/tools/consultation/aggregateConsensus.js.map +1 -1
  20. package/dist/tools/consultation/captureConsultationResponse.d.ts.map +1 -1
  21. package/dist/tools/consultation/captureConsultationResponse.js +1 -15
  22. package/dist/tools/consultation/captureConsultationResponse.js.map +1 -1
  23. package/dist/tools/consultation/consultLlmStream.d.ts.map +1 -1
  24. package/dist/tools/consultation/consultLlmStream.js +1 -21
  25. package/dist/tools/consultation/consultLlmStream.js.map +1 -1
  26. package/dist/tools/consultation/peerReviewContract.d.ts.map +1 -1
  27. package/dist/tools/consultation/peerReviewContract.js +1 -16
  28. package/dist/tools/consultation/peerReviewContract.js.map +1 -1
  29. package/dist/tools/consultation/peerReviewSession.d.ts.map +1 -1
  30. package/dist/tools/consultation/peerReviewSession.js +1 -15
  31. package/dist/tools/consultation/peerReviewSession.js.map +1 -1
  32. package/dist/tools/consultation/prepareConsultationContext.d.ts.map +1 -1
  33. package/dist/tools/consultation/prepareConsultationContext.js +1 -12
  34. package/dist/tools/consultation/prepareConsultationContext.js.map +1 -1
  35. package/dist/tools/consultation/seekConsensus.d.ts.map +1 -1
  36. package/dist/tools/consultation/seekConsensus.js +1 -16
  37. package/dist/tools/consultation/seekConsensus.js.map +1 -1
  38. package/dist/tools/consultation/validateDecision.d.ts.map +1 -1
  39. package/dist/tools/consultation/validateDecision.js +1 -10
  40. package/dist/tools/consultation/validateDecision.js.map +1 -1
  41. package/dist/tools/consultation/validateReviewResponse.d.ts.map +1 -1
  42. package/dist/tools/consultation/validateReviewResponse.js +1 -16
  43. package/dist/tools/consultation/validateReviewResponse.js.map +1 -1
  44. package/dist/tools/discovery/index.d.ts +16 -0
  45. package/dist/tools/discovery/index.d.ts.map +1 -0
  46. package/dist/tools/discovery/index.js +218 -0
  47. package/dist/tools/discovery/index.js.map +1 -0
  48. package/dist/tools/memory-bank/pushToMemoryBank.d.ts.map +1 -1
  49. package/dist/tools/memory-bank/pushToMemoryBank.js +5 -151
  50. package/dist/tools/memory-bank/pushToMemoryBank.js.map +1 -1
  51. package/dist/tools/patterns/predictOutcome.d.ts.map +1 -1
  52. package/dist/tools/patterns/predictOutcome.js +1 -9
  53. package/dist/tools/patterns/predictOutcome.js.map +1 -1
  54. package/dist/tools/patterns/recommendPatterns.d.ts.map +1 -1
  55. package/dist/tools/patterns/recommendPatterns.js +1 -9
  56. package/dist/tools/patterns/recommendPatterns.js.map +1 -1
  57. package/dist/tools/rlvr/rlvrExecute.d.ts.map +1 -1
  58. package/dist/tools/rlvr/rlvrExecute.js +1 -7
  59. package/dist/tools/rlvr/rlvrExecute.js.map +1 -1
  60. package/dist/tools/session/askSession.d.ts.map +1 -1
  61. package/dist/tools/session/askSession.js +1 -10
  62. package/dist/tools/session/askSession.js.map +1 -1
  63. package/dist/tools/tool-docs.d.ts +11 -0
  64. package/dist/tools/tool-docs.d.ts.map +1 -0
  65. package/dist/tools/tool-docs.js +431 -0
  66. package/dist/tools/tool-docs.js.map +1 -0
  67. package/dist/utils/ChannelCoordinator.d.ts.map +1 -1
  68. package/dist/utils/ChannelCoordinator.js +6 -2
  69. package/dist/utils/ChannelCoordinator.js.map +1 -1
  70. package/dist/utils/channelSchema.d.ts.map +1 -1
  71. package/dist/utils/channelSchema.js +1 -1
  72. package/dist/utils/channelSchema.js.map +1 -1
  73. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"askSession.d.ts","sourceRoot":"","sources":["../../../src/tools/session/askSession.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAW1D,eAAO,MAAM,cAAc,EAAE,IAmC5B,CAAC;AAmDF,wBAAsB,iBAAiB,CACrC,IAAI,EAAE,OAAO,GACZ,OAAO,CAAC;IAAE,OAAO,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAAE,CAAC,CA+C7D"}
1
+ {"version":3,"file":"askSession.d.ts","sourceRoot":"","sources":["../../../src/tools/session/askSession.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAW1D,eAAO,MAAM,cAAc,EAAE,IA2B5B,CAAC;AAmDF,wBAAsB,iBAAiB,CACrC,IAAI,EAAE,OAAO,GACZ,OAAO,CAAC;IAAE,OAAO,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAAE,CAAC,CA+C7D"}
@@ -3,16 +3,7 @@ import { getLLMStreamClient, } from "../../utils/llmStreamClient.js";
3
3
  import { estimateTokensFromJSON } from "../../utils/tokenEstimator.js";
4
4
  export const askSessionTool = {
5
5
  name: "ask_session",
6
- description: `Ask natural language questions about the current session.
7
-
8
- Examples:
9
- - "What authentication decisions did we make?"
10
- - "Why did we choose PostgreSQL over MongoDB?"
11
- - "What blockers have we encountered?"
12
- - "Summarize our progress today"
13
-
14
- Returns a synthesized answer with source citations from session memory.
15
- Uses semantic search + LLM synthesis for intelligent responses.`,
6
+ description: "Ask natural language questions about the current session. Returns synthesized answer with source citations.",
16
7
  inputSchema: {
17
8
  type: "object",
18
9
  properties: {
@@ -1 +1 @@
1
- {"version":3,"file":"askSession.js","sourceRoot":"","sources":["../../../src/tools/session/askSession.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EACL,kBAAkB,GAEnB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAKvE,MAAM,CAAC,MAAM,cAAc,GAAS;IAClC,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE;;;;;;;;;gEASiD;IAC9D,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,6CAA6C;aAC3D;YACD,cAAc,EAAE;gBACd,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,yDAAyD;aACvE;YACD,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,+CAA+C;aAC7D;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,CAAC,QAAQ,EAAE,kBAAkB,CAAC;gBACpC,WAAW,EAAE,2CAA2C;aACzD;SACF;QACD,QAAQ,EAAE,CAAC,UAAU,CAAC;KACvB;CACF,CAAC;AAmDF,MAAM,CAAC,KAAK,UAAU,iBAAiB,CACrC,IAAa;IAEb,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IAE7B,IAAI,CAAC;QACH,MAAM,KAAK,GAAG,IAAuB,CAAC;QAEtC,IAAI,CAAC,KAAK,CAAC,QAAQ,IAAI,KAAK,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,EA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ACd,iBAAiB;aAClB;SACF,CAAC;IACJ,CAAC;AACH,CAAC"}
@@ -0,0 +1,11 @@
1
+ export declare const fullToolDescriptions: Record<string, string>;
2
+ export declare const toolCategories: Record<string, string[]>;
3
+ export declare const categoryDescriptions: Record<string, string>;
4
+ export declare function getToolCategory(toolName: string): string | undefined;
5
+ export declare function getFullDescription(toolName: string): string | undefined;
6
+ export declare function searchTools(query: string, category?: string, limit?: number): Array<{
7
+ name: string;
8
+ category: string;
9
+ description: string;
10
+ }>;
11
+ //# sourceMappingURL=tool-docs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tool-docs.d.ts","sourceRoot":"","sources":["../../src/tools/tool-docs.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA8XvD,CAAC;AAKF,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAiHnD,CAAC;AAKF,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAgCvD,CAAC;AAKF,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAOpE;AAKD,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAEvE;AAKD,wBAAgB,WAAW,CACzB,KAAK,EAAE,MAAM,EACb,QAAQ,CAAC,EAAE,MAAM,EACjB,KAAK,SAAK,GACT,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAAC,CAgChE"}
@@ -0,0 +1,431 @@
1
+ export const fullToolDescriptions = {
2
+ searchPatterns: "Search pattern library by keyword and category. Returns pattern metadata for progressive loading.",
3
+ loadSkill: "Load a specific skill by ID. Returns full documentation and optionally executable code. Supports loading specific versions.",
4
+ executeSkill: "Execute a skill with provided parameters. Returns skill-specific output. Supports executing specific versions.",
5
+ findPatterns: 'Search pattern library with intelligent routing. Use "fast" mode for quick similarity search (Qdrant, 50-200ms) or "comprehensive" mode for deep generative search (Google FS, 5-10s).',
6
+ trackPatternUsage: 'Track pattern usage. Increments usage count and auto-promotes to "Verified" at 3+ uses.',
7
+ indexPatternLibrary: "Index all patterns from shared library to Qdrant + Google FS. Run this after adding new patterns.",
8
+ getPatternVersions: "List all versions for a pattern with changelogs and status. Returns version history for informed version selection.",
9
+ createPatternVersion: "Create a new version of a pattern. Archives current version and bumps version number. Requires changelog describing changes.",
10
+ deprecatePatternVersion: "Mark a pattern version as deprecated. Requires a note explaining why. Optionally suggest a replacement.",
11
+ diffPatterns: "Compare two versions of a pattern visually. Shows textual diffs of documentation, implementation, and metadata files, plus changelog entries between versions.",
12
+ recommend_patterns: `Recommend patterns based on current session context.
13
+
14
+ Analyzes your session decisions, topics, and recent work to suggest relevant patterns.
15
+ Returns ranked recommendations with:
16
+ - Relevance score (how well pattern matches your context)
17
+ - Success rate (historical success from pattern usage)
18
+ - Why it's recommended (explanation based on context match)
19
+
20
+ Use this when starting new features or looking for proven solutions.`,
21
+ predict_outcome: `Predict success probability before executing a pattern.
22
+
23
+ Returns:
24
+ - Predicted success rate (0-1)
25
+ - Confidence level (how reliable the prediction is)
26
+ - Factor breakdown (what contributed to the prediction)
27
+ - Recommendation (proceed, caution, or reconsider)
28
+
29
+ Use this before executeSkill to make informed decisions about pattern usage.`,
30
+ signPattern: "Sign a pattern by creating/updating its MANIFEST.json with SHA-256 checksums for integrity verification. Use this after creating or modifying pattern files.",
31
+ searchArtifacts: "Search finalization packs (session artifacts) across projects by keyword. Returns session metadata.",
32
+ loadSession: "Load complete session context from finalization pack. Returns structured session data. Optionally filter by query for compressed extraction.",
33
+ getSessionCode: "Extract executable code blocks from session artifacts. Filter by programming language.",
34
+ extractSessionContext: "Extract relevant context from previous session for handoff. Returns compressed summary (3-5 key points) for session transitions.",
35
+ diffSessions: "Compare two sessions side-by-side. Shows differences in decisions, learnings, patterns, file changes, and metrics.",
36
+ addNote: "Add a decision, hypothesis, blocker, or general note to session memory for current project.",
37
+ getDecisions: "Retrieve all decision notes from current session memory for a project.",
38
+ getHypotheses: "Retrieve all hypothesis notes from current session memory for a project.",
39
+ getCompressionRatio: "Calculate token compression metrics for sessions. Shows context savings through finalization.",
40
+ getPatternReuse: "Track pattern reuse statistics across projects. Shows which patterns are most valuable.",
41
+ getCostDashboard: "Display API cost tracking dashboard. Shows spending aggregated by service, model, and time period.",
42
+ getPatternAnalytics: "Get historical analytics for pattern usage trends. Shows adoption rates, success metrics, trend analysis, and category breakdown over time periods.",
43
+ getAuditLog: 'Query the security audit log for pattern/skill access events. Returns event history with filtering by time, tool, outcome, or pattern. Use mode="summary" for aggregated statistics or mode="events" for detailed logs.',
44
+ semanticSearch: "Search session artifacts using Google File Search semantic understanding. Finds conceptually related sessions beyond keyword matching.",
45
+ indexSession: "Index a session to Google File Search for semantic search. Creates embeddings from finalization pack and session summary.",
46
+ getSearchStats: "Get Google File Search statistics for a project. Shows indexing costs, token usage, and file counts.",
47
+ start_session_coordination: "Initialize Qdrant session memory for real-time coordination. Call this at the start of a session to enable fast semantic search and duplicate detection. Optionally seeds session with relevant prior knowledge from Memory Bank.",
48
+ save_session_note: 'Save a decision, hypothesis, blocker, learning, pattern, or finding to session memory. Indexed immediately for fast retrieval. Use type "finding" for research results with verification tracking.',
49
+ session_search: "Search current session memory using semantic search. Returns relevant notes in 50-200ms. Use this to recall decisions, check hypotheses, or find blockers.",
50
+ check_duplicate_work: "Check if similar work already exists in the current session. Use before starting new tasks to avoid redundancy. Returns matches above the similarity threshold.",
51
+ get_session_stats: "Get statistics about the current session (total notes, notes by type, etc.)",
52
+ get_session_summary: "Get a comprehensive summary of the current session including statistics, key memories, and branch visualization. Use during finalization or to review session progress.",
53
+ extract_session_memories: "Extract all valuable memories from the current session. Use this during finalization to include session insights in the finalization pack.",
54
+ finalize_session_coordination: "Clean up ephemeral session memory. Call this at the end of a session (during /finalize) to delete the temporary collection.",
55
+ track_constraint: "Track a constraint that should be enforced throughout the session. Extracts keywords automatically for fast violation detection.",
56
+ get_constraints: "Get all active constraints for the current session. Returns constraint details including keywords, scope, and status.",
57
+ lift_constraint: "Lift (deactivate) a constraint by ID. The constraint will no longer be enforced.",
58
+ check_constraint_violation: "Check if a proposed action would violate any active constraints. Returns violations with severity and reasons.",
59
+ check_claim_consistency: "Cross-reference a claim against known knowledge stores (session memory, Memory Bank, patterns). Returns consistency score, conflicts, supporting evidence, and recommendation. Part of hallucination detection.",
60
+ validate_citation: "Verify that a cited reference exists and supports the claim. Checks sessions, articles, patterns, or flags external sources for manual verification. Cross-references with Memory Bank for additional context. Part of hallucination detection.",
61
+ get_verification_prompt: "Generate a verification prompt for a specific claim type. Returns tailored questions to verify before stating as fact. Use during research to reduce hallucination risk.",
62
+ flag_for_verification: "Flag content for human verification when confidence is low or inconsistencies detected. Creates a session note and returns a formatted warning. Part of hallucination detection surfacing layer.",
63
+ record_verification_outcome: "Record the outcome of a human verification for a previously flagged claim. Enables learning loop for improving hallucination detection accuracy. Use after user confirms or refutes a flagged claim.",
64
+ check_code_feasibility: "Check code for feasibility issues: syntax errors, non-existent imports, invalid API calls, deprecated patterns, and security concerns. Part of hallucination detection for code suggestions.",
65
+ ask_session: `Ask natural language questions about the current session.
66
+
67
+ Examples:
68
+ - "What authentication decisions did we make?"
69
+ - "Why did we choose PostgreSQL over MongoDB?"
70
+ - "What blockers have we encountered?"
71
+ - "Summarize our progress today"
72
+
73
+ Returns a synthesized answer with source citations from session memory.
74
+ Uses semantic search + LLM synthesis for intelligent responses.`,
75
+ trackApprovalFingerprint: 'Track approved operations to reduce approval fatigue. Use action "check" to see if operation was already approved, "approve" to record approval. Fingerprints are session-scoped and cleared on session end.',
76
+ check_stuck_pattern: "Analyze current session state to detect if the developer is stuck. Checks for repeated blockers, lack of progress, and error loops. Includes 10-minute cooldown to prevent alert spam.",
77
+ get_recovery_suggestions: "Generate recovery suggestions when stuck. Searches current session for related solutions and ranks by relevance, recency, and success rate.",
78
+ getContextHealth: "Monitor context window health. Returns token breakdown, health status, and recommendations.",
79
+ getQdrantHealth: "Check Qdrant connection health. Returns connection status, latency, and diagnostics.",
80
+ getCircuitBreakerStats: "Get circuit breaker statistics for external services (Qdrant, OpenAI, Gemini, OpenRouter). Returns state, failure counts, and health status for each service.",
81
+ getRateLimitStats: "Get rate limiting statistics for external services (Qdrant, OpenAI, Gemini, Google File Search, OpenRouter). Returns current token bucket state, request counts, and rate limit status for each service.",
82
+ generateResearchPlan: "Create execution plan for user review before research begins. Returns a structured plan with steps, dependencies, time estimates, and required tools. User must approve the plan before execution.",
83
+ approveResearchPlan: 'Record user approval/modification of research plan. Use action "approve" to start execution, "modify" to update the plan, or "cancel" to discard it.',
84
+ trackResearchProgress: "Get real-time status of research session execution. Returns current step, progress, blockers, and estimated remaining time. Can also update progress when called during execution.",
85
+ listResearchSessions: "View status of all research sessions (inbox pattern). Returns list of sessions with their status, progress, and findings paths. Filter by status to see active, complete, or failed sessions.",
86
+ suggestModelForResearch: "Recommend optimal model based on research domain. Detects domain from question and returns model suggestions with benchmark data (accuracy, hallucination rate, omniscience index).",
87
+ memory_bank_search: "Search project memories using semantic similarity. Returns relevant facts extracted from past sessions. Use this to find decisions, learnings, and patterns from previous work.",
88
+ memory_bank_list: "List all memories stored for a project. Returns all extracted facts from past sessions. Use this to see what the Memory Bank knows about a project.",
89
+ push_to_memory_bank: "Push a finalization pack to Memory Bank for persistent cross-session storage. Call this during /finalize after creating the finalization-pack.md to promote session knowledge to Vertex AI semantic search. Requires agent engine config.",
90
+ add_note_relationship: "Link two notes with a typed relationship. Creates explicit graph edges between session notes for causal chain queries.",
91
+ query_temporal_graph: 'Execute graph traversal queries. Find causal chains ("what led to this decision?"), temporal sequences ("what happened last week?"), relevant adjacency ("what sessions influenced this one?"), evolution paths ("how did this concept evolve?"), or validation chains ("what validated this decision?").',
92
+ link_sessions: "Create a relationship between two sessions. Use this to track how sessions build on prior work.",
93
+ prepare_consultation_context: `Prepare session context for cross-model consultation. Extracts decisions, hypotheses, constraints, and recent work from the active session, then formats them into a context-enriched prompt.
94
+
95
+ Use this before calling consult_llm to include session context in your consultation.
96
+
97
+ Workflow:
98
+ 1. Call prepare_consultation_context with your question
99
+ 2. Use the returned prompt with consult_llm
100
+ 3. The external model will see your session context
101
+
102
+ Example:
103
+ 1. prepare_consultation_context({ question: "Is our auth approach secure?" })
104
+ 2. consult_llm({ prompt: <returned prompt>, model: "o3" })`,
105
+ capture_consultation_response: `Capture and persist a consultation response from an external LLM to session memory.
106
+
107
+ Parses the response to extract:
108
+ - Validation status (approved/concerns/rejected/neutral)
109
+ - Confidence level (high/medium/low)
110
+ - Key points, recommendations, and concerns
111
+
112
+ Saves as a verified "finding" note with full metadata.
113
+
114
+ Use after calling consult_llm to automatically persist insights.
115
+
116
+ Example workflow:
117
+ 1. prepare_consultation_context({ question: "Is auth approach sound?" })
118
+ 2. consult_llm({ prompt: <prepared>, model: "o3" })
119
+ 3. capture_consultation_response({ response: <result>, model: "o3", question: "..." })`,
120
+ validate_decision: `Prepare a focused validation request for a specific decision. Retrieves the decision and related context, then formats a prompt for external model review.
121
+
122
+ Use this when you want an external model to validate a specific architectural or design decision.
123
+
124
+ Workflow:
125
+ 1. validate_decision({ decisionId: <point_id> })
126
+ 2. consult_llm({ prompt: <returned prompt>, model: <suggested> })
127
+ 3. capture_consultation_response({ ..., relatedDecisionIds: [<point_id>] })
128
+
129
+ The decision will automatically be linked via validated_by relationship when captured.`,
130
+ peer_review_session: `Prepare comprehensive session context for peer review during finalization.
131
+ Extracts all decisions, patterns, hypotheses, blockers, and constraints from the active session,
132
+ then formats them into a review prompt for cross-model validation.
133
+
134
+ Use this during /finalize Phase 2.7 (before crystallize) to get external model feedback
135
+ on session quality before creating final artifacts.
136
+
137
+ Workflow:
138
+ 1. peer_review_session() → get review prompt
139
+ 2. consult_llm with returned prompt → get external review
140
+ 3. capture_consultation_response with returned captureCall → persist finding
141
+ 4. If rejected: Show advisory warning
142
+ 5. Proceed to crystallize phase
143
+
144
+ Integration: Review findings influence finalization pack and session summary content.`,
145
+ peer_review_contract: `Create a formal review contract using the Contractor Model pattern.
146
+
147
+ Transforms peer review into an accountable, verifiable process with:
148
+ - **Formalized Contract**: Explicit deliverables and acceptance criteria
149
+ - **Negotiation Phase**: Identify feasibility issues before execution
150
+ - **Quality Validation**: Self-validate until criteria met
151
+ - **Subcontracting**: Optional specialist reviews for complex sessions
152
+
153
+ Use this for high-stakes sessions where review quality matters.
154
+
155
+ Workflow:
156
+ 1. peer_review_contract() → contract + negotiation analysis
157
+ 2. If feasible: consult_llm with contract-aware prompt
158
+ 3. validate_review_response() → check against acceptance criteria
159
+ 4. If validation fails: iterate with feedback
160
+ 5. capture_consultation_response() → persist validated finding`,
161
+ validate_review_response: `Validate an LLM review response against contract acceptance criteria.
162
+
163
+ Part of the Contractor Model workflow for accountable peer review.
164
+
165
+ Use after receiving a review from consult_llm to:
166
+ - Check if all required deliverables are present
167
+ - Verify acceptance criteria are met
168
+ - Determine if iteration is needed
169
+ - Get feedback prompt for next iteration
170
+
171
+ Workflow:
172
+ 1. peer_review_contract() → contract
173
+ 2. consult_llm(contract.prompt) → response
174
+ 3. validate_review_response(contract, response) → validation
175
+ 4. If validation.requiresIteration: consult_llm(validation.iterationPrompt)
176
+ 5. Repeat until validation passes or maxIterations reached`,
177
+ seek_consensus: `Prepare multi-model consensus queries for cross-model validation.
178
+
179
+ Queries multiple LLM models (default: o3, gemini-3-pro-preview, gpt-5.2) with the same question
180
+ and prepares prompts for sequential execution via consult_llm.
181
+
182
+ Workflow:
183
+ 1. seek_consensus() → returns preparedCalls array
184
+ 2. FOR EACH call: consult_llm({ prompt, model }) → collect response
185
+ 3. aggregate_consensus({ responses }) → get consensus result
186
+
187
+ Features:
188
+ - **Fresh Eyes Mode**: One model gets session context, others see only code (catches blind spots)
189
+ - **Cost Estimation**: Shows estimated cost before execution
190
+ - **Session Integration**: Injects decisions, hypotheses, constraints into context prompt
191
+
192
+ Use for high-stakes decisions requiring multi-model validation.`,
193
+ aggregate_consensus: `Aggregate multiple model responses into a consensus result.
194
+
195
+ Use after calling consult_llm for each model from seek_consensus.
196
+
197
+ Workflow:
198
+ 1. seek_consensus() → returns preparedCalls
199
+ 2. FOR EACH call: consult_llm() → collect response
200
+ 3. aggregate_consensus({ responses }) → consensus result
201
+
202
+ Features:
203
+ - **Consensus Detection**: unanimous, majority, split, deadlock
204
+ - **Fresh Eyes Insights**: Identifies blind spots (concerns only fresh models raised)
205
+ - **Synthesis/Dissent**: Synthesizes agreement OR documents dissent
206
+ - **Persistence**: Saves to session memory + Memory Bank
207
+
208
+ Returns structured consensus result with individual model positions and synthesized answer.`,
209
+ consult_llm_stream: `Query external LLM via OpenRouter with streaming support for progressive response display.
210
+
211
+ Routes all requests through OpenRouter for unified billing and model access.
212
+ Returns complete response with timing and token metrics.
213
+
214
+ **Supported Models (via OpenRouter):**
215
+ - OpenAI: o3, gpt-5.2, gpt-5.1, gpt-5.1-codex, gpt-4o, gpt-4o-mini
216
+ - Google: gemini-3-pro-preview, gemini-2.5-pro, gemini-2.5-flash, gemini-2.0-flash
217
+ - Anthropic: claude-sonnet-4, claude-opus-4, claude-haiku-3.5
218
+
219
+ **Streaming Mode (stream=true):**
220
+ - Returns response with streamEvents array showing generation progress
221
+ - Reduces perceived latency (time-to-first-token < 1s)
222
+ - Prevents connection timeouts on long generations
223
+
224
+ **Synchronous Mode (stream=false, default):**
225
+ - Waits for complete response before returning
226
+ - Simpler handling for automated pipelines
227
+
228
+ Use for direct LLM consultation when session context preparation is not needed.
229
+ For context-enriched consultation, use prepare_consultation_context first.`,
230
+ mark_decision_point: 'Mark a decision point in the session for potential branching. Decision points represent moments where you chose one approach over alternatives. Use this to enable later exploration of "what if?" scenarios.',
231
+ list_decision_points: "List all decision points in the current session. Shows each decision point with its branches, status, and exploration state.",
232
+ create_branch: "Create an exploration branch from a decision point to try an alternative approach. The branch becomes active and all subsequent work is tracked under it until closed.",
233
+ list_branches: "List all branches in the current session grouped by decision point. Shows a tree visualization with branch status and any extracted insights.",
234
+ switch_branch: "Switch the active branch context to a different branch or back to main. Use this to continue work on a different exploration path.",
235
+ close_branch: "Close a branch by merging its insights to main, rejecting it with a reason, or abandoning incomplete exploration. Automatically switches back to main path.",
236
+ rlvr_execute: `Execute pattern code in a sandboxed environment with test verification.
237
+ Returns a verifiable reward signal based on test results.
238
+ Implements Principle G2 Layer 3 (Extremal Goodhart mitigation).
239
+
240
+ Supported languages: TypeScript, JavaScript, Python, SQL
241
+ Example-based tests are auto-generated from pattern examples.
242
+ For SQL, use setup field in examples for schema creation.`,
243
+ promote_learning: "Promote a learning from project artifacts to cross-project meta-knowledge. Use when a learning applies universally across projects. Stored in ~/.mcp-context/learnings/.",
244
+ promote_decision: "Promote an architectural decision to cross-project meta-knowledge. Use when a decision represents a universal best practice. Stored in ~/.mcp-context/decisions/.",
245
+ search_meta_knowledge: "Search cross-project meta-knowledge for universal learnings and decisions. Searches ~/.mcp-context/ for knowledge that applies across all projects.",
246
+ trail_query_topics: "Browse the DevLex topic hierarchy for trail discovery. Level 1 shows domains (Architecture, Theory, etc.), Level 2 shows subdomains under a domain.",
247
+ trail_query_by_topic: "Find DevLex articles within a specific topic path. Returns article IDs and titles. Use trail_query_topics first to discover available topics.",
248
+ trail_query_intersect: "Find DevLex articles that appear in multiple topics. Essential for discovering cross-domain connections that form trails.",
249
+ trail_discover_convergence: "Discover convergent insights in DevLex - find multiple independent sources that arrived at the same conclusion. This is the strongest form of knowledge validation.",
250
+ trail_discover_influence: "Trace influence chains in DevLex - discover how an article or session influenced subsequent decisions, patterns, or insights. Shows knowledge transfer through the system.",
251
+ trail_discover_auto: "Automatically discover trails in DevLex using multiple engines. Explores convergence, influence, and contradiction patterns within a budget constraint.",
252
+ trail_list: "List all discovered trails in DevLex. Shows trail IDs, types, titles, node counts, and quality scores.",
253
+ trail_view: "View detailed information about a specific DevLex trail. Shows all nodes, connections, quality metrics, and the narrative thread.",
254
+ discover_tools: "Search available tools by keyword or browse by category. Returns full descriptions and usage examples for matching tools. Use this to explore Centient capabilities.",
255
+ get_tool_help: "Get complete documentation for a specific tool including examples, workflow, and parameter details. Use this when you need detailed usage information.",
256
+ channel_create: "Create a new channel for agent communication. Channels provide Slack-like real-time coordination with threading, @mentions, and unread tracking.",
257
+ channel_message: "Post a message to a channel. Supports threading (replyTo), @mentions, and task context linking. Auto-creates channel if it doesn't exist.",
258
+ channel_read: "Read messages from a channel or all channels. Supports filtering by unread, @mentions, and time. Automatically updates read position.",
259
+ channel_list: "List all channels in the project. Optionally includes unread counts per channel for a specific agent.",
260
+ channel_delete: "Delete a channel and all its messages. Use with caution - this action cannot be undone.",
261
+ };
262
+ export const toolCategories = {
263
+ patterns: [
264
+ "searchPatterns",
265
+ "loadSkill",
266
+ "executeSkill",
267
+ "findPatterns",
268
+ "trackPatternUsage",
269
+ "indexPatternLibrary",
270
+ "getPatternVersions",
271
+ "createPatternVersion",
272
+ "deprecatePatternVersion",
273
+ "diffPatterns",
274
+ "recommend_patterns",
275
+ "predict_outcome",
276
+ "signPattern",
277
+ ],
278
+ artifacts: [
279
+ "searchArtifacts",
280
+ "loadSession",
281
+ "getSessionCode",
282
+ "extractSessionContext",
283
+ "diffSessions",
284
+ ],
285
+ memory: ["addNote", "getDecisions", "getHypotheses"],
286
+ metrics: [
287
+ "getCompressionRatio",
288
+ "getPatternReuse",
289
+ "getCostDashboard",
290
+ "getPatternAnalytics",
291
+ "getAuditLog",
292
+ ],
293
+ search: ["semanticSearch", "indexSession", "getSearchStats"],
294
+ session: [
295
+ "start_session_coordination",
296
+ "save_session_note",
297
+ "session_search",
298
+ "check_duplicate_work",
299
+ "get_session_stats",
300
+ "get_session_summary",
301
+ "extract_session_memories",
302
+ "finalize_session_coordination",
303
+ "track_constraint",
304
+ "get_constraints",
305
+ "lift_constraint",
306
+ "check_constraint_violation",
307
+ "check_claim_consistency",
308
+ "validate_citation",
309
+ "get_verification_prompt",
310
+ "flag_for_verification",
311
+ "record_verification_outcome",
312
+ "check_code_feasibility",
313
+ "ask_session",
314
+ "trackApprovalFingerprint",
315
+ ],
316
+ stuck: ["check_stuck_pattern", "get_recovery_suggestions"],
317
+ health: [
318
+ "getContextHealth",
319
+ "getQdrantHealth",
320
+ "getCircuitBreakerStats",
321
+ "getRateLimitStats",
322
+ ],
323
+ research: [
324
+ "generateResearchPlan",
325
+ "approveResearchPlan",
326
+ "trackResearchProgress",
327
+ "listResearchSessions",
328
+ "suggestModelForResearch",
329
+ ],
330
+ "memory-bank": [
331
+ "memory_bank_search",
332
+ "memory_bank_list",
333
+ "push_to_memory_bank",
334
+ ],
335
+ graph: ["add_note_relationship", "query_temporal_graph", "link_sessions"],
336
+ consultation: [
337
+ "prepare_consultation_context",
338
+ "capture_consultation_response",
339
+ "validate_decision",
340
+ "peer_review_session",
341
+ "peer_review_contract",
342
+ "validate_review_response",
343
+ "seek_consensus",
344
+ "aggregate_consensus",
345
+ "consult_llm_stream",
346
+ ],
347
+ branching: [
348
+ "mark_decision_point",
349
+ "list_decision_points",
350
+ "create_branch",
351
+ "list_branches",
352
+ "switch_branch",
353
+ "close_branch",
354
+ ],
355
+ rlvr: ["rlvr_execute"],
356
+ knowledge: ["promote_learning", "promote_decision", "search_meta_knowledge"],
357
+ trails: [
358
+ "trail_query_topics",
359
+ "trail_query_by_topic",
360
+ "trail_query_intersect",
361
+ "trail_discover_convergence",
362
+ "trail_discover_influence",
363
+ "trail_discover_auto",
364
+ "trail_list",
365
+ "trail_view",
366
+ ],
367
+ discovery: ["discover_tools", "get_tool_help"],
368
+ channels: [
369
+ "channel_create",
370
+ "channel_message",
371
+ "channel_read",
372
+ "channel_list",
373
+ "channel_delete",
374
+ ],
375
+ };
376
+ export const categoryDescriptions = {
377
+ patterns: "Pattern library management - search, load, execute, version, and track reusable code patterns",
378
+ artifacts: "Session artifact management - search, load, and compare finalization packs",
379
+ memory: "Session notes - add and retrieve decisions, hypotheses, blockers",
380
+ metrics: "Analytics and monitoring - compression ratios, pattern reuse, cost tracking, audit logs",
381
+ search: "Semantic search - Google File Search integration for session discovery",
382
+ session: "Session coordination - Qdrant-backed real-time memory, constraints, hallucination detection",
383
+ stuck: "Stuck detection - identify when developer is blocked and suggest recovery",
384
+ health: "System health - context window, Qdrant, circuit breakers, rate limits",
385
+ research: "Research planning - create, approve, and track research execution plans",
386
+ "memory-bank": "Long-term memory - Vertex AI semantic search for cross-session persistence",
387
+ graph: "Temporal graph - relationships between notes and sessions for causal queries",
388
+ consultation: "Cross-model consultation - prepare context, get external reviews, seek consensus",
389
+ branching: "Decision exploration - mark decision points, create branches, explore alternatives",
390
+ rlvr: "Reinforcement Learning - execute pattern code with verifiable rewards",
391
+ knowledge: "Meta-knowledge - promote learnings and decisions across projects",
392
+ trails: "DevLex trails - syntopic discovery, convergence, influence chains",
393
+ discovery: "Tool discovery - search and browse Centient tool documentation",
394
+ channels: "Agent channels - Slack-like coordination with threading and @mentions",
395
+ };
396
+ export function getToolCategory(toolName) {
397
+ for (const [category, tools] of Object.entries(toolCategories)) {
398
+ if (tools.includes(toolName)) {
399
+ return category;
400
+ }
401
+ }
402
+ return undefined;
403
+ }
404
+ export function getFullDescription(toolName) {
405
+ return fullToolDescriptions[toolName];
406
+ }
407
+ export function searchTools(query, category, limit = 10) {
408
+ const results = [];
409
+ const queryLower = query.toLowerCase();
410
+ const categoriesToSearch = category
411
+ ? { [category]: toolCategories[category] || [] }
412
+ : toolCategories;
413
+ for (const [cat, tools] of Object.entries(categoriesToSearch)) {
414
+ for (const toolName of tools) {
415
+ const desc = fullToolDescriptions[toolName] || "";
416
+ if (toolName.toLowerCase().includes(queryLower) ||
417
+ desc.toLowerCase().includes(queryLower)) {
418
+ results.push({
419
+ name: toolName,
420
+ category: cat,
421
+ description: desc,
422
+ });
423
+ if (results.length >= limit) {
424
+ return results;
425
+ }
426
+ }
427
+ }
428
+ }
429
+ return results;
430
+ }
431
+ //# sourceMappingURL=tool-docs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tool-docs.js","sourceRoot":"","sources":["../../src/tools/tool-docs.ts"],"names":[],"mappings":"AAWA,MAAM,CAAC,MAAM,oBAAoB,GAA2B;IAE1D,cAAc,EACZ,mGAAmG;IACrG,SAAS,EACP,6HAA6H;IAC/H,YAAY,EACV,gHAAgH;IAClH,YAAY,EACV,wLAAwL;IAC1L,iBAAiB,EACf,yFAAyF;IAC3F,mBAAmB,EACjB,mGAAmG;IACrG,kBAAkB,EAChB,qHAAqH;IACvH,oBAAoB,EAClB,8HAA8H;IAChI,uBAAuB,EACrB,yGAAyG;IAC3G,YAAY,EACV,gKAAgK;IAClK,kBAAkB,EAAE;;;;;;;;qEAQ+C;IACnE,eAAe,EAAE;;;;;;;;6EAQ0D;IAC3E,WAAW,EACT,8JAA8J;IAGhK,eAAe,EACb,qGAAqG;IACvG,WAAW,EACT,8IAA8I;IAChJ,cAAc,EACZ,wFAAwF;IAC1F,qBAAqB,EACnB,kIAAkI;IACpI,YAAY,EACV,oHAAoH;IAGtH,OAAO,EACL,6FAA6F;IAC/F,YAAY,EACV,wEAAwE;IAC1E,aAAa,EACX,0EAA0E;IAG5E,mBAAmB,EACjB,+FAA+F;IACjG,eAAe,EACb,yFAAyF;IAC3F,gBAAgB,EACd,oGAAoG;IACtG,mBAAmB,EACjB,qJAAqJ;IACvJ,WAAW,EACT,yNAAyN;IAG3N,cAAc,EACZ,wIAAwI;IAC1I,YAAY,EACV,2HAA2H;IAC7H,cAAc,EACZ,sGAAsG;IAGxG,0BAA0B,EACxB,mOAAmO;IACrO,iBAAiB,EACf,oMAAoM;IACtM,cAAc,EACZ,4JAA4J;IAC9J,oBAAoB,EAClB,iKAAiK;IACnK,iBAAiB,EACf,6EAA6E;IAC/E,mBAAmB,EACjB,yKAAyK;IAC3K,wBAAwB,EACtB,4IAA4I;IAC9I,6BAA6B,EAC3B,6HAA6H;IAC/H,gBA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
260
260
  }));
261
- const mentionStr = mentions?.length ? ` (mentions: ${mentions.join(", ")})` : "";
261
+ const mentionStr = mentions?.length
262
+ ? ` (mentions: ${mentions.join(", ")})`
263
+ : "";
262
264
  console.error(`💬 [#${channel.name}] ${agentName || agentId}: ${truncatedContent.slice(0, 50)}...${mentionStr}`);
263
265
  return {
264
266
  id: messageId,
@@ -275,7 +277,9 @@ export class ChannelCoordinator {
275
277
  async readMessages(options) {
276
278
  await this.initialize();
277
279
  const { channel: channelNameOrId, agentId, limit = CHANNEL_CONSTANTS.DEFAULT_MESSAGE_LIMIT, since, unreadOnly = false, mentionsOnly = false, markAsRead = true, } = options;
278
- const mustConditions = [{ key: "type", match: { value: "message" } }];
280
+ const mustConditions = [
281
+ { key: "type", match: { value: "message" } },
282
+ ];
279
283
  let targetChannel = null;
280
284
  if (channelNameOrId) {
281
285
  targetChannel = await this.getChannelByName(channelNameOrId);