Skip to content

fix: add developer agent tests, fix calculator security, improve registry, add CLI info command#6

Merged
jeancsil merged 1 commit intomainfrom
add-tests
Feb 17, 2026
Merged

fix: add developer agent tests, fix calculator security, improve registry, add CLI info command#6
jeancsil merged 1 commit intomainfrom
add-tests

Conversation

@jeancsil
Copy link
Owner

  • Add comprehensive test file for DeveloperAgent with 5 tests covering
    system prompt, local tools, tool descriptions, run method, and MCP
    tool integration- Replace dangerous eval() in CalculatorTool with safe
    AST-based math evaluator supporting basic operators (+, -, *, /, //,
    %, **) and functions (abs, round, min, max, sum). Blocks dangerous
    operations like import and attribute access- Add duplicate
    registration validation to AgentRegistry with
    DuplicateAgentRegistrationError exception, set_strict_registration()
    method, and optional override parameter for controlled overwrites-
    Add CLI 'info' command to display agent details including class name,
    module, MCP servers, system prompt, and available tools- Fix ruff
    issues: long lines in example.py and test_developer_agent.py, unused
    variable in test- Fix mypy issues: return type annotations in
    registry.py and cli.py, Callable import, typing fixes in example.py-
    Update AGENTS.md with new registry methods and CLI command
    documentation- Update TODO.md marking 4 items complete

…stry, add CLI info command

- Add comprehensive test file for DeveloperAgent with 5 tests covering
  system prompt,  local tools, tool descriptions, run method, and MCP
  tool integration- Replace dangerous eval() in CalculatorTool with safe
  AST-based math evaluator  supporting basic operators (+, -, *, /, //,
  %, **) and functions  (abs, round, min, max, sum). Blocks dangerous
  operations like  __import__ and attribute access- Add duplicate
  registration validation to AgentRegistry with
  DuplicateAgentRegistrationError exception, set_strict_registration()
  method,  and optional override parameter for controlled overwrites-
  Add CLI 'info' command to display agent details including class name,
  module, MCP servers, system prompt, and available tools- Fix ruff
  issues: long lines in example.py and test_developer_agent.py,  unused
  variable in test- Fix mypy issues: return type annotations in
  registry.py and cli.py,  Callable import, typing fixes in example.py-
  Update AGENTS.md with new registry methods and CLI command
  documentation- Update TODO.md marking 4 items complete
@jeancsil jeancsil merged commit 07b21cc into main Feb 17, 2026
3 checks passed
@jeancsil jeancsil deleted the add-tests branch February 17, 2026 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant