CHRONOS-AGENT
v1.8.15D living code graph, AST symbol editing, refactoring & blast-radius gate in 1 Rust binary
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
chronos_analyze_file
Parse a source file (.ts, .tsx, .js, .py, .rs, .go, .c, .cpp, .java) with CHRONOS's polyglot AST engine and insert all symbols, call edges, cross-language HTTP routes, test edges, and loop/complexity metrics into the 5D Code Graph.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Absolute or workspace-relative path to the source file to analyze |
max_answer_chars | integer | Optional maximum character budget for the response (default: 24000; <= 0 disables truncation) |
chronos_query_hotspots
Query the 5D Code Graph for the top N performance bottlenecks and hot-path functions (using live telemetry or PageRank + O(N^2) loop fallback).
| Parameter | Type | Description |
|---|---|---|
filter | string | Filter type (default: all) |
max_answer_chars | integer | Optional maximum character budget for the response (default: 24000; <= 0 disables truncation) |
top_n | integer | Number of hotspots to return (default: 10) |
chronos_blast_radius
Analyze the blast-radius (change impact) of modifying a specific function or symbol. Returns a risk zone (SAFE/MEDIUM/HIGH/CRITICAL), PageRank centrality, Git temporal co-change partners, confidence interval, coverage completeness, and residual unknowns.
| Parameter | Type | Description |
|---|---|---|
symbol_name * | string | The function/class/name_path symbol to analyze (e.g. 'getUser', 'OrderService/create') |
contract_breaking | boolean | Set true if this change modifies the public API signature |
detail | string | Output verbosity: 'summary' (compact 30s glance) or 'complete' (writes full HTML dashboard) |
file_path | string | File containing the symbol (helps disambiguate same-name symbols) |
max_answer_chars | integer | Optional maximum character budget for the response (default: 24000; <= 0 disables truncation) |
chronos_mutation_gate
Run targeted mutation testing on a specific file using CHRONOS's Mutation Arena. Generates mutants, selects covering tests via the 5D Code Graph, runs them in parallel sandboxes, and returns the mutation score.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Path to the source file to mutation-test |
max_answer_chars | integer | Optional maximum character budget for the response (default: 24000; <= 0 disables truncation) |
strict | boolean | Use 90% threshold (release gate). Default false = 80% dev gate. |
test_command | string | Test runner command (default: 'npx jest --passWithNoTests') |
chronos_contract_status
Drain the Semantic Contract Broker's Pre-Tool Execution Gate. Returns any pending contract violation alerts detected since the last call.
| Parameter | Type | Description |
|---|---|---|
max_answer_chars | integer | Optional maximum character budget for the response (default: 24000; <= 0 disables truncation) |
watch_dir | string | Directory to index for contract changes (optional) |
chronos_query_graph
Execute a Read-Only Cypher query directly against the embedded KuzuDB 5D Code Graph. Every ChronosNode has properties: id, name, qualified_name, kind, file, start_line, end_line, start_byte, end_byte, cognitive_load, cyclomatic, fan_in, fan_out, param_count, sloc, loop_count, loop_depth, transitive_loop_depth, linear_scan_in_loop, alloc_in_loop, is_recursive, is_hydrated, exec_time_p50, exec_time_p99, invocation_count, cpu_percent, is_hot_path, is_bottleneck. Relationship tables: CALLS, CONTAINS, TESTS, IMPORTS, CO_CHANGES_WITH.
| Parameter | Type | Description |
|---|---|---|
query * | string | Read-only Cypher query (e.g. 'MATCH (f:ChronosNode) WHERE f.transitive_loop_depth >= 2 RETURN f.name, f.file, f.transitive_loop_depth') |
max_answer_chars | integer | Optional maximum character budget for the response (default: 24000; <= 0 disables truncation) |
max_rows | integer | Maximum rows to return (default: 500, ceiling: 100000) |
chronos_search_graph
Search the 5D Code Graph using BM25 ranked identifier tokenization (splits camelCase/snake_case), regex pattern matching, degree filtering, and nested-loop complexity filtering.
| Parameter | Type | Description |
|---|---|---|
file_pattern | string | Substring or regex filter on file path |
kind | string | Filter by node kind: Function | Class | ApiRoute | TestCase |
limit | integer | Maximum results to return (default: 50) |
max_answer_chars | integer | Optional maximum character budget for the response (default: 24000; <= 0 disables truncation) |
min_degree | integer | Minimum total degree (fan_in + fan_out) |
min_loop_depth | integer | Minimum interprocedural nested loop depth (transitive_loop_depth) |
name_pattern | string | Regex pattern to match symbol name or qualified_name |
offset | integer | Pagination offset (default: 0) |
query | string | Natural-language or keyword query ranked by BM25 + structural boost + PageRank |
chronos_get_snippet
Read the verbatim source code (start_line..=end_line) of a function/class from disk along with its callers, callees, covering tests, PageRank, and AST complexity metrics.
| Parameter | Type | Description |
|---|---|---|
symbol_name * | string | Function, method, class name, or 'Class/method' name_path to retrieve |
file_path | string | Optional file path filter to disambiguate same-name symbols |
max_answer_chars | integer | Optional maximum character budget for the response (default: 24000; <= 0 disables truncation) |
chronos_get_architecture
Get a high-level architecture overview: community clusters (Label Propagation + Cohesion score), language breakdown, entry points, top PageRank hubs, and hidden O(N^2) algorithmic hotspots.
| Parameter | Type | Description |
|---|---|---|
auto_index | boolean | Automatically scan and incrementally index workspace files (default: true) |
max_answer_chars | integer | Optional maximum character budget for the response (default: 24000; <= 0 disables truncation) |
path | string | Optional directory prefix to scope architecture analysis |
chronos_hydrate_telemetry
Hydrate the 4th Dimension (runtime telemetry) of the ChronosGraph from an offline profiler artifact (V8 .cpuprofile JSON, Speedscope/py-spy JSON, Folded Stack Flamegraph text, or OpenTelemetry OTLP trace JSON).
| Parameter | Type | Description |
|---|---|---|
max_answer_chars | integer | Optional maximum character budget for the response (default: 24000; <= 0 disables truncation) |
profile_content | string | Optional inline profile content string (alternative to profile_path) |
profile_path | string | Path to the offline profile file (.cpuprofile, .speedscope.json, .folded, .otlp.json) |
chronos_generate_agents_md
Synthesize live, data-driven context rules, skills, and MCP configs from the 5D Code Graph (AGENTS.md, CLAUDE.md, GEMINI.md, .agents/skills/chronos-agent/SKILL.md, .cursor/rules/chronos-5d.mdc) for OpenAI Codex CLI, Google Antigravity, Claude Code, OpenCode, Cursor, Windsurf, Copilot, and Cline.
| Parameter | Type | Description |
|---|---|---|
auto_index | boolean | Automatically scan and incrementally index workspace files first (default: true) |
max_answer_chars | integer | Optional maximum character budget for the response (default: 24000; <= 0 disables truncation) |
output_path | string | Optional relative workspace path override when writing a single context file |
project_name | string | Optional project title override for the synthesized header |
scaffold_configs | boolean | If true (with write_to_disk=true), also scaffolds native MCP configs, skills, and slash commands for the target client |
target | string | Target AI CLI/IDE ecosystem: codex | antigravity | claude | opencode | cursor | windsurf | copilot | cline | all (default: 'codex') |
with_hooks | boolean | If true (with write_to_disk=true), also scaffolds <20ms lifecycle hook configs (.agents/hooks.json, .claude/settings.json) |
write_to_disk | boolean | If true, writes the synthesized file(s) directly into the workspace (default: false) |
chronos_explore
1-Call Subagent Context Engine (<15ms). Answers code exploration questions in a single call by returning the top BM25/regex matching symbols, wildcard Class/* outlines, signature-only views (include_body=false), inline blast-radius, read-only Rhai 5D scripts, caller/callee chains, verification surfaces, and 4-angle review diagnostics.
| Parameter | Type | Description |
|---|---|---|
auto_index | boolean | Automatically scan and incrementally index workspace on cold start (default: true) |
depth | integer | Class/module outline expansion depth (default: 1; >1 expands child methods for matched classes) |
file_filter | string | Optional file path substring or regex filter |
include_blast_radius | boolean | When true, attaches compact inline RiskZone + caller counts per explored symbol (default: false) |
include_body | boolean | When false, returns only signature + line/byte spans without full source body to save tokens (default: true) |
max_answer_chars | integer | Optional maximum character budget for the response (default: 24000; <= 0 disables truncation) |
max_symbols | integer | Maximum number of symbol bundles to return (default: 3, ceiling: 20) |
queries | array | Optional batch list of symbol names or 'Class/*' paths to explore in a single round-trip |
query | string | Natural-language question, symbol name, 'Class/method' or 'Class/*' wildcard name_path, or regex pattern to explore |
script | string | Optional bounded ReadOnly Rhai 5D graph query script (no write functions available in MCP profile) |
chronos_edit_symbol
Perform surgical AST-bounded edits (replace_body, insert_before, insert_after) against a fresh disk parse with leading trivia deduplication, indentation/CRLF/BOM preservation, and a 2-stage Tree-sitter syntax + contract blast-radius gate (blocked_requires_force on breaking signature changes with callers unless force=true).
| Parameter | Type | Description |
|---|---|---|
file * | string | Relative or absolute path within workspace to the target source file |
new_code * | string | Replacement or inserted code block (indentation and CRLF/LF + BOM are auto-preserved) |
operation * | string | Edit operation: replace_body | insert_before | insert_after |
symbol * | string | Target symbol name or 'Class/method' path to edit (resolved via fresh disk AST parse) |
dry_run | boolean | Validate syntax and contract impact without modifying disk (default: false) |
force | boolean | Override Stage 2 contract blast-radius block when changing a signature with callers (default: false) |
max_answer_chars | integer | Optional maximum character budget for the response (default: 24000; <= 0 disables truncation) |
chronos_refactor_symbol
Perform graph-edge-verified multi-file refactoring (preview_usages, rename, safe_delete). Separates verified CALLS/TESTS/import edits from ambiguous member-access/shadowed candidate sites, enforces multi-file syntax validation + atomic rollback, and guards public/entrypoint/interface-impl deletions.
| Parameter | Type | Description |
|---|---|---|
action * | string | Refactoring action: preview_usages | rename | safe_delete |
symbol * | string | Target symbol name or 'Class/method' path to analyze, rename, or safely delete |
dry_run | boolean | Preview multi-file diff and candidate sites without writing disk (default: false) |
file | string | Optional defining source file path for symbol disambiguation |
force | boolean | Override ambiguity/homonym or dependent guards when applying rename/safe_delete (default: false) |
max_answer_chars | integer | Optional maximum character budget for the response (default: 24000; <= 0 disables truncation) |
new_name | string | New identifier name (required when action == 'rename') |
use_lsp | boolean | Opt-in hybrid compiler LSP reference resolution to disambiguate candidate_sites; falls back cleanly to AST if unavailable (default: false) |