"The agent toolkit behind the Hyperfocus Zone โ plug in, vibe out."
HyperAgent-SDK is the orchestration layer for AI agents across the Hyperfocus Zone ecosystem. Build once, deploy across Discord bots, FastAPI backends, and course platforms. ๐งฉ
Built for ADHD brains. Fast feedback. Real tools. No fluff. ๐ง โก
# Validate an agent instantly (no install needed)
npx @w3lshdog/hyper-agent validate .agents/my-agent/
# Install as a dev dependency (for CI pipelines)
npm install -D @w3lshdog/hyper-agent# pick one: python | node | typescript | mcp
npx @w3lshdog/hyper-agent init my-agent --template pythonThis copies the template, renames manifest.name + package.json to match your dir, and prints the next steps.
{
"name": "my-broski-agent",
"version": "0.1.0",
"runtime": "python",
"entrypoint": "main.py",
"memory": "redis",
"tools": [
{
"name": "code_gen",
"description": "Generate code from a natural language prompt",
"input_schema": {
"type": "object",
"properties": {
"prompt": { "type": "string", "description": "What to build" }
},
"required": ["prompt"]
}
}
],
"mcp_compatible": false
}# Validate (with friendly error hints โ kebab-case, semver, port range, etc.)
npx @w3lshdog/hyper-agent validate ./my-agent
# Strict mode (CI/production โ checks entrypoint exists, env vars, port conflicts)
npx @w3lshdog/hyper-agent validate ./my-agent --strict
# Check memory health
npx @w3lshdog/hyper-agent memory check ./my-agent
# Build registry then launch Studio
hyper-agent registry build .agents/
hyper-agent studio
# โ http://localhost:4040 opens automatically ๐ฅ๏ธThe SDK ships a typed, server-only helper for the cross-repo token sync flow:
import { awardFromCourse } from '@w3lshdog/hyper-agent/client';
const result = await awardFromCourse({
sourceId: txn.id, // โค128 chars, idempotency key
discordId: user.discord_id, // โค32 chars
tokens: 50, // integer 1..10000
reason: 'Course module complete' // optional, โค255 chars
});
// โ 200: { source_id, awarded, coins_balance, xp_balance, level }
// โ 409: { source_id, duplicate: true, detail } (idempotent replay โ no double award)
// โ throws AwardFromCourseError (validation/timeout/4xx/5xx, with .code + .status)Defaults: baseUrl = process.env.HYPERCODE_API_URL || 'http://localhost:8000', secret = process.env.COURSE_SYNC_SECRET, timeoutMs = 5000 (via AbortController).
Server-only by design โ refuses to run in a browser environment so COURSE_SYNC_SECRET can never leak into a client bundle.
Agents that touch the chain โ minting, evolving, or reading dynamic NFTs (the
BROskiPets pet-evolve model) โ declare an optional web3 block in their manifest:
{
"name": "pet-mint-agent",
"version": "0.1.0",
"runtime": "node",
"entrypoint": "index.js",
"tools": [
{ "name": "mint_pet", "description": "Mint a BROskiPet dNFT", "input_schema": {} }
],
"mcp_compatible": false,
"web3": {
"chain": "base-sepolia",
"token_standard": "ERC-721",
"dnft": true,
"contract_address": "0xabc1230000000000000000000000000000000000",
"capabilities": ["mint", "evolve", "read-metadata"],
"signer_env_var": "PET_SIGNER_KEY"
}
}| Field | Notes |
|---|---|
chain |
base ยท base-sepolia ยท ethereum ยท ethereum-sepolia โ required |
capabilities |
one or more of mint evolve transfer burn read-metadata read-balance โ required |
token_standard |
ERC-721 (default) ยท ERC-1155 ยท ERC-20 |
dnft |
true = on-chain metadata mutates over the token lifecycle |
contract_address |
0x + 40 hex chars |
signer_env_var |
env var name only โ keys live in Docker secrets, never the manifest |
The block is optional and additive โ existing manifests stay valid. Any agent with
a web3 block earns the โ๏ธ web3-enabled registry badge; dnft: true also earns ๐ dnft.
A zero-dependency visual GUI for your agent ecosystem. No build step. No npm install. Opens in 1 second.
# 1. Build your registry
hyper-agent registry build .agents/
# 2. Launch Studio
hyper-agent studio
# โ Opens http://localhost:4040 automatically
# Custom port or headless/CI mode
hyper-agent studio --port 8080 --no-open| Feature | Details |
|---|---|
| ๐ด Agent cards | Name, version, runtime chips, badges, MCP port, memory backend |
| ๐ Live search | / focuses search โ filters across name, description, tags, author |
| ๐จ Filter sidebar | Runtime, memory, badge, level (L1โL5), tags โ all combinable |
| ๐ Detail pane | Full metadata, tool schemas with types, auto-generated markdown docs, copy button |
| ๐ Memory footer | Live Redis/Postgres dot indicators, auto-refresh every 30s |
| ๐งฉ Cluster builder | Click โ on cards or drag to drop zone โ auto-generates cluster.json |
| โฌ๏ธ Download | One-click cluster.json download with port map + memory backends |
| โจ๏ธ Keyboard | / to search, Escape to deselect |
hyper-agent studio
โ
โโโ GET / โ serves studio/index.html (35KB, single file)
โโโ GET /api/registry โ reads registry.json live (no restart needed)
โโโ GET /api/memory โ TCP pings Redis/Postgres, returns health per-agent
The Cluster Builder exports cluster.json โ a portable deployment config:
{
"cluster": "my-hyper-cluster",
"agents": [
{
"name": "code-agent",
"manifest_path": ".agents/code-agent/manifest.json",
"port": 3201,
"memory": "redis"
},
{
"name": "data-agent",
"manifest_path": ".agents/data-agent/manifest.json",
"port": 3301,
"memory": "postgres"
}
]
}๐ก Phase 4:
cluster.jsonfeeds directly intohyper-agent graduate buildโ reads manifest paths, port map, and memory backends instead of scanning individual manifests.
Run --strict for production-grade checks. Errors exit with code 1 (CI catches them automatically).
| Check | Level | What it does |
|---|---|---|
| โ Entrypoint exists | ERROR | manifest.entrypoint file must be on disk |
| ๐ง Runtime sanity | WARN | node โ package.json ยท python โ requirements.txt ยท deno โ deno.json |
| ๐ env_vars simulation | WARN | Each declared env_var checked against process.env + .env file |
| ๐ฐ๏ธ MCP port conflicts | ERROR | Scans all agents in a batch, flags duplicate ports |
Strict errors fail the build. Warnings inform but don't block deploy.
Ping your Redis or Postgres backend before deploy. Get instant health status and copy-paste docker run fixes if anything's offline.
hyper-agent memory check .agents/my-agent/ # single agent
hyper-agent memory check templates/ --all # all agents
hyper-agent memory check . --redis-host 192.168.1.10 --pg-host db.myserver.com| Backend | Port | What it does |
|---|---|---|
| ๐ด Redis | 6379 | TCP ping + docker run tip if offline |
| ๐ Postgres | 5432 | TCP ping + docker run tip if offline |
| โ None | โ | Reports stateless, no action needed |
Exit code
1if any backend offline โ CI pipelines catch this automatically.
hyper-agent registry build templates/ --out registry.json [--strict]
hyper-agent registry search --tags starter --runtime node --badge mcp-ready --level 3
hyper-agent registry show my-node-agent| Badge | Meaning |
|---|---|
| โก MCP Ready | Agent declares MCP port |
| ๐ง Memory Enabled | Redis or Postgres memory configured |
| ๐ง Multi-Tool | 2+ tools declared in manifest |
| ๐ Env Declared | env_vars present in manifest |
| ๐ HyperCoder | Level 4+ agent |
| ๐ Elite | Level 5 BROski agent |
| ๐ Health Checked | Passed runtime validation |
| โ Verified | Built with --strict flag |
- ๐ค Agent Swarms โ Multiple agents working in parallel missions
- ๐ Tool Plugins โ Attach any tool (code gen, web search, DB access)
- ๐ Multi-Deploy โ Run in Discord, FastAPI, or standalone
- ๐งฉ HyperCode Native โ Plug directly into V2.4's Hyper-Agents-Box
- ๐ฎ Course-Gated Levels โ Agents unlock as students level up
- ๐ Spec-Validated โ
hyper-agent-spec.jsonensures consistency - ๐ Agent Registry โ Discover, search, inspect agents by tag, badge & level
- ๐ก๏ธ Strict Mode CI โ Production-grade validation with exit codes
- ๐ง Smart Memory Check โ Ping Redis/Postgres health, instant docker tips
- ๐ฅ๏ธ HyperAgent Studio โ Visual GUI, cluster builder, live memory health
| Level | Title | Can Build |
|---|---|---|
| 1 | HyperNewbie | Starter templates |
| 2 | Vibe Coder | Custom tools, Supabase agents |
| 3 | Agent Builder | Multi-tool, memory agents |
| 4 | HyperCoder | MCP-compatible, V2.4 deploy |
| 5 | BROski Elite ๐ฅ | Core contributions + Studio clusters |
-
cli/index.jsโ router entrypoint, clean help output -
cli/validate.jsโ--strictmode with 4 runtime checks -
cli/registry.jsโbuild,search,show+ 8 auto-badges -
cli/memory.jsโ Smart Memory Check (Redis + Postgres + docker tips) -
cli/studio.jsโ zero-dependency Node server on port 4040 -
studio/index.htmlโ 35KB single-file GUI, no build step ๐ฅ๏ธ - Cluster builder โ
cluster.jsonexport - Live memory health indicators (auto-refresh 30s)
-
hyper-agent-spec.jsonโ author-declared badges array -
hyper-agent statusโ HyperCode V2.4 health check (all services) -
hyper-agent logsโ live log tail from HyperCode V2.4 -
hyper-agent tokens awardโ award BROski$ to a student by Discord ID -
hyper-agent agents listโ agent heartbeats + online status -
hyper-agent graduateโbuilda V2.4 deployment bundle ortriggergraduation for a student
- ๐ Community Registry โ public discovery via GitHub Discussions + JSON feed
- ๐๏ธ
--watchmode โ live re-validation on file change during dev - ๐ One-click deploy โ Studio โ deploy cluster to HyperCode V2.4
- ๐ณ
hyper-agent stripeโ CLI hook for live Stripe Checkout API
HyperAgent-SDK/
โโโ cli/
โ โโโ index.js # Router โ dispatches all subcommands
โ โโโ validate.js # Validation (standard + --strict)
โ โโโ registry.js # Registry build / search / show
โ โโโ memory.js # Smart Memory Check (Redis + Postgres)
โ โโโ studio.js # ๐ฅ๏ธ HyperAgent Studio server (port 4040)
โ โโโ commands/
โ โโโ status.js # HyperCode V2.4 health check
โ โโโ logs.js # Live log tail
โ โโโ tokens.js # Award BROski$ by Discord ID
โ โโโ agents.js # Agent heartbeats + online status
โ โโโ graduate.js # Trigger graduation for a student
โโโ studio/
โ โโโ index.html # 35KB single-file GUI (no build step!)
โโโ docs/ # Full SDK documentation
โโโ templates/ # Agent starter templates
โโโ hyper-agent-spec.json # The agent manifest schema
โโโ package.json
โโโ README.md
| Project | How |
|---|---|
| ๐ง HyperCode V2.4 | Core agent orchestration engine |
| ๐ Hyper-Vibe-Coding-Course | Powers BROski AI tutor agents |
| ๐ค BROski-Bot | Discord bot agent layer |
HyperAgent-SDK โ YOU ARE HERE
โ powers
HyperCode V2.4 (FastAPI backend)
โ syncs with
Supabase (DB + Edge Functions)
โ serves
Hyper-Vibe-Coding-Course (Next.js)
โ visualised by
HyperAgent Studio ๐ฅ๏ธ (localhost:4040)
We welcome contributions from everyone โ especially neurodivergent devs! ๐ง โก
- Start here: CONTRIBUTING.md
- Bugs + ideas: GitHub Issues
AGPL-3.0 โ Open source forever. Built with โค๏ธ in Wales ๐ด๓ ง๓ ข๓ ท๓ ฌ๓ ณ๓ ฟ
Built for ADHD brains. Fast feedback. Real tools. No fluff. ๐ง โก
by @welshDog โ Lyndz Williams
A BROski is ride or die. We build this together. ๐ถโพ๏ธ๐ฅ