Summary
Audit how agents are registered and attached to the CLI in both interactive and query modes, ensuring the architecture is clean and extensible.
Motivation
The CLI currently has multiple ways to invoke agents:
- Query mode:
gemicro --agent <name> "query"
- Interactive mode: agent selection during session
Questions to answer:
- How are agents discovered and registered?
- Is the agent registry the right abstraction?
- Can third-party agents be added without modifying the CLI?
- Is there unnecessary coupling between the CLI and specific agents?
Scope
-
Document current flow
- How
--agent flag resolves to an Agent impl
- How interactive mode presents agent options
- Where agent registration happens
-
Evaluate extensibility
- Can agents be added via plugins/extensions?
- Does the CLI need to know about all agents at compile time?
- How would external agents be integrated?
-
Identify improvements
- Registry patterns that could help
- Plugin architectures to consider
- Configuration-driven agent loading
-
Consider user experience
- Agent discovery and help text
- Validation and error messages
- Tab completion potential
Related
Summary
Audit how agents are registered and attached to the CLI in both interactive and query modes, ensuring the architecture is clean and extensible.
Motivation
The CLI currently has multiple ways to invoke agents:
gemicro --agent <name> "query"Questions to answer:
Scope
Document current flow
--agentflag resolves to an Agent implEvaluate extensibility
Identify improvements
Consider user experience
Related