codegraph icon indicating copy to clipboard operation
codegraph copied to clipboard

add CLI skills

Open doctorcolossus opened this issue 5 months ago • 6 comments

My use case is that I'd like to use a containerized terminal backend with hermes-agent. The assumption seems to be that the MCP server will run in the host environment, whereas if my agent is running commands in a container, the MCP server there won't have access to the files in the container. I could try to get hermes to run the MCP server in the container and work out how to ensure and configure a consistent URL using a network alias or something, or try to figure out some file-sharing mechanism using volume-mounts, but it's annoying to have to add such extra complexities to my setup just to get codegraph working with it.

It seems like it would be much simpler and more elegant if my agent could just use the excellent CLI directly without MCP. I can see that you have skills add-lang and agent-eval. Have you considered adding skills for the CLI?

doctorcolossus avatar Jun 03 '26 23:06 doctorcolossus

https://help.instagram.com/512371932629820/?helpref=uf_share

treytracedit-lab avatar Jun 03 '26 23:06 treytracedit-lab

yeah we need this

0DennisLee0 avatar Jun 18 '26 02:06 0DennisLee0

Thanks — this is a real setup friction, but there may already be a clean answer. codegraph ships a full CLI that works completely independently of the MCP server: codegraph index, codegraph query, codegraph callers, codegraph callees, codegraph context, etc. all run standalone. So inside your container you can install codegraph and run those directly against the container's filesystem — no host MCP server, no volume-sharing, no network alias needed. Point your hermes agent at the CLI as a tool/skill and it works where the code actually lives.

The one thing to manage is index freshness — run codegraph sync (or a git hook) in the container after edits.

If what you specifically want is a first-class, pre-packaged skill wrapper around the CLI for hermes (rather than wiring the commands yourself), that's a fair feature ask and I'll keep this open for it. Does running the CLI in-container unblock your use case in the meantime?

colbymchenry avatar Jun 20 '26 05:06 colbymchenry

If what you specifically want is a first-class, pre-packaged skill wrapper around the CLI for hermes (rather than wiring the commands yourself), that's a fair feature ask and I'll keep this open for it.

Yes, at least one SKILL.md file specifically for the CLI is exactly what I was suggesting.

codegraph ships a full CLI that works completely independently of the MCP server: codegraph index, codegraph query, codegraph callers, codegraph callees, codegraph context, etc. all run standalone. So inside your container you can install codegraph and run those directly against the container's filesystem — no host MCP server, no volume-sharing, no network alias needed. Point your hermes agent at the CLI as a tool/skill and it works where the code actually lives.

The one thing to manage is index freshness — run codegraph sync (or a git hook) in the container after edits.

...

Does running the CLI in-container unblock your use case in the meantime?

That is indeed what I've been doing in the meantime. I pointed it towards codegraph --help, and it's been able to use it, but seems quite lazy in its approach, mainly just using the query subcommand as a grep substitute, and almost never any of the other subcommands. I do think a good SKILL.md would help.

Thank you, love this project!

doctorcolossus avatar Jun 20 '26 12:06 doctorcolossus

If what you specifically want is a first-class, pre-packaged skill wrapper around the CLI for hermes (rather than wiring the commands yourself), that's a fair feature ask and I'll keep this open for it.

Also, I'm personally only familiar with Hermes Agent myself so far (so anyone feel free to correct me on this if I'm mistaken), but my understanding was that skill files were an agent-agnostic "open standard", so I don't think that any such skills would need to entail anything Hermes-specific. Thus, I think that such skills would benefit users of any agentic system capable of directly invoking shell tools.

doctorcolossus avatar Jun 20 '26 15:06 doctorcolossus

Implemented in https://github.com/colbymchenry/codegraph/pull/1019.

mvanhorn avatar Jun 27 '26 16:06 mvanhorn