sk-wang

sk-wang / hao-code

Public

A PHP Agent SDK and interactive CLI inspired by Claude Code and Codex

35
0
100% credibility
Found Apr 12, 2026 at 35 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
PHP
AI Summary

Hao Code is a PHP toolkit providing an interactive terminal agent and embeddable SDK for building AI coding assistants using Anthropic-compatible language models.

How It Works

1
🔍 Discover Hao Code

You hear about Hao Code, a friendly coding helper that chats with you and handles tasks like reading files or running commands.

2
📦 Add to your project

Easily add Hao Code to your coding setup so it's ready to use.

3
🔗 Connect a smart thinker

Link Hao Code to an AI service, giving your helper the power to understand and respond.

4
💬 Start chatting

Open the chat window and ask your helper to explain code, fix bugs, or build features – watch it work step by step.

5
💾 Save your conversations

Your chats are automatically saved, so you can pick up right where you left off anytime.

6
Use in apps or terminal
⚙️
Embed in apps

Put the smart helper inside your programs to make them think and act on their own.

🖥️
Terminal chats

Keep using the easy chat for daily coding questions and tasks.

🎉 Code smarter, faster

Your coding flows smoothly with a reliable AI partner handling the heavy lifting, saving you time and effort.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 35 to 35 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is hao-code?

Hao-code is a PHP SDK and interactive CLI for building and running AI coding agents with Anthropic-compatible APIs like Claude. It lets PHP developers embed agent skills php into Laravel apps via Composer, handling multi-turn conversations, streaming responses, custom PHP tools, and structured JSON output. The CLI offers a REPL with 30+ built-in tools for shell commands, file edits, git ops, and sub-agent teams, solving the lack of robust php agentic frameworks.

Why is it gaining traction?

Unlike generic HTTP wrappers, hao-code provides a full php agentic ai stack with session persistence, cost tracking, abort controls, and hooks—features devs notice in real workflows. Custom tools hook directly into your PHP code (e.g., database queries), and CLI slash commands like /plan or /tasks make agent orchestration feel native. For github php laravel users, it's a rare drop-in for code hao automation without JS dependencies.

Who should use this?

Laravel backend devs integrating agent skills php for tasks like code review or bug triage. PHP CLI enthusiasts debugging repos or prototyping APIs locally. Teams building php agents md for support ops, where sub-agents handle git diffs, cron jobs, or web searches.

Verdict

Grab it from github php download if you're in the PHP agentic ai niche—solid docs and examples make early adoption low-risk despite 35 stars and 1.0% credibility score. Still maturing with basic tests; watch for stability as usage grows.

(198 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.