Loushang
A method-native AI work system that turns coding intent into recoverable, auditable, verifiable delivery.
- Source repo
- zhnt/loushang
- Stars
- ★ 2.1k
- Last updated
- today
- FARS reviewed
- Nov 25, 2026
- License
- Apache-2.0
- Primary language
- Python
- FA score
- 43/100 · Major gaps
At a glance
- How it runs
- Works with
- Universal · cross-platformOpenAI API · Claude API
- Cost
- Free software; you pay for model usage
- Setup effort
- Medium · a few setup steps
- You'll need
- Typical use
- Developers who want different models to handle planning, coding, and review within one terminal workflow
- Not a fit if
- Teams wanting a stable pip-installable release; the project is early-stage
- Users who need a GUI rather than a terminal workbench
- Maintenance
- Commits in the last 30 dayslast commit 2026-11-25
- Source review
- 43/100 · Major gaps
What does this agent do, and when should you use it?
Loushang is a method-native AI work system whose current product surface is loushang code, a CLI and terminal workbench for software development. It treats methods, stages, roles, tools, sessions, and work products as runtime objects, and sits on loushang.ai, a provider-aware AI SDK with a model registry, streaming, tool calls, and cost helpers covering GPT, Claude, DeepSeek, Qwen, Kimi, GLM, and MiniMax. Sessions are durable and can be resumed, forked, exported, and inspected; tools are exposed to the agent under policy, and project-level Python extensions contribute hooks, custom tools, resources, and commands. The project is Apache-2.0 licensed and in active early development, with running from source as the recommended path. It targets developers who want multi-step coding work in the terminal to stay recoverable and reviewable rather than collapsing into a single chat turn.
loushang code launches a terminal workbench, reads files in the current repository, and routes the task to the selected model provider; the loushang.ai layer resolves the model from a catalog and handles streaming, tool calls, and cost helpers. During a turn, built-in coding tools and configurable tool surfaces are invoked under policy, while project-level extensions inject hooks, custom tools, resources, and commands. Every conversation is recorded as a durable session that can be resumed, forked, exported, and diagnosed, and a method defines the roles, phases, workflow, constraints, artifacts, and acceptance expectations guiding the coding turns. The CLI also exposes --help, --list-models, --list-commands, and a single-shot -p prompt, producing code changes plus a traceable session record.
- Developers who want different models to handle planning, coding, and review within one terminal workflow
- Engineers who need to resume a long coding task later or fork it to try an alternative approach
- Tech leads writing project-level Python extensions to add custom tools and commands for their team
- Teams that need an auditable record of what an AI coding session did and produced
- Individual developers switching between GPT, Claude, DeepSeek and other providers by cost or capability
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Install / run
uv pip install -e ".[dev]"
How do you install or deploy this agent?
The project is in early development and the README recommends running from source. Clone the repository and create a virtual environment:
git clone https://github.com/zhnt/loushang.git
cd loushang
uv venv .venv
source .venv/bin/activate
uv pip install -e ".[dev]"Alternatively, the Makefile bootstrap target creates .venv/ with uv and installs in editable mode:
make bootstrapFor a local binary install, use:
make install-binaryBefore your first online prompt, configure the selected provider's credential as described in docs/en/getting-started (Configure a provider credential), which lists API key variables and OAuth routes.
How do you use this agent?
From the repository directory with .venv activated, inspect available models and commands first:
loushang --help
loushang --list-models
loushang --list-commandsThen try a single-shot prompt against a repository:
loushang -p "Inspect this repository and summarize what it does."In interactive sessions you can keep asking follow-ups and use session commands to resume, fork, export, or diagnose an existing session. The examples/coding/ and examples/ai/ directories show CLI, session, tool, and extension scenarios plus SDK complete, stream, and tools usage.
Safety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
What are this agent's strengths and limitations?
- Models methods, sessions, tools, and extensions as runtime objects, so work can be resumed, forked, and exported instead of living in a single chat
- loushang.ai routes across multiple providers, including GPT, Claude, DeepSeek, Qwen, Kimi, GLM, and MiniMax
- Tools are exposed under policy, and project-level Python extensions can add hooks, custom tools, resources, and commands
- Ships cost helpers alongside streaming and tool calls, which helps control multi-step terminal coding tasks
- Early-stage project: the README recommends running from source in a virtual environment, with no stable package install path
- You must supply and pay for your own model provider credentials; no model is bundled
- The interface is limited to the terminal workbench, with no GUI
- loushang work, research, and ppt are roadmap directions, not usable features today
How does this agent compare with similar options?
The README credits OpenAI Codex, Kimi CLI, pi, browser-use, superpowers, and others as public design references; Codex and Kimi CLI are the closest analogues for a terminal coding agent.
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| Loushang This agent | 43 · Major gaps | CLIFree + model costs | ★ 2.1k | today | Python | OpenAI API · Claude API |
| zerostack | 69 · Some gaps | CLIFree + model costs | ★ 1.8k | 1d ago | Rust | OpenAI API · Claude API |
| Pi Agent Desktop | 55 · Major gaps | Desktop appFree + model costs | ★ 945 | 2d ago | TypeScript | — |
| Pi Agent Rust | 70 · Some gaps | — | ★ 2k | today | Rust | OpenAI API · Claude API |
How does FollowAgents rate this agent?
Why each dimension lost points
Evidence shows solid sensitive-data handling in the auth layer: FileCredentialStore uses 0700/0600 modes, atomic writes, excludes tokens from reprs and forbids logging (docs/auth/oauth.md), so sensitive_data_handling scores 2. Least privilege is only fragmentary (tool policy, approval_required fields, plugin --approve-execution flag) with no unified permission model, so 1. User confirmation appears only via the explicit conformance approval flag and Work-log approval fields; no mandatory confirmation flow for destructive tool calls is shown, so 1. Data-flow transparency has only auth resolution order and provider routing fragments, no end-to-end data-flow account, so 1. Dependency security shows only version floors (anthropic>=0.89.0, openai>=2.30.0) and CI uv sync --locked, with no lockfile or vulnerability scanning evidence, so 1. External effects have abort/cancel mechanics and worktree cleanup rules but no unified side-effect inventory for file writes or network calls, so 1. Rollback shows only worktree removal and package-repair/gc script names, no transactional rollback semantics, so 1. Source attribution has LICENSE, NOTICE, THIRD_PARTY_NOTICES.md and an acknowledgements list, so 2.
self_consistency scores 1: README says early development and recommends running from source, AGENTS.md describes extensive lane/worktree workflows, but the sample shows no version pinning or release-artifact consistency evidence. dependency_availability scores 1: pyproject declares dependencies and Python>=3.11 with a CI install matrix, but no lockfile is in the sample and the darwin-x86_64-only cryptography conditional adds environment uncertainty. failure_messages scores 2: agent.py emits structured AIErrorInfo (code, source, retryable, provider, model, details) and oauth.md lists structured auth error types, a reasonably complete failure design.
audience_and_scenarios scores 2: README clearly scopes V1 to loushang code and lists CLI, SDK, sessions, tools, extensions and methods, with a clear audience. capability_boundaries scores 2: skill.md states Out Of Scope items (method selection, extension hooks, prompt assembly) and the plugin CLI repeatedly states Product admission/Session use require separate checks. trigger_precision scores 1: SKILL.md description and disable-model-invocation are documented, but there is no systematic account of trigger conditions or misfire protection. environment_fit scores 1: AGENTS.md mentions cross-platform API constraints and platform branching, but the sample implies complex GUI/Tauri, PTY and ConPTY requirements with no unified environment matrix.
information_architecture scores 2: README has clear concept layering and documentation links, and the docs structure is visible. install_notes scores 2: Quick Start gives uv install steps and explains make bootstrap versus the absent make install. naming_stability scores 1: many package/CLI entry points (loushang, loushang-tui, lmux, etc.), version 0.1.0 and early development with no naming stability commitment. examples_and_faq scores 1: examples/coding and examples/ai links plus a few SKILL.md samples, but no FAQ in the sample. known_limitations scores 1: README notes early development and a roadmap, oauth.md marks Codex import experimental, but there is no consolidated known-limitations list. license scores 3: full Apache-2.0 LICENSE text, pyproject license and license-files declarations, and README redistribution obligations. versioning_changelog scores 1: only version 0.1.0, no CHANGELOG or versioning policy in the sample. maintenance_responsibility scores 1: README names an initiator and contact, but publisher identity is unverified and maintenance responsibility and update path are unclear.
output_usability scores 1: the sample shows CLI outputs (work-log text/JSON tables, plugin JSON reports) but no complete evidence of deliverable usability. marginal_value scores 1: positioned as a method-native coding agent harness, but differentiation from existing coding agents rests on README claims with no verifiable capability evidence in the sample. cost_benefit scores 1: README mentions cost helpers and model routing, but no concrete cost-control, budget or token-usage mechanism is shown.
claim_traceability scores 1: README capability claims mostly lack file references, with only some links to docs. cross_source_corroboration scores 1: README, AGENTS.md, oauth.md and pyproject broadly agree (Python 3.11, uv, Apache-2.0), but core capability claims lack multi-source corroboration. fact_inference_separation scores 1: docs mix vision (V2-V5 roadmap) with current state; a Project Status section helps but the boundary remains blurry.
- Publisher identity is not verified by the FollowAgents curated enterprise registry; maintenance responsibility and update path are unclear, so verify provenance before adoption.
- No lockfile or dependency vulnerability scanning evidence appears in the sample; dependencies are constrained only by version floors, so assess supply-chain risk yourself.
- Tool governance and user confirmation appear only as scattered fields and an explicit approval flag; no mandatory confirmation flow for destructive operations is documented.
- README capability claims (multi-model orchestration, resumable sessions, auditable delivery) are largely self-asserted with little cross-verifiable implementation evidence.
- The project is in early development (0.1.0) with many CLI entry points and no naming stability commitment, so interfaces may change.
FAQ
Does Loushang cost anything?
Which models can it use?
Can I continue a session after it stops?
Can I add my own tools?
Is it ready for production use?
Is Loushang open source?
Is Loushang safe to use?
Is Loushang still maintained?
Who makes Loushang?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.