Skip to content

feat: custom agent names and per-agent system prompts#46

Open
Solar2004 wants to merge 2 commits into
aannoo:mainfrom
Solar2004:feat/agent-prompts
Open

feat: custom agent names and per-agent system prompts#46
Solar2004 wants to merge 2 commits into
aannoo:mainfrom
Solar2004:feat/agent-prompts

Conversation

@Solar2004
Copy link
Copy Markdown

Summary

Add --agent-name flag to launch for custom agent names, and support for per-agent system prompts via ~/.hcom/agents/<name>.md files.

Changes

  • src/agent_prompts.rs — load per-agent prompts from ~/.hcom/agents/
  • --agent-name flag in commands/launch.rs
  • Prompt injection on bootstrap and session compaction
  • Docs in bootstrap output about the agent prompt system

Solar2004 added 2 commits May 9, 2026 10:02
…mpts via .hcom/agents/

- Add --agent-name flag to launch CLI (commands/launch.rs)
- Wire through to launcher LaunchParams.name (already existed)
- Create agent_prompts.rs module for loading ~/.hcom/agents/<name>.md
- Inject agent prompt into bootstrap (bootstrap.rs)
- Inject agent prompt on compaction in both hcom.ts and hcom_kilo.ts plugins
- Ensure agents dir created on launch
…eate .hcom/agents/ files for spawned sub-agents
@Solar2004 Solar2004 force-pushed the feat/agent-prompts branch from 40fc1c1 to fd9cae5 Compare May 9, 2026 09:02
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