Skip to main content

Test invoke-agent.py Universal Invoker

Verifies that invoke-agent.py can correctly:

  1. Load all 130+ agents
  2. Parse their frontmatter
  3. Generate valid Task() calls

Run: python3 scripts/tests/test_invoke_agent.py python3 scripts/tests/test_invoke_agent.py -v # Verbose

Author: CODITECT Team Version: 1.0.0 Created: 2025-12-22

File: test_invoke_agent.py

Classes

Colors

No description

Functions

get_framework_root()

Get framework root directory

get_all_agents(framework_root)

Get list of all agent names

test_invoke_agent_list(framework_root)

Test --list command

test_invoke_agent_info(framework_root, agent_name)

Test --info command for a specific agent

test_invoke_agent_task_generation(framework_root, agent_name)

Test Task() call generation for a specific agent

test_invoke_agent_json_output(framework_root, agent_name)

Test JSON output format

test_all_agents_loadable(framework_root, verbose)

Test that all agents can be loaded by invoke-agent.py

test_sample_task_generation(framework_root, verbose)

Test Task() generation for a sample of agents

main()

No description

Usage

python test_invoke_agent.py