Skip to content

Consolidate agent install flags into --install-agent / --uninstall-agent, add Droid support#96

Open
uepoch wants to merge 3 commits into
lightonai:mainfrom
uepoch:feat/agents
Open

Consolidate agent install flags into --install-agent / --uninstall-agent, add Droid support#96
uepoch wants to merge 3 commits into
lightonai:mainfrom
uepoch:feat/agents

Conversation

@uepoch
Copy link
Copy Markdown

@uepoch uepoch commented May 5, 2026

Summary

Unified --install-agent / --uninstall-agent flags

All agent install and uninstall flags now go through two value-accepting flags backed by a clap::ValueEnum. Invalid agent names are caught at parse time with a clear error listing valid options.

Droid (Factory) integration

Installs colgrep as a proper Factory skill at ~/.factory/skills/colgrep/SKILL.md with YAML frontmatter, following Droid's skill discovery model. The Droid auto-discovers and invokes the skill when code search is needed, and users can also trigger it with /colgrep. Uninstall removes the skill directory entirely.

Backward compatibility

--install-opencode, --install-claude-code, --install-codex, --install-hermes and their uninstall counterparts all continue to work but are hidden from --help.
If required, I can clear the old code, but I wanted to avoid breaking existing flows

uepoch added 2 commits May 5, 2026 13:57
Consolidate the eight --install-<agent> / --uninstall-<agent> boolean flags
into two value-accepting flags that take the agent name:

  colgrep --install-agent <opencode|claude|codex|hermes>
  colgrep --uninstall-agent <opencode|claude|codex|hermes>

The agent names are backed by a clap ValueEnum, so invalid values are caught
at parse time. Dispatch functions in install/mod.rs map enum variants to the
existing per-agent install/uninstall functions.

Old flags (--install-opencode, --install-claude-code, etc.) are kept as
hidden backward-compatible aliases that don't appear in --help output.
Success messages now reference the new flag names.
Install colgrep as a skill for Factory's Droid agent at
~/.factory/skills/colgrep/SKILL.md, following Droid's skill-based
extension model rather than the AGENTS.md injection used by other agents.

The skill includes YAML frontmatter with name/description so the Droid
can auto-discover and invoke it, and the same colgrep usage reference
shared across all agents.
@uepoch uepoch marked this pull request as ready for review May 5, 2026 12:05
@uepoch
Copy link
Copy Markdown
Author

uepoch commented May 6, 2026

Not sure if I can fix the cc linkage issue due to missing blas library on ubuntu. Let me know if this reappears

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