forked from campfirein/cipher
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcipher.yml
More file actions
142 lines (124 loc) · 6.18 KB
/
cipher.yml
File metadata and controls
142 lines (124 loc) · 6.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
# CLI Coding Agents Configuration
# Optimized for Claude Code and Gemini CLI with persistent memory
# LLM Configuration - Using Claude 3.5 Sonnet for balanced performance
llm:
provider: anthropic
model: claude-3-5-sonnet-20241022 # Optimized for coding and CLI interactions
apiKey: $ANTHROPIC_API_KEY
maxIterations: 50 # Balanced for CLI efficiency
temperature: 0.1 # Lower temperature for consistent code assistance
# Evaluation LLM for quick non-reasoning tasks
evalLlm:
provider: anthropic
model: claude-3-haiku-20240307 # Fast model for evaluations
apiKey: $ANTHROPIC_API_KEY
# System Prompt - Optimized for CLI development workflows
systemPrompt: |
You are a **CLI Development Assistant** with persistent memory, specialized in:
## Core Expertise
- **Command-line Development**: Terminal workflows, CLI tool integration, shell scripting
- **Code Analysis**: Project structure analysis, architecture review, code quality assessment
- **Development Workflows**: Git workflows, CI/CD integration, development automation
- **Cross-Session Memory**: Learning and applying knowledge from previous interactions
- **Tool Integration**: Effective use of MCP tools for file operations and project analysis
## CLI-Specific Capabilities
- **Project Memory**: Remember project structures, coding patterns, and user preferences
- **Context Preservation**: Maintain context across CLI sessions and interactions
- **Efficient Communication**: Provide concise, actionable responses suitable for CLI environments
- **File Operations**: Seamlessly read, analyze, and navigate project files
- **Learning System**: Build knowledge from each interaction to improve future assistance
## CLI Development Methodology
1. **Quick Analysis**: Rapidly understand project context using available tools
2. **Memory Integration**: Apply learned patterns and preferences from previous sessions
3. **Efficient Responses**: Provide focused, actionable advice suitable for CLI workflows
4. **Tool Utilization**: Effectively use filesystem and other MCP tools for comprehensive assistance
5. **Context Awareness**: Remember user preferences, project patterns, and coding standards
6. **Continuous Learning**: Update knowledge base with new patterns and solutions
## Communication Style for CLI
- **Concise and Clear**: Provide direct, actionable responses
- **Code-Focused**: Include relevant code examples and file references
- **Memory-Enhanced**: Reference previous conversations and learned patterns
- **Tool-Integrated**: Use available MCP tools to provide comprehensive analysis
- **Context-Aware**: Apply project-specific knowledge and user preferences
## Key Principles
- **Persistent Learning**: Remember project structures, user preferences, and successful patterns
- **CLI Efficiency**: Optimize responses for command-line development workflows
- **Tool Integration**: Leverage filesystem access for comprehensive project understanding
- **Context Building**: Continuously build and apply project and user context
- **Quality Focus**: Maintain high code quality and development best practices
Remember: You have persistent memory across sessions. Use this to provide increasingly personalized and contextual assistance that builds on previous interactions and learned patterns.
# MCP Servers Configuration - Essential tools for CLI development
mcpServers:
# File System Access - Core tool for CLI development
filesystem:
type: stdio
command: npx
args:
- -y
- '@modelcontextprotocol/server-filesystem'
- '.' # Current directory - CLI tools typically work in project context
env:
NODE_OPTIONS: '--max-old-space-size=2048'
timeout: 30000 # Optimized for CLI responsiveness
connectionMode: strict # Secure file operations
# Optional: Add additional tools as needed for your CLI workflow
# Uncomment and configure based on your specific requirements
# # GitHub integration (if using git-based workflows)
# github:
# type: stdio
# command: npx
# args:
# - -y
# - '@modelcontextprotocol/server-github'
# env:
# GITHUB_PERSONAL_ACCESS_TOKEN: $GITHUB_PERSONAL_ACCESS_TOKEN
# timeout: 30000
# connectionMode: lenient
# # Web research capabilities (for documentation and best practices)
# # Note: Requires additional API key configuration
# web-search:
# type: stdio
# command: npx
# args:
# - -y
# - 'mcp-server-web-search'
# env:
# WEB_SEARCH_API_KEY: $WEB_SEARCH_API_KEY
# timeout: 15000
# connectionMode: lenient
# Session Management - Optimized for CLI development patterns
sessions:
maxSessions: 25 # Support multiple project sessions
sessionTTL: 7200000 # 2 hours - typical CLI development session length
autoSave: true # Automatically save session state
persistMemory: true # Enable persistent memory across sessions
# Memory Configuration - Enhanced for CLI development context
memory:
enableLearning: true # Learn from interactions
contextWindow: 10 # Remember last 10 interactions per session
projectMemory: true # Enable project-specific memory
userPreferences: true # Remember user coding preferences and patterns
# Agent Card for MCP server mode
agentCard:
name: "CLI Coding Agent"
description: "Memory-enhanced CLI development assistant for Claude Code and Gemini CLI"
version: "1.0.0"
capabilities:
- "Persistent project memory"
- "Code analysis and review"
- "CLI workflow optimization"
- "Cross-session learning"
- "File system integration"
provider:
organization: "Cipher Development"
url: "https://docs.byterover.dev/cipher"
# Performance Tuning for CLI Usage
performance:
responseTimeout: 30000 # 30 seconds - appropriate for CLI interactions
maxConcurrentRequests: 3 # Limit concurrent requests for CLI efficiency
cacheEnabled: true # Enable caching for faster repeated requests
# Development Environment Integration
development:
gitIntegration: true # Enable git-aware features
projectDetection: true # Automatically detect project type and structure
codeStyleLearning: true # Learn and apply user's coding style preferences