Command Line Interface (CLI) Reference 💻¶
This section documents the subcommands and command-line execution helper modules in dv-agentic-system.
Agent Invocation Commands¶
These CLI handlers map command-line arguments to agent runs.
Orchestrator Command¶
orchestrator
¶
CLI entrypoint for OrchestratorAgent.
Sub-agents are wired up automatically based on --simulator and
--adapter flags. The LLM client is selected from environment variables
(see :mod:~dv_agentic.cli._factory).
When --project-config is provided, the three-layer configuration system
is activated: team profile, IP-type rules, and adapter settings are all
loaded from .agent/project.yaml and the profiles directory, and injected
into every agent's system prompt via :class:~dv_agentic.prompts.prompt_loader.PromptLoader.
Examples:
.. code-block:: shell
# Minimal: no profile injection
python3 -m dv_agentic.cli.orchestrator \
--input-file task.txt \
--simulator xcelium \
--adapter imc
# Full: load team + IP profiles from project.yaml
python3 -m dv_agentic.cli.orchestrator \
--project-config .agent/project.yaml \
--profiles-dir ../team-profiles \
--input-file task.txt
main()
¶
Main execution block of the Orchestrator CLI.
Source code in src/dv_agentic/cli/orchestrator.py
Code Generator Command¶
code_generator
¶
CLI entrypoint for CodeGeneratorAgent.
Examples:
.. code-block:: shell
python3 -m dv_agentic.cli.code_generator --task-id cov_fix_001 --input-file task_description.txt
main()
¶
Main execution block of the CodeGenerator CLI.
Source code in src/dv_agentic/cli/code_generator.py
Sim Controller Command¶
sim_controller
¶
CLI entrypoint for SimControllerAgent.
Examples:
.. code-block:: shell
python3 -m dv_agentic.cli.sim_controller --task-id cov_fix_001 --test axi_burst_test --seed 42 --simulator xcelium
main()
¶
Main execution block of the SimController CLI.
Source code in src/dv_agentic/cli/sim_controller.py
Log Analyzer Command¶
log_analyzer
¶
CLI entrypoint for LogAnalyzerAgent.
Examples:
.. code-block:: shell
python3 -m dv_agentic.cli.log_analyzer --input-file sim_test_42.log
python3 -m dv_agentic.cli.log_analyzer --input-file - # read stdin
cat sim.log | python3 -m dv_agentic.cli.log_analyzer
main()
¶
Main execution block of the LogAnalyzer CLI.
Source code in src/dv_agentic/cli/log_analyzer.py
Specialty Commands¶
Spec Analyst Command¶
spec_analyst
¶
CLI entrypoint for SpecAnalystAgent.
Examples:
.. code-block:: shell
python3 -m dv_agentic.cli.spec_analyst --input-file spec.txt --output-path .agent/vplan.yaml
main()
¶
Main execution block of the SpecAnalyst CLI.
Source code in src/dv_agentic/cli/spec_analyst.py
Bug Classifier Command¶
bug_classifier
¶
CLI entrypoint for BugClassifierAgent.
Examples:
.. code-block:: shell
python3 -m dv_agentic.cli.bug_classifier --input-file failure_summary.txt --threshold 0.75
cat failure.txt | python3 -m dv_agentic.cli.bug_classifier
main()
¶
Main execution block of the BugClassifier CLI.
Source code in src/dv_agentic/cli/bug_classifier.py
Coverage Analyst Command¶
coverage_analyst
¶
CLI entrypoint for CoverageAnalystAgent.
Examples:
.. code-block:: shell
python3 -m dv_agentic.cli.coverage_analyst --job-id my_test_42 --adapter imc --threshold 90.0
main()
¶
Main execution block of the CoverageAnalyst CLI.
Source code in src/dv_agentic/cli/coverage_analyst.py
Reporter Command¶
reporter
¶
CLI entrypoint for ReporterAgent.
Examples:
.. code-block:: shell
python3 -m dv_agentic.cli.reporter --input-file session_results.txt --output-path .agent/tasks/{task_id}_report.md
main()
¶
Main execution block of the Reporter CLI.
Source code in src/dv_agentic/cli/reporter.py
Environment Setup & Installer Command¶
install_agents
¶
CLI entrypoint for the agent installer.
Materializes enriched .claude/agents/*.md (Claude Code YAML) and
.opencode/agents/*.md (OpenCode YAML preserved from templates) from
src/dv_agentic/prompts/*.tmpl.md, and mirrors root tools/ and skills/
into .claude/ / .opencode/.
What it does¶
- Optionally loads
project.yaml+ org profiles to enrich prompts (Level 1 injection: team rules + IP-type rules; session state omitted). - For each of the agents, calls :class:
~dv_agentic.prompts.prompt_loader.PromptLoaderto produce an enriched prompt body (placeholders filled, unmatched removed). - Strips the OpenCode-style YAML front matter from the source template.
- Prepends Claude Code compatible YAML front matter.
- Writes to
{project_root}/.claude/agents/{agent}.md. - Writes enriched content to
{project_root}/.opencode/agents/{agent}.md, keeping the OpenCode YAML from the template.
Examples:
.. code-block:: shell
# No profile injection — raw prompts only
python3 -m dv_agentic.cli.install_agents --project-root /path/to/project
# Full profile injection
python3 -m dv_agentic.cli.install_agents \
--project-root /path/to/project \
--project-config .agent/project.yaml \
--profiles-dir ../team-profiles
# Overwrite existing files
python3 -m dv_agentic.cli.install_agents --force
install(project_root, project_config_path=None, profiles_dir=None, force=False, target='opencode')
¶
Standardized installer main entry.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
target
|
str
|
Which platform(s) to install to — |
'opencode'
|
Source code in src/dv_agentic/cli/install_agents.py
339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 | |
main()
¶
Main execution block for the install-agents CLI.
Source code in src/dv_agentic/cli/install_agents.py
Wiki Knowledge Base Commands¶
These commands manage the persistent LLM Wiki knowledge base introduced in v0.7.0.
Wiki integration must be enabled via wiki.enabled: true in .agent/project.yaml.
Wiki Ingest Service¶
Ingest runs inside agents (LogAnalyzerAgent, BugClassifierAgent, ReporterAgent); there is no separate wiki_ingest CLI entry point.
ingest
¶
Wiki ingest service — writes agent analysis results into the wiki.
Phase A scope
ingest_pattern() — create or update patterns/{failure_subtype}.md
Phase B scope (this file):
ingest_bug() — create a new bugs/{TYPE}_{date}_{seq}.md page
Phase C will add: ingest_coverage_hole()
Design constraints¶
- Every write is atomic (temp-file +
os.replace). log.mdis append-only — existing entries are never modified.- Failures are non-fatal: callers catch all exceptions and log at DEBUG so a wiki write error never crashes an agent session.
- No LLM client is required in Phase A/B — all content is structured data
derived from
LogAnalyzerAgent/BugClassifierAgentoutput.
WikiIngestResult
dataclass
¶
Summary of a completed :class:WikiIngestService operation.
Attributes:
| Name | Type | Description |
|---|---|---|
task_id |
str
|
Originating task identifier (used for citation). |
pages_created |
list[str]
|
Relative paths of newly created wiki pages. |
pages_updated |
list[str]
|
Relative paths of updated wiki pages. |
log_entry |
str
|
The text appended to |
index_updated |
bool
|
Whether |
search_index_updated |
bool
|
Whether the BM25 index was refreshed. |
Source code in src/dv_agentic/wiki/ingest.py
WikiIngestService
¶
Writes LogAnalyzerAgent results into the wiki knowledge base.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
wiki_config
|
WikiConfig
|
Wiki integration configuration. |
required |
Source code in src/dv_agentic/wiki/ingest.py
120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 | |
ingest_bug(bug_type, confidence, evidence, error_class, failure_subtype, task_id, ip_type='custom', log_path='')
¶
Create a new bug page in bugs/{TYPE}_{date}_{seq:03d}.md.
Every call creates a new page (bugs are not merged on update).
The page ID follows: {RTL|TB}_{YYYYMMDD}_{seq:03d}.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
bug_type
|
str
|
|
required |
confidence
|
float
|
Classification confidence score (0.0-1.0). |
required |
evidence
|
list[str]
|
Bullet-point evidence strings from BugClassifierAgent. |
required |
error_class
|
str
|
Top-level error class from LogAnalyzerAgent. |
required |
failure_subtype
|
str
|
Granular subtype from LogAnalyzerAgent. |
required |
task_id
|
str
|
Task identifier used in citation and log. |
required |
ip_type
|
str
|
IP type ( |
'custom'
|
log_path
|
str
|
Path to the simulation log (for citation). |
''
|
Returns:
| Type | Description |
|---|---|
WikiIngestResult
|
class: |
Source code in src/dv_agentic/wiki/ingest.py
212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 | |
ingest_coverage_hole(covergroup, bin_name, action_class, scenario, filled, task_id)
¶
Create or update coverage/{covergroup}_{bin_name}.md.
Source code in src/dv_agentic/wiki/ingest.py
ingest_pattern(failure_subtype, error_class, context_lines, fix_applied, success, task_id)
¶
Create or update patterns/{failure_subtype}.md.
On first occurrence the page is created from a template. On
subsequent calls only hit_count, last_seen, and the
Resolution History table are updated.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
failure_subtype
|
str
|
Granular subtype from
:meth: |
required |
error_class
|
str
|
Top-level error class (e.g. |
required |
context_lines
|
list[str]
|
Lines surrounding the matched error in the log. |
required |
fix_applied
|
str | None
|
Short description of the fix applied, or |
required |
success
|
bool
|
Whether the fix led to a passing simulation. |
required |
task_id
|
str
|
Task identifier used in the citation footer. |
required |
Returns:
| Type | Description |
|---|---|
WikiIngestResult
|
class: |
Source code in src/dv_agentic/wiki/ingest.py
ingest_session(session_report, failure_summary, classification, coverage_summary, task_id)
¶
Heuristically dispatch to pattern, bug, and coverage ingestion based on session data.
Source code in src/dv_agentic/wiki/ingest.py
Wiki Lint Command¶
wiki_lint
¶
Wiki linting CLI.
Usage
python -m dv_agentic.cli.wiki_lint [--depth quick|full]
Wiki Search Index¶
search
¶
Wiki search index — BM25 and keyword fallback backends.
Strategy Pattern: two implementations share one WikiSearchIndex interface.
BM25SearchIndex — uses bm25s[core] (air-gapped, pure Python).
Falls back to KeywordSearchIndex when bm25s is absent.
KeywordSearchIndex — simple substring scoring; zero extra dependencies.
Usage::
idx = WikiSearchIndex.create("bm25", wiki_dir)
idx.build(wiki_dir) # initial build
idx.update(page_path, new_content) # after each ingest write
results = idx.search("timescale", top_k=3) # BM25 / keyword query
Install bm25s for the full BM25 experience::
pip install "bm25s[core]"
Without it, the system transparently falls back to keyword matching so every agent workflow keeps working.
BM25SearchIndex
¶
Bases: WikiSearchIndex
BM25 index backed by bm25s[core].
Falls back to :class:KeywordSearchIndex transparently when bm25s
is not installed, so the system keeps working in environments where the
[wiki] optional extra is absent.
The bm25s index is persisted to {wiki_dir}/.search_index/ after
each full build. Because bm25s v0.2 does not support incremental
updates, a full rebuild is triggered on every :meth:update call.
For wiki sizes typical in DV projects (< 500 pages) this takes < 1 s.
Source code in src/dv_agentic/wiki/search.py
150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 | |
build(wiki_dir)
¶
Build BM25 index from all wiki pages, persist to disk.
Source code in src/dv_agentic/wiki/search.py
search(query, top_k=5)
¶
BM25 search; delegates to keyword fallback if bm25s unavailable.
Source code in src/dv_agentic/wiki/search.py
update(page_path, content)
¶
Rebuild the full index after a page is written.
Source code in src/dv_agentic/wiki/search.py
KeywordSearchIndex
¶
Bases: WikiSearchIndex
Simple in-memory keyword search — counts query term occurrences.
Used as a fallback when bm25s is not installed, and as the default
when search_backend: "none" is set in project.yaml.
Source code in src/dv_agentic/wiki/search.py
SearchResult
dataclass
¶
Single result returned by :meth:WikiSearchIndex.search.
Attributes:
| Name | Type | Description |
|---|---|---|
page_path |
str
|
Path relative to wiki_dir. |
score |
float
|
BM25 or keyword relevance score (higher = more relevant). |
excerpt |
str
|
First 200 characters of the page body. |
frontmatter |
dict[str, Any]
|
Parsed YAML frontmatter dict (may be empty). |
Source code in src/dv_agentic/wiki/search.py
WikiSearchIndex
¶
Bases: ABC
Abstract search index interface.
Source code in src/dv_agentic/wiki/search.py
build(wiki_dir)
abstractmethod
¶
create(backend, wiki_dir)
classmethod
¶
Factory: instantiate the appropriate backend.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
backend
|
str
|
|
required |
wiki_dir
|
Path
|
Wiki root directory. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
Concrete |
WikiSearchIndex
|
class: |
Raises:
| Type | Description |
|---|---|
ValueError
|
If backend is not recognised. |
Source code in src/dv_agentic/wiki/search.py
search(query, top_k=5)
abstractmethod
¶
Wiki Build Command¶
wiki_build
¶
Wiki build CLI.
Rebuilds index.md and the BM25 search index.
Usage
python -m dv_agentic.cli.wiki_build