View and update ACE project configuration dynamically at runtime
Manage ACE configuration for this project only. Adjust search thresholds, token budgets, and runtime behavior dynamically, or view current settings.
/plugin marketplace add ce-dot-net/ce-claude-marketplace/plugin install ace@ce-dot-net-marketplaceManage ACE configuration for THIS PROJECT ONLY. Adjust thresholds, enable token budget, and configure runtime behavior dynamically.
All /ace-tune commands affect THIS PROJECT ONLY.
Hierarchical Configuration:
/ace-tune scopePriority: Project > Org > Server (project overrides org overrides server)
For organization-wide configuration, use the web dashboard instead.
Allows you to fetch and update ACE project configuration in real-time:
All changes persist on the server for this specific project.
When the user runs /ace-tune [action] [params], execute the tune script:
#!/usr/bin/env bash
set -euo pipefail
# Get plugin root directory
PLUGIN_ROOT="${CLAUDE_PLUGIN_ROOT:-$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)}"
# Execute tune script - shows current config
exec "${PLUGIN_ROOT}/scripts/ace-tune.sh" show
Display format:
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā ACE Configuration (Project: {project_name}) ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā¤
ā dedup_similarity_threshold: 0.85 (from org) ā
ā constitution_threshold: 0.7 (from server) ā
ā pruning_threshold: 0.3 (from server) ā
ā token_budget_enforcement: false (from server) ā
ā max_playbook_tokens: null (from server) ā
ā max_batch_size: 50 (from server) ā
ā auto_learning_enabled: true (from server) ā
ā reflector_enabled: true (from server) ā
ā curator_enabled: true (from server) ā
ā dedup_enabled: true (from server) ā
ā ā
ā š” Config source: project < org < server ā
ā To change org defaults, use web dashboard. ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
Returns current effective settings including:
constitution_threshold - Semantic search threshold (default: 0.7)dedup_similarity_threshold - Duplicate detection threshold (default: 0.85)pruning_threshold - Low-quality pattern removal (default: 0.3)token_budget_enforcement - Auto-pruning enabled/disabled (default: false)max_playbook_tokens - Token limit before pruning (default: null)max_batch_size - Max patterns per batch request (default: 50)When user runs /ace-tune without arguments, use AskUserQuestion tool for interactive configuration:
# Step 1: Show current config first
ace-cli tune show
# Step 2: Ask what they want to change
AskUserQuestion({
"questions": [{
"question": "What would you like to configure?",
"header": "ACE Setting",
"multiSelect": false,
"options": [
{
"label": "Search Threshold",
"description": "Adjust similarity threshold for pattern retrieval (0.0-1.0)"
},
{
"label": "Search Top K",
"description": "Maximum patterns returned per search (1-100)"
},
{
"label": "Token Budget",
"description": "Enable automatic playbook pruning at token limit"
},
{
"label": "View Only",
"description": "Just show current configuration"
}
]
}]
})
# Step 3: Based on selection, ask for value
# Example: If "Search Threshold" selected
AskUserQuestion({
"questions": [{
"question": "What threshold value? (0.0-1.0)",
"header": "Threshold",
"multiSelect": false,
"options": [
{"label": "0.35", "description": "Broad matches (more results)"},
{"label": "0.45", "description": "Balanced (recommended)"},
{"label": "0.60", "description": "Strict matches (fewer results)"},
{"label": "0.75", "description": "Very strict (only close matches)"}
]
}]
})
# Step 4: Apply with CLI
ace-cli tune --constitution-threshold 0.45
# Single setting
ace-cli tune --constitution-threshold 0.6
# Multiple settings
ace-cli tune \
--constitution-threshold 0.5 \
--search-top-k 15 \
--dedup-enabled true
What this does:
Adjust Search Threshold:
# Lower threshold for broader matches
ace-cli tune --constitution-threshold 0.35
# Higher threshold for stricter matches
ace-cli tune --constitution-threshold 0.8
Effect on /ace-search:
Adjust Multiple Settings:
# Configure search behavior
ace-cli tune \
--constitution-threshold 0.5 \
--search-top-k 15
# Configure deduplication
ace-cli tune --dedup-similarity-threshold 0.9
# Configure pruning
ace-cli tune --pruning-threshold 0.4
# Enable token budget
ace-cli tune --token-budget-enforcement true --max-playbook-tokens 50000
Reset to Defaults:
# Reset project to org/server defaults
ace-cli tune --reset
# Verify reset
ace-cli tune show
| Parameter | Type | Default | Range | Description |
|---|---|---|---|---|
constitution_threshold | float | 0.7 | 0.0-1.0 | Semantic search similarity threshold |
dedup_similarity_threshold | float | 0.85 | 0.0-1.0 | Duplicate detection threshold |
pruning_threshold | float | 0.3 | 0.0-1.0 | Min quality score to keep pattern |
token_budget_enforcement | bool | false | - | Enable automatic pruning |
max_playbook_tokens | int|null | null | >0 | Token limit for auto-pruning |
max_batch_size | int | 50 | 1-100 | Max patterns per batch request |
auto_learning_enabled | bool | true | - | Enable automatic learning |
reflector_enabled | bool | true | - | Enable Reflector (Sonnet 4) |
curator_enabled | bool | true | - | Enable Curator (Haiku 4.5) |
dedup_enabled | bool | true | - | Enable deduplication |
/ace-tune search-threshold 0.85
Use when: You want only highly relevant results for this project, willing to miss some edge cases.
/ace-tune search-threshold 0.4
Use when: You want comprehensive results for this project, okay with some less-relevant matches.
/ace-tune token-budget 50000
Use when: This project's playbook is growing large (10k+ patterns) and you want automatic quality-based pruning.
/ace-tune dedup-threshold 0.75
Use when: This project is getting too many similar patterns and you want more aggressive merging.
/ace-tune pruning-threshold 0.2
Use when: Token budget is enabled for this project but you want to keep more patterns (only remove clearly harmful ones).
/ace-tune reset
Use when: You want to remove project-specific customizations and inherit org/server defaults.
User: "/ace-tune"
Claude: [Shows current config via ace-cli tune show]
Claude: [Uses AskUserQuestion with options: Search Threshold, Search Top K, Token Budget, View Only]
User: Selects "Search Threshold"
Claude: [Uses AskUserQuestion with threshold options: 0.35, 0.45, 0.60, 0.75]
User: Selects "0.45"
Claude: [Runs ace-cli tune --constitution-threshold 0.45]
Claude: "ā
Search threshold updated to 0.45 for this project"
# 1. Check current settings
ace-cli tune show
# 2. Adjust search for broader matches
ace-cli tune --constitution-threshold 0.35
# 3. Increase max results
ace-cli tune --search-top-k 15
# 4. Enable token budget
ace-cli tune --token-budget-enforcement true --max-playbook-tokens 50000
# 5. Verify changes
ace-cli tune show
# 6. Later, reset to org/server defaults
ace-cli tune --reset
šļø ACE Configuration
ā¹ Project: prj_d3a244129d62c198
ā¹ Organization: org_34fYIlitYk4nyFuTvtsAzA6uUJF
ā¹ Search/Retrieval:
ā¹ Constitution Threshold: 0.45 (similarity)
ā¹ Search Top K: 10 (max results)
ā¹ Deduplication:
ā¹ Enabled: true
ā¹ Similarity Threshold: 0.85
ā¹ Token Budget:
ā¹ Enforcement: false
ā¹ Max Playbook Tokens: (not set)
ā¹ Pruning Threshold: 0.3
ā¹ Batch Processing:
ā¹ Max Batch Size: 50
ā¹ Learning Pipeline:
ā¹ Auto Learning: true
ā¹ Reflector (Sonnet 4): true
ā¹ Curator (Haiku 4.5): true
ā
Configuration updated successfully
šļø ACE Configuration
ā¹ Project: prj_d3a244129d62c198
ā¹ Organization: org_34fYIlitYk4nyFuTvtsAzA6uUJF
ā¹ Search/Retrieval:
ā¹ Constitution Threshold: 0.5 (similarity) ā Updated
ā¹ Search Top K: 10 (max results)
...
ā
Configuration reset successfully
All project-level overrides removed.
Project now inherits organization and server defaults.
Run 'ace-cli tune show' to see current effective config.
/ace-tune changes affect THIS PROJECT ONLYThe ace-cli CLI automatically reads context from:
ACE_ORG_ID environment variable (passed by slash command)ACE_PROJECT_ID environment variable (passed by slash command)~/.config/ace/config.json for API tokenYou don't need to manually specify these - the slash command handles it.
/ace-search - Semantic search (uses constitution_threshold)/ace-status - View playbook statistics/ace-patterns - View full playbook/ace-top - Get highest-rated patterns/ace-configure - Initial project setupFor organization-wide configuration management: https://ace-dashboard.code-engine.app/org/{org_id}/settings
Use the web dashboard to: