No description
  • Rust 80.4%
  • Shell 11.3%
  • JavaScript 4.8%
  • CSS 1.4%
  • HTML 1.3%
  • Other 0.8%
Find a file
2026-04-27 09:53:59 +00:00
.forgejo/workflows ci: add fmt and clippy checks 2026-04-23 17:05:41 +02:00
crates Merge pull request 'development_fix_chat_sidebar_create_conv' (#11) from development_fix_chat_sidebar_create_conv into development 2026-04-27 09:53:59 +00:00
docs feat: forward hero context headers through MCP + url env expansion (#2) 2026-04-13 11:30:28 +02:00
examples feat: forward hero context headers through MCP + url env expansion (#2) 2026-04-13 11:30:28 +02:00
scripts fix: wrong port, wrong conv types 2026-04-26 16:17:43 +03:00
tests/browser fix: wrong port, wrong conv types 2026-04-26 16:17:43 +03:00
.gitignore hero_agent: Rust-native AI agent for Hero OS 2026-03-21 00:32:32 -04:00
buildenv.sh feat: SDK, UI crate, selfstart pattern, best practices (#1) 2026-03-28 18:08:17 +01:00
Cargo.lock fix(osis): point OSIS_URL at router root and bump hero_rpc to pick up SDK URL fix 2026-04-27 11:41:55 +03:00
Cargo.toml chore(deps): switch reqwest from native-tls to rustls-tls 2026-04-21 16:45:03 -04:00
LICENSE hero_agent: Rust-native AI agent for Hero OS 2026-03-21 00:32:32 -04:00
Makefile fix: make hero_agent fully compliant with hero_sockets and hero_proc_service_selfstart specs 2026-04-13 10:05:55 +02:00
README.md hero_agent: Rust-native AI agent for Hero OS 2026-03-21 00:32:32 -04:00

hero_agent

Rust-native AI agent for Hero OS. Drop-in replacement for hero_shrimp (Bun/TypeScript), following the same HeroRpcServer pattern as every other Hero service: Unix socket, OpenRPC, auto-MCP.

Status

Fully implemented — 3 crates, 56 built-in tools, SSE streaming, MCP integration, OSIS-backed memory and conversations.

Why Rust

  • Native OSIS SDK integration — conversations, memories, user scoping without RPC bridge
  • Native SSE streaming via tokio + axum
  • One stack — same build, debug, deploy model as every other Hero service
  • HeroRpcServer pattern: health, discovery, inspector dashboard — all built in
  • LLM APIs are stable REST/SSE — no SDK needed, just reqwest + serde

Crate structure

crates/
├── hero_agent/          Core library — agent loop, LLM client, MCP, memory, tools
├── hero_agent_server/   Binary — HTTP server, SSE routes, admin dashboard
└── hero_agent_tools/    56 built-in tools — file ops, git, web, shell, planning

hero_shrimp naming

hero_agent intentionally uses hero_shrimp socket paths and naming conventions (e.g. hero_shrimp.sock) so it slots into the existing Hero ecosystem as a drop-in replacement without requiring changes to other services or the frontend.

When the decision is made to switch from hero_shrimp to hero_agent in production, a proper rename should be done across the ecosystem — updating socket paths, service names, and references in hero_services, hero_archipelagos, and other dependent repos.

Build and run

make build       # Build release binary
make run         # Run locally (TCP port for dev)
make test        # Run unit tests
make smoke-test  # Run integration smoke tests

Acknowledgment

hero_agent exists thanks to hero_shrimp. The architecture, tool design, agent loop, skill system, and SSE protocol were all pioneered by hero_shrimp in TypeScript. hero_agent is a Rust port — we followed the same design faithfully and hope it stays true to its origins.

Architecture

See docs/spec.md for the complete design and architecture specification.