Semantic codebase search, code indexing, and prompt enhancement via standalone CLI. Use before grep/find/glob for natural language code location and requirement clarification.
Ships in dianel555-dskills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
High-performance semantic search, code indexing, and AI-powered prompt enhancement. Standalone CLI (no MCP dependency).
# Prerequisites: pip install httpx tenacity "pathspec>=1.1.1,<2"
# Environment: ACE_API_URL, ACE_API_TOKEN (optional for local fallback)
# Index project for remote search (upload code blobs to ACE service)
python scripts/ace_cli.py index -p /path/to/project
# Search codebase with natural language (remote if API configured, else local fallback)
python scripts/ace_cli.py search_context -p /path/to/project -q "function that handles authentication"
# Enhance prompt (interactive mode - default, opens browser)
python scripts/ace_cli.py enhance_prompt -p "implement login feature" -H "User: what auth method?\nAssistant: JWT"
# Enhance prompt (non-interactive, JSON output)
python scripts/ace_cli.py enhance_prompt --no-interactive -p "implement login feature"
# Enhance prompt with project context (enables cloud retrieval for all endpoints)
python scripts/ace_cli.py enhance_prompt -p "implement login feature" --project-root /path/to/project
# Enhance prompt with specific endpoint
python scripts/ace_cli.py --endpoint claude enhance_prompt -p "implement login feature"
# Enhance prompt with codex endpoint
python scripts/ace_cli.py --endpoint codex enhance_prompt -p "implement feature"
# Check configuration
python scripts/ace_cli.py get_config
| Task | Avoid | Use ACE-Tool CLI |
|---|---|---|
| Find function by purpose | grep "def func" | search_context -q "function that..." |
| Locate feature code | find . -name "*.py" | search_context -q "feature description" |
| Clarify requirements | Manual analysis | enhance_prompt -p "requirement" |
| Understand code flow | Multiple grep/read | search_context -q "flow description" |
| Index codebase | N/A | index -p <project_root> |
Index project files for remote codebase retrieval. Scans, hashes, and uploads whole files (up to 128 KiB) with their original paths to the ACE batch-upload API; chunking is left to the service. Uses incremental indexing with gzip JSON cache at .ace-tool/index.json.gz; legacy chunk-based caches are rebuilt once. Respects both .gitignore and .aceignore patterns. The supplied project root is the index and upload boundary; each root keeps its own cache, and indexing a parent does not delete child caches. Symbolic links, junctions and other reparse points below the root are never followed, so only real files inside the root are read and uploaded; an unreadable or out-of-boundary path is skipped instead of falling back to a plain path read. The backend must confirm upload hashes and support the OCE-compatible /agents/blob-status endpoint; indexing, search, and scoped enhancement wait for readiness and report a timeout or unsupported status explicitly. Unknown blobs trigger one rebuild and re-upload.
python scripts/ace_cli.py index -p <project_root>
Options:
-p, --project-root Project root path (required)
Search codebase using natural language descriptions. Routes to remote API (POST /agents/codebase-retrieval) when configured, with local keyword fallback for remote errors or empty results. Upload and readiness failures remain explicit errors. Local fallback supplies matching file paths, not semantic code snippets.
python scripts/ace_cli.py search_context -p <project_root> -q <query>
Options:
-p, --project-root Project root path (required)
-q, --query Natural language query (required)
Enhance prompts with codebase context and conversation history. All endpoints inject cloud retrieval context when --project-root is provided. Third-party endpoints additionally support search context injection via PROMPT_ENHANCER_INCLUDE_SEARCH_CONTEXT.
python scripts/ace_cli.py [--endpoint TYPE] enhance_prompt -p <prompt> [options]
Global Options:
--endpoint Endpoint type: new, old, claude, openai, gemini, codex (default: new)
--api-url Override API base URL
--token Override API token
Command Options:
-p, --prompt Original prompt (required)
-H, --history Conversation history: "User: xxx\nAssistant: yyy"
--history-file File containing conversation history
--project-root Project root path (enables cloud retrieval context)
--no-interactive Disable web UI, output JSON directly
--no-browser Don't auto-open browser, just print URL
--port Port for web server (default: 8765)
Show current configuration status including endpoint resolution, env readiness, authentication source, and search context injection state.
python scripts/ace_cli.py get_config
Output fields:
base_url - Currently configured API base URLendpoint - Active enhancer endpoint (new/old/claude/openai/gemini/codex)endpoint_effective - Resolved endpoint after env variable resolutionendpoint_env_ready - Whether required endpoint configuration is completetoken_configured - Whether authentication token is setthird_party_configured - Whether third-party endpoint config is completeauth_source - Authentication source: constructor | session.json | AUGMENT_SESSION_AUTH | ACE_API_TOKEN | nonesearch_context_injection - Whether search context injection is enabledDefault mode opens web UI with actions:
| Button | Action |
|---|---|
| Regenerate | Discard current, generate new enhancement from original prompt |
| Refine | Iteratively improve current version, preserving your edits |
| Use Original | Return the original prompt without enhancement |
| Send Enhanced | Confirm and use the current enhanced prompt |
| Cancel | Abort the enhancement process |
Keyboard Shortcuts: Ctrl+Enter Send | Esc Cancel
| Endpoint | API Path | Default Model | Auth Header | Status |
|---|---|---|---|---|
new | /prompt-enhancer | claude-sonnet-4-5 | Bearer ACE_API_TOKEN | ⚠️ Currently unavailable |
old | /chat-stream (SSE) | claude-sonnet-4-5 | Bearer ACE_API_TOKEN | ⚠️ Currently unavailable |
claude | /v1/messages | sonnet-4-6-20250929 | x-api-key | ✅ Available |
openai | /v1/chat/completions | gpt-5.4 | Bearer PROMPT_ENHANCER_TOKEN | ✅ Available |
gemini | /v1beta/models/{model}:generateContent | gemini-3-flash-preview | x-goog-api-key | ✅ Available |
codex | /v1/responses | gpt-5.4 | Bearer PROMPT_ENHANCER_TOKEN | ✅ Available |
Note: The official Augment endpoints (
newandold) are currently experiencing service issues. Use third-party endpoints for prompt enhancement.
PROMPT_ENHANCER_ENDPOINT > ACE_ENHANCER_ENDPOINT (legacy) > --endpoint CLI flag > new (default)
claude, openai, gemini, codex are third-party endpoints. They require:
PROMPT_ENHANCER_BASE_URL — API base URLPROMPT_ENHANCER_TOKEN — API key/tokenPROMPT_ENHANCER_MODEL — (optional) override default modelMissing configuration raises ValueError immediately (hard error, no silent fallback).
All HTTP calls use build_api_url(base_url, path) which handles /v1/, /v1beta/ version prefix deduplication. No hardcoded f-string URL construction.
ACE-Tool supports multiple authentication methods with the following priority:
~/.augment/session.json (recommended, created by auggie login)AUGMENT_SESSION_AUTH (CI/CD and headless environments)ACE_API_* (deprecated, backward compatibility only)| Variable | Description |
|---|---|
AUGMENT_SESSION_AUTH | JSON string with accessToken and tenantURL (new format, recommended for CI/CD) |
ACE_API_URL | ⚠️ Deprecated - ACE API base URL (use session.json or AUGMENT_SESSION_AUTH instead) |
ACE_API_TOKEN | ⚠️ Deprecated - ACE API authentication token (use session.json or AUGMENT_SESSION_AUTH instead) |
Recommended: Use ~/.augment/session.json
Create this file via auggie login, or manually with this format:
{
"accessToken": "your-token-here",
"tenantURL": "https://api.example.com/",
"scopes": ["email"]
}
For CI/CD: Use AUGMENT_SESSION_AUTH environment variable
export AUGMENT_SESSION_AUTH='{"accessToken":"token","tenantURL":"https://api.example.com/"}'
Migration Guide: Legacy to New Format
If currently using ACE_API_URL and ACE_API_TOKEN:
auggie login to create ~/.augment/session.jsonAUGMENT_SESSION_AUTH:
export AUGMENT_SESSION_AUTH='{"accessToken":"YOUR_ACE_API_TOKEN","tenantURL":"YOUR_ACE_API_URL"}'
Legacy variables continue to work for backward compatibility but are not recommended for new setups.
| Variable | Description |
|---|---|
PROMPT_ENHANCER_ENDPOINT | Endpoint override: new, old, claude, openai, gemini, codex |
ACE_ENHANCER_ENDPOINT | Legacy endpoint override (fallback if PROMPT_ENHANCER_ENDPOINT not set) |
PROMPT_ENHANCER_BASE_URL | Third-party API base URL (for claude/openai/gemini/codex endpoints) |
PROMPT_ENHANCER_TOKEN | Third-party API token |
PROMPT_ENHANCER_MODEL | Override default model for third-party endpoints |
PROMPT_ENHANCER_INCLUDE_SEARCH_CONTEXT | Enable search context injection for third-party endpoints (1, true, yes, on) |
ACE_UPLOAD_READ_TIMEOUT_SECONDS | Upload response read inactivity timeout in seconds (default: 300) |
ACE_UPLOAD_BATCH_COUNT | Maximum blobs per batch (default/maximum: 30) |
ACE_UPLOAD_BATCH_BYTES | Maximum UTF-8 content bytes per batch (default/maximum: 1048576) |
Settings are positive and finite. The byte budget counts content only, excluding JSON/HTTP overhead, and each blob must fit within it. Read/write and other uncertain transport errors, or HTTP 408, 429, and 5xx responses, trigger /agents/blob-status polling before retransmission. Previously uncertain blobs receive a 5-second grace period when status is unknown; pending blobs are polled up to 180 seconds. These are not strict wall-clock limits because HTTPX read timeouts measure inactivity. When status remains uncertain or unavailable, unresolved blobs are retried automatically up to three potentially sent attempts per blob across process restarts. The server may still be processing an earlier request, so this does not guarantee exactly-once server work. Exhausted attempts, authentication failures, and unsafe recovery state produce explicit errors.
A per-project OS lock serializes cooperating processes through index publication. .ace-tool/upload-journal.json stores blob hashes, hashed service origins and API path prefixes, and attempt state, not file contents or tokens. URL paths must contain only non-secret API prefixes; configure credentials separately. Configured tokens in paths are rejected, but arbitrary path secrets cannot be detected automatically. Blobs are checked with current credentials before upload and ready blobs are reused. Acknowledged entries are compacted; uncertain entries and their attempt counts are retained. Uploads fail explicitly if unresolved entries exceed the 64 MiB journal limit. The persistent .ace-tool.lock marker rejects mixed Windows and POSIX/WSL access to the same project root; use a separate root for each platform.
When PROMPT_ENHANCER_INCLUDE_SEARCH_CONTEXT is enabled and a third-party endpoint is used, the system automatically:
<codebase_context> XML tags<original_request> XML tagsRequires --project-root and valid ACE_API_URL/ACE_API_TOKEN. Raises ValueError if project_root is missing when injection is enabled.
Project-root and nested .gitignore files apply with Git's directory-relative pattern precedence. A project-root .aceignore uses the same glob syntax as an independent, additional exclusion filter: its negations can override earlier .aceignore rules but cannot re-include files excluded by .gitignore. Both filters also apply to local fallback; an ignored parent directory cannot be re-included by a child pattern.
# .aceignore example
test_fixtures/
*.generated.ts
large_data/
node_modules/
.*/
logs/
tests/
index -p . # Upload code blobs to ACE
search_context -p . -q "database connection pooling" # Remote retrieval or local fallback
enhance_prompt -p "optimize query performance" --project-root . # With cloud context
# Review and refine enhanced prompt
# Use Regenerate/Refine as needed
# Send Enhanced to confirm
{"error": "error message", "status_code": 401}
| Error | Recovery |
|---|---|
| No API configured | Uses local fallback for search_context; returns original for enhance |
| Token invalid (401) | Check API token (logged at ERROR level) |
| Access denied (403) | Token may be disabled (logged at ERROR level) |
| Upload failure | Report an error; keep the previous cache on disk without returning its stale blobs |
| Connection timeout | Retries up to 3 times with exponential backoff |
| No results | Broaden search query |
| Third-party not configured | ValueError raised immediately (no silent fallback) |
| Search context missing project_root | ValueError raised when injection enabled without --project-root |
| Prohibited | Correct |
|---|---|
| Grep before semantic search | Use search_context first |
| Skip prompt enhancement | Use enhance_prompt for complex tasks |
| Ignore conversation history | Include history in enhance_prompt |
| Use exact match for conceptual search | Use natural language query |
| Always use non-interactive mode | Use interactive mode for review |
Skip --project-root for enhance | Include it for cloud-based code context |
README.md (opens in a new tab)ruff.toml (opens in a new tab)scripts/__init__.py (opens in a new tab)scripts/__main__.py (opens in a new tab)scripts/ace_cli.py (opens in a new tab)scripts/client.py (opens in a new tab)scripts/indexer.py (opens in a new tab)scripts/secure_fs.py (opens in a new tab)scripts/templates.py (opens in a new tab)scripts/upload_recovery.py (opens in a new tab)scripts/utils.py (opens in a new tab)scripts/web_ui.py (opens in a new tab)tests/__init__.py (opens in a new tab)tests/conftest.py (opens in a new tab)tests/test_auth_upgrade.py (opens in a new tab)tests/test_cli.py (opens in a new tab)tests/test_client_auth_integration.py (opens in a new tab)tests/test_client_endpoints.py (opens in a new tab)tests/test_codex_endpoint.py (opens in a new tab)tests/test_empty_retrieval_fallback.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
19 skills in this plugin
/agent-wikiIncremental LLM-friendly wiki generator for Obsidian note vaults. Use when: (1) Building wiki from notes, (2) Ingesting notes to wiki, (3) Obsidian LLM wiki, (4) Incremental knowledge base management. Triggers: 'build wiki from notes', 'ingest notes to wiki', 'Obsidian LLM wiki', 'incremental knowledge base'./capability-evolverSelf-evolution workflow for the agent. Before substantive work, recall past outcomes from evolution memory; while editing, detect improvement signals; at task end, record the outcome; when reusable, distill or search the EvoMap network for proven genes/capsules. Use when the user starts non-trivial work (a feature, a fix, a refactor) or asks the agent to "evolve", "learn from this", or "remember how this went"./cc-agyDelegates coding/research tasks to the Google Antigravity CLI (`agy`) for external-model execution (Gemini 3.x, Claude Sonnet/Opus 4.6, GPT-OSS). Replaces the broken `collaborating-with-gemini` skill. Use when: (1) External-model delegation via Antigravity, (2) Multi-model prototyping (switch model per call), (3) Backend/logic implementation, (4) Algorithm design and optimization, (5) Bug analysis and debugging, (6) API/database code generation, (7) Code review. Triggers: "delegate to agy", "use Antigravity", "external model", "agy", "Gemini 3.5", "Claude Sonnet 4.6", "GPT-OSS". IMPORTANT: Always request unified diff patches only. Supports multi-turn sessions via SESSION_ID.
/cc-codexDelegates coding tasks to Codex CLI for prototyping, debugging, and code review. Use when: (1) Backend/logic implementation, (2) Algorithm design and optimization, (3) Bug analysis and debugging, (4) API/database code generation, (5) Code quality review and refactoring. Triggers: "implement algorithm", "debug", "analyze code", "backend task", "API implementation", "optimize performance", "refactor", "generate prototype", "code review". IMPORTANT: Default sandbox="read-only" (analysis/review/patch generation); use sandbox="workspace-write" only when codex must run tests/builds to verify. Always request unified diff patches only. Supports multi-turn sessions via SESSION_ID.
/codex-ccDelegates coding tasks from Codex to local Claude Code in print mode while preserving Claude's normal runtime customizations by default. Use when: (1) You want Codex to call Claude Code locally, (2) You need Claude-side skills, plugins, MCP servers, custom commands, CLAUDE.md rules, or workspace settings to stay active, (3) You want resumable Claude sessions from Codex via SESSION_ID, (4) You need thin `claude mcp` / `claude plugin` passthrough from the same bridge.
/context7Fetch current library and API documentation from Context7 when a coding answer needs authoritative, up-to-date examples or version-specific behavior./dianel555-dskills:ace-toolfrom dianel555-dskills
dianel555-dskills@cascade-code-general-misc-2 is listed by joshuarweaver/cascade-code-general-misc-2 — review the source before installing
npx claudepluginhub joshuarweaver/cascade-code-general-misc-2 --plugin dianel555-dskillsOther plugins' skills for the same job