HOANGSA context engineering — /hoangsa:* workflow commands, worker agents, and memory-discipline skills. Pair with the hoangsa installer for enforcement hooks and the hoangsa-memory MCP server.
Manage worker-rules addons — list available, add/remove addons interactively. Use when the user wants to see available addons, enable/disable framework-specific worker rules, or says "addon", "addons", "worker rules".
Audit the codebase — scan for code smells, architecture issues, security risks, performance problems, and tech debt → AUDIT-REPORT.md. Use when the user wants a health check, code review, wants to find problems before refactoring, says "audit", "review codebase", "find issues", "tech debt", or needs a comprehensive analysis of what needs fixing.
Brainstorm an idea — explore intent, propose approaches, validate design → BRAINSTORM.md. Use BEFORE /hoangsa:menu when you have a vague idea and want to explore it collaboratively before committing to a spec. Output feeds directly into the menu workflow.
Initialize HOANGSA for a project — detect codebase, setup preferences, model routing. Run once when starting a new project. Use when the user says "init", "setup project", "first time", or when .hoangsa/config.json doesn't exist yet.
Status — show session progress with wave structure, budget usage, and artifacts. Use when the user asks "how's it going", "what's the status", "show progress", or wants an overview of the current session.
Quality gate reviewer — checks implementation against acceptance criteria and reports pass/fail with evidence.
Simplify pass worker — reviews recently-changed files for code quality issues, duplication, and unnecessary complexity.
Implementation worker — executes a single task from the HOANGSA plan with write access to the task's files.
Read-only worker for research and analysis tasks — cannot modify files.
This skill should be used when the user is building, changing, or trying to verify a frontend feature on web (React/Vite) or React Native/Expo, and is unsure how to prove it actually works. Triggers on phrases like 'how do I test this component/screen', 'verify this feature', 'make sure this works on web/mobile', 'is this covered by tests', 'my tests pass but the feature is broken', 'no tests yet', or before shipping any FE change. Guides the full loop: define verifiable success criteria before coding, write tests at the correct layer (logic/component/E2E/visual), and confirm behavior by running the real app.
This skill should be used when the user wants to start a new task, switch between tasks, park or resume work, finish a task (push + PR), clean up merged branches, or sync with upstream. Triggers on phrases like 'start task', 'new task', 'work on', 'switch to', 'park this', 'resume', 'continue where I left off', 'done with this', 'finish task', 'create PR', 'clean branches', 'delete merged', 'rebase', 'pull latest', or 'sync with main'.
Use when the user needs to run hoangsa-memory CLI commands — setup / index / query / watch / impact / context / changes / graph / memory / skills / eval / uninstall. Examples: "index this repo", "show memory", "trace the graph", "find taint paths", "uninstall hoangsa-memory".
Use when the user is debugging a bug, tracing an error, or asking why something fails. Examples: "why is X failing?", "where does this error come from?", "trace this bug", "who calls this method?", "this endpoint returns 500".
This skill should be used before any non-trivial coding action — editing code, writing new files, running migrations, deploying, or answering a question that involves factual claims about this codebase. It forces the agent to consult hoangsa-memory's persistent memory (USER.md, MEMORY.md, LESSONS.md, the indexed code graph) and acknowledge relevant lessons before acting. Trigger phrases: "edit", "refactor", "implement", "fix the bug in", "add a feature", "deploy", "why does this do", "how does X work".
Uses power tools
Uses Bash, Write, or Edit tools
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
A context engineering system for Claude Code
HOANGSA is a context engineering system for Claude Code that solves a fundamental problem: Claude's output quality degrades as the context window fills up. The fix is structural — HOANGSA splits work into discrete tasks, each running in a fresh context window with only the files it actually needs. The orchestrator never writes code; it dispatches workers with bounded context and assembles results.
HOANGSA ships four binaries: three CLIs you invoke directly
(hoangsa-cli, hoangsa-memory, hsp) plus one MCP server
(hoangsa-memory-mcp) that your agent harness spawns on your behalf.
Installing is two steps: 1) get the binaries (release installer or build from source), 2) wire the harness you use — Claude Code (done by default), Codex CLI/Desktop, or Claude Cowork. See Wire your harness.
| Triple | Status | Notes |
|---|---|---|
darwin-arm64 | ✅ Supported | Apple Silicon (M1 / M2 / M3 / M4) |
linux-x64 | ✅ Supported | glibc-based distros (Ubuntu, Debian, Fedora, RHEL, …) |
linux-arm64 | ✅ Supported | glibc-based distros |
linux-* (musl / Alpine) | ❌ Not supported | ONNX Runtime binaries link glibc — build from source |
| Windows | ❌ Not yet | Use WSL2 (Ubuntu) |
Prerequisites on the target machine: curl or wget, tar, and one of
sha256sum / shasum. No Node, no Python, no Docker, no cargo needed
for the release tarball.
For contributors building from source you additionally need Rust 1.91+
(rustup toolchain install stable) and a C toolchain (build-essential
on Debian/Ubuntu, Xcode Command Line Tools on macOS).
One command pulls the latest release, verifies the SHA-256 checksum,
drops all four binaries into ~/.hoangsa/bin/, registers the
hoangsa-memory MCP server in Claude Code, and pre-downloads the
fastembed ONNX weights.
curl -fsSL https://github.com/pirumu/hoangsa/releases/latest/download/install.sh | sh
Flags (pass after sh -s --):
| Flag | Effect |
|---|---|
--global | Install globally for this user (default) — writes to the resolved Claude config dir |
--local | Install for the current project only — writes to ./.claude/ |
--no-embed | Skip pre-downloading the multilingual-e5-small weights (~118 MB). They will fetch lazily on first index / query / archive ingest. Useful on bandwidth-constrained links. |
--dry-run | Print actions without writing files — good for auditing |
--help | Show the installer help |
Examples:
# Global install (default)
curl -fsSL https://github.com/pirumu/hoangsa/releases/latest/download/install.sh | sh
# Project-local install
curl -fsSL https://github.com/pirumu/hoangsa/releases/latest/download/install.sh | sh -s -- --local
# Dry-run to see what would happen
curl -fsSL https://github.com/pirumu/hoangsa/releases/latest/download/install.sh | sh -s -- --dry-run
# Pin a specific version
HOANGSA_VERSION=v0.2.2 curl -fsSL https://github.com/pirumu/hoangsa/releases/download/v0.2.2/install.sh | sh
Environment overrides:
| Variable | Default | Purpose |
|---|---|---|
HOANGSA_VERSION | latest | Release tag to install (e.g. v0.2.2) |
HOANGSA_REPO | pirumu/hoangsa | GitHub repo slug to download from |
HOANGSA_INSTALL_DIR | $HOME/.hoangsa | Root for all binaries and cache |
HOANGSA_CLI_DIR | $HOANGSA_INSTALL_DIR/bin | Override just the CLI bin dir |
HOANGSA_NO_PATH_EDIT | — | Set to 1 to skip ~/.zshrc / ~/.bashrc edits (export PATH manually) |
CLAUDE_CONFIG_DIR | auto-detected | Pin a specific Claude profile (~/.claude, ~/.zclaude, …) |
The installer honours CLAUDE_CONFIG_DIR if it is already set, and
otherwise detects multiple Claude profile dirs (~/.claude,
~/.zclaude, …). With more than one it prompts; pass the env var
explicitly in non-TTY installs.
Clone the repo and run the local install helper — builds the workspace in release mode, installs the four binaries, and wires Claude Code the same way the release installer does:
git clone https://github.com/pirumu/hoangsa.git
cd hoangsa
scripts/install-local.sh --global # or --local for per-project
Flags: --global / --local, --dry-run, --no-embed, --skip-build
(re-run the post-build steps without recompiling).
Just one CLI? Each binary can be installed standalone via cargo:
npx claudepluginhub unknown-studio-dev/hoangsa --plugin hoangsaWrite blog posts and social media content that sounds human — in English, Vietnamese, or mixed. Supports Substack, Medium, Hashnode, Dev.to, Ghost, Viblo, Reddit, Facebook, and Threads. Includes visual diagram generation (Mermaid), adaptive feedback learning, voice profile system, short/medium/long post formats, anti-AI-voice guidelines, Vietnamese writing voice, MCP publishing integration, and skill-gate enforcement hooks.
Break epic documents into 3-5 feature specs (team contracts) and optionally further into 3-5 sub-specs per feat spec (shippable PRs sized for AI coding harnesses like hoangsa). Adapts to user personas (PM, tech lead, solo dev), integrates UI designs from Figma/Pencil with mismatch detection, writes sub-specs into Notion via the Notion MCP, emits Plan Split annotations to prevent AI-rot in oversized hoangsa sessions, and enforces read-before-write hooks so AI agents never skip reference files. Ships native adapters for OpenAI Codex and Google Gemini alongside the Claude Code plugin so the same workflow runs across all three agents.
Context management with save and restore capabilities
Persistent memory for Claude Code sessions using Honcho
Persistent memory system for AI coding sessions — cross-tool memory sharing with 6-dimensional hybrid search
Persistent memory system for Claude Code with enforced context
Persistent local memory for Claude Code. Cross-session recall with vector search, automatic archiving, zero cloud dependencies.
Persistent context for AI coding assistants