Skip to content
Agentmart
Submit a tool

xuanwu

Create, enqueue, inspect, retry, cancel, delete, or finish local Xuanwu issues from Codex or Claude Code.

Skill by williamnie

IndexedApache-2.0★ 4
Write a review

Chalk Labs

Need help deploying xuanwu?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/williamnie-xuanwu

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Create, enqueue, inspect, retry, cancel, delete, or finish local Xuanwu issues from Codex or Claude Code. Use when the user asks an agent to hand work to Xuanwu, create a local runner issue, automate an issue loop, enqueue a task for autonomous execution, delete stale runner issues, or check runner issue status/logs.

Use cases: productivity, agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/xuanwu

What's inside

Skill name
xuanwu
Description
Create, enqueue, inspect, retry, cancel, delete, or finish local Xuanwu issues from Codex or Claude Code. Use when the user asks an agent to hand work to Xuanwu, create a local runner issue, automate an issue loop, enqueue a task for autonomous execution, delete stale runner issues, or check runner issue status/logs.
License
Apache-2.0
Instructions
207 lines in SKILL.md · view on GitHub

Before installing

  • Instructions call the network

Files (2)

  • SKILL.md
  • issue-planning.md · references/

SKILL.md (first lines)

# Xuanwu Issue Runner

Use the local `xuanwu` CLI to hand bounded work from Codex, Claude Code, or another compatible agent to the target Xuanwu hub, selecting the project by execution location.

## Preconditions

- The Bun live service should be running at `XUANWU_ADDR` or `127.0.0.1:3008`.
- The target repository should already be registered as a project. If not, register it first.
- Prefer explicit project ids, short issue titles, and full markdown bodies in a temp file.

## Runtime Target

Daily usage:

- Addr: `127.0.0.1:3008`
- Token file: configured service state dir `auth_token`
- launchd label: `com.xiaobei.xuanwu`
- CLI: `xuanwu` or repo-local `./dist/xuanwu`

Use the configured token file via env or `--token-file`; never paste or print actual token values.

## CLI and Authentication

Before running CLI commands, set the bearer token when the service is auth-protected. Do not paste, hard-code, print, or commit the token value.

```bash
if [ -z "${XUANWU_AUTH_TOKEN:-}" ]; then
  if [ -n "${XUANWU_AUTH_TOKEN_FILE:-}" ] && [ -f "$XUANWU_AUTH_TOKEN_FILE" ]; then
    export XUANWU_AUTH_TOKEN="$(cat "$XUANWU_AUTH_TOKEN_FILE")"
  fi
fi
```

Token lookup rules:

- Prefer `XUANWU_AUTH_TOKEN` when it is already set.
- Prefer `XUANWU_AUTH_TOKEN_FILE` when it is set.
- For release installs or other projects, the token file lives under that runner's configured state/data directory; do not assume every runner uses the current repo path.
- If the CLI returns `401 Unauthorized: unauthorized`, retry only after setting `XUANWU_AUTH_TOKEN` or passing `--token-file <token-file>`.
- When working inside this repo and `xuanwu` on `PATH` is older, prefer `./dist/xuanwu` or reinstall the release/skill before retrying.
- Current subcommands do not implement `--help`; `project --help` is parsed as an unknown project command. Use this skill, repo docs, or source/tests as the CLI reference instead of probing subcommand help.
- `--json` prints a complete JSON document and may be pretty-printed across multiple lines. Parse the whole stdout; do not treat it as newline-delimited JSON.

## Smoke Checks

```bash
curl -fsS http://127.0.0.1:3008/health
xuanwu system status --addr 127.0.0.1:3008 --token-file "$XUANWU_AUTH_TOKEN_FILE" --json
./scripts/status-launchd.sh
```

## Create a Project

```bash
xuanwu project create \
  --addr "${XUANWU_ADDR:-127.0.0.1:3008}" \
  --id <project-id> \
  --cwd /absolute/path/to/repo \
  --provider <code-agent-id> \
  --default-agent-profile <agent-profile-id> \
  --json
```

注册 Project 即表示交给玄武接管;服务会自动绑定 Supervisor 并启用 Issue Loop,不提供 inert Project 或 `--auto-run` 选择。

`--provider` is the Project fallback Code Agent. `--default-agent-profile` is the preferred durable execution profile and may also define model, sandbox, approval policy, reasoning effort, and service tier. Keep the profile's provider aligned with the Project fallback unless an intentional cross-provider default is required.

## 远程节点与远程项目

所有任务都在中心创建;运行 CLI 的机器不决定任务执行位置,所选 Project 才决定。

### 从节点机器连接中心

从节点机器调用中心 API 时,`--addr` 使用 `~/.xuanwu/node.json` 的 `hub`,不要沿用本机 `127.0.0.1:3008`。只读取 `hub` 字段,不要输出整个配置文件(其中可能含节点密钥):

```bash
export XUANWU_ADDR="$(jq -er '.hub | select(type == "string" and length > 0)' "$HOME/.xuanwu/node.json")"
xuanwu project list --addr "$XUANWU_ADDR" --token-file "$XUANWU_AUTH_TOKEN_FILE" --json
```

`XUANWU_AUTH_TOKEN_FILE` 应指向当前机器上安全提供的**中心 `auth_token`** 文件。中心 API 令牌与节点连接用的 `xwn_` 密钥不同,不能混用;不要把 `node.json` 的 `token` 当成 API 令牌,不要打印、粘贴或提交任何令牌。缺少中心 API 凭据时需由管理员提供,不能用节点密钥替代。在中心本机调用时,使用该中心实际监听地址和其配置的 `auth_token`。

### 按执行位置选择 Project

```bash
xuanwu project list --addr "$XUANWU_ADDR" --token-file "$XUANWU_AUTH_TOKEN_FILE" --json
xuanwu node list --addr "$XUANWU_ADDR" --token-file "$XUANWU_AUTH_TOKEN_FILE" --json
```

项目列表的 `node_id` 为空表示**中心本机**项目;远程项目有 `node_id`、`node_path`,`cwd` 为 `node://<node-id>:<absolute-path>`。`location` 展示节点名称与路径。同一仓库可以同时注册为本机项目和远程项目,不能只按仓库名或路径相似度选项目。核对节点 ID、节点名称和路径后,将对应的项目 `id` 传给后文 `issue create --project <project-id>`;从节点发起任务也不会自动选中该节点的项目。

远程项目可用的编程工具由目标节点决定,不应照搬中心本机的工具列表。`xuanwu node list` 可查看节点在线状态和上报的 providers;针对已选项目,用 `/api/providers?project_id=` 查看该执行位置的工具与就绪状态:

```bash
# XUANWU_AUTH_TOKEN 按上文认证步骤从中心令牌文件载入;不要启用 shell tracing。
curl -fsS -G -H "Authorization: Bearer ${XUANWU_AUTH_TOKEN}" \
  --data-urlencode "project_id=<project-id>" \
  "${XUANWU_ADDR%/}/api/providers"
```

此 curl 示例要求 `XUANWU_ADDR` 含 `http://` 或 `https://`(节点配置的 `hub` 使用此形式);CLI 的 `--addr` 也接受不带协议的地址。根据节点的可用 provider 选择对应 Agent Profile;节点离线或工具未就绪时,不要改选中心本机的同名项目来绕过等待。

### 注册远程项目

```bash
xuanwu project create \
  --addr "$XUANWU_ADDR" \
  --token-file "$XUANWU_AUTH_TOKEN_FILE" \
  --id <remote-project-id> \
  --node-id <node-id> \
  --cwd /absolute/path/on/node/repo \
  --provider <node-code-agent-id> \
  --default-agent-profile <agent-profile-id> \
  --json
```

`--node-id` 来自 `xuanwu node list`;`--cwd` 必须是节点上的绝对路径,不是中心本机路径,也不要手写 `node://`。CLI 会请求节点校验目录,路径须在节点 `allowedRoots` 内且节点在线;省略 `--id` 时由路径检查建议项目 ID。省略 `--node-id` 则注册中心本机项目。注册后再次用 `project list` 核对执行位置,再向该 Project 建任务。

## Discover Code Agents and Profiles

From williamnie/xuanwu, Apache-2.0.

Signals

Stars
4
Forks
0
Open issues
0
Last commit (this folder)
Sep 5, 2026 (2 months ago)
Last release
Oct 12, 2026 (24 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from williamnie

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get xuanwu running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying xuanwu?

CallGet help
Cite this page

xuanwu skill. Agent Mart. https://agentmart.dev/skills/williamnie-xuanwu (last updated 2026-10-24)