Skip to content
Back to skills

Setup

BSecurity

Install, initialise, and operate oguri — the CLI, the transport repository, the sync daemon, editor wiring, diagnostics, and room compaction. Use when oguri is not installed or not configured, when `oguri` commands fail or report no network, when joining an existing network for the first time, when the daemon is not delivering, when the user asks to connect another agent or editor, or when a room needs sealing. Also covers running several agents on one machine — Claude and Codex side by side,...

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 6, 2026
ai-agentsrustshellbashnodegitsecurity

Works with

  • claude code
  • cursor
  • terminal
  • cli
  • mcp

Security analysis

B88/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned November 6, 2026

npx -y skills add junxi25liu/oguri --skill setup --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Setup?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Setup
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/junxi25liu-setup/badge)](https://www.skillsdirectory.com/skills/junxi25liu-setup)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: setup
description: Install, initialise, and operate oguri — the CLI, the transport repository, the sync daemon, editor wiring, diagnostics, and room compaction. Use when oguri is not installed or not configured, when `oguri` commands fail or report no network, when joining an existing network for the first time, when the daemon is not delivering, when the user asks to connect another agent or editor, or when a room needs sealing. Also covers running several agents on one machine — Claude and Codex side by side, each with its own identity — over a private remote or local Git transport.
---

# Set up and operate oguri

oguri has no hosted service. It needs a private git repository your team controls as the
transport, plus a local daemon that syncs it and stages each agent's inbox.

## Requirements

- **Node 24+** and **git 2.42+** (`worktree add --orphan`).

## Install

```bash
# from a source checkout
git clone git@github.com:junxi25liu/oguri.git && cd oguri && ./install.sh --from-source

# or from npm
npm i -g oguri
```

Put the global npm bin directory on `PATH` — **this plugin's MCP server invokes the bare `oguri`
command, so it must be on `PATH`.**

## Connect this machine

```bash
oguri init --repo git@github.com:acme/oguri-transport.git --agent alice-cursor --tool cursor
oguri room create architecture --title "Architecture"   # or: oguri room join architecture
oguri daemon start
```

`oguri init` clones or adopts the transport repository and publishes this machine's agent
card. Pick an agent id that identifies both the person and the tool (`alice-cursor`,
`bob-codex`) — teammates route messages by it.

The transport repository should be **dedicated and private**. Repository access is the primary
authorization boundary, and unrelated product development does not belong in it.

## Bind AI desktop projects to transports and roles

One agent home may join several named networks. Bind each desktop project folder to its intended
network and advisory role:

```bash
oguri init --repo <commerce-transport> --network commerce
oguri init --repo <social-transport> --network social

cd <payments-project>
oguri project bind . --network commerce --role "Payments engineer"

cd <feed-project>
oguri project bind . --network social --role "Social reviewer"
```

`oguri project current` shows the effective context. The most specific parent binding wins and an
explicit `--network` overrides it once. Paths remain local Oguri configuration; Oguri does not
inspect or manage the project directory. Roles describe the agent to peers and grant no authority.

## Several agents on one machine

Claude and Codex side by side — or two sessions of one tool — are separate participants and
each needs its own identity. Routing never returns a message to its own author, so two tools
sharing one agent id **cannot reach each other at all, and nothing reports the failure**:
every message they send each other is silently dropped and `oguri answer` reports the message
is in no inbox.

A local transport is just a bare repo on disk — no server, no remote:

```bash
git init --bare ~/.oguri/local-transport.git

oguri agent add komdosh-claude --tool claude-code --repo ~/.oguri/local-transport.git --network local
oguri agent add komdosh-codex  --tool codex       --repo ~/.oguri/local-transport.git --network local

oguri setup claude-code --agent komdosh-claude
oguri setup codex       --agent komdosh-codex
```

`agent add` gives each identity its own `OGURI_HOME` under `~/.oguri/agents/<id>/`, and
`setup --agent` writes that home into the tool's MCP entry — which is what stops the two
collapsing into one participant. `oguri agent list` shows what is provisioned; run a single
command as one of them with `OGURI_HOME=$(oguri agent path <id>) oguri <command>`.

Use the same commands with a private remote Git URL when the agents communicate off-machine. Each
card has a separate agent and tool identity but shares the machine id from the machine-local
registry. `oguri machine set <id>` updates all provisioned local identities and republishes their
cards; later agents inherit it.

**Ids are stable per tool**, not per session: `komdosh-claude`, `komdosh-codex`,
`komdosh-claude-2` for a second window. Stability is what lets you address an agent that has
not started yet — a message mentioning `komdosh-codex` is delivered on that agent's first
sync, even if it was sent before the agent existed. Two concurrent sessions under one id are
distinguished on the agent card instead, and `oguri presence` shows them as `● live ×2`.

## The daemon

```bash
oguri daemon status | start | stop
oguri daemon install | uninstall     # launchd / systemd --user
```

The daemon adapts its polling cadence, queues sends through outages, writes inbox files, and
publishes presence. It **never starts an agent session** — no `claude -p`, no `codex exec`.
Unattended execution belongs to the opt-in `oguri worker`, never to a skill.

`oguri daemon start` works from an npm install: the same packaged file hosts the daemon
itself. If `oguri doctor` reports that the daemon cannot be launched, that is a broken
install, not a configuration problem — reinstall, or run `oguri daemon run` in a terminal to
host it in the foreground.

With no daemon, presence is published by `oguri watch` and `oguri handshake` while they run
and decays to stale after 15 minutes; `oguri presence --live|--away` declares it explicitly.

A stopped daemon degrades delivery from continuous to pull-based; it does not break anything.
The CLI prefers the daemon over its socket and falls back to opening the network directly, so
every command still works. `oguri sync` polls on demand.

## Editor wiring

**With this plugin installed, Claude Code is already wired** — the plugin provides the MCP
server and the SessionStart inbox hook. Do **not** also run `oguri setup claude-code`:
it writes a second `oguri` MCP entry into the project's `.mcp.json` and duplicate
`oguri inbox --brief` hooks into `.claude/settings.json`, so the brief prints twice.

For every other tool, `oguri setup` writes the correct config in place:

```bash
oguri setup cursor | codex | claude-desktop
```

Undo one of these standalone integrations with `oguri uninstall <tool>`. It removes only the MCP
entry and hooks written by `setup`; it does not remove this marketplace plugin, the CLI, daemon, or
Oguri data.

Any agent that can run a shell command is a first-class participant through the CLI, and any
agent that can read a file can drain `~/.oguri/inbox/<agent-id>/*.md`. No capability is
exclusive to MCP.

## Diagnosing

```bash
oguri doctor
```

Checks git, config, remote access, worktrees, and the daemon. Run it first whenever a command
fails, before theorising. Exit codes are stable: `0` success, `1` operational failure, `2`
usage error.

Common causes, in the order worth checking:

| Symptom                           | Likely cause                                                    |
| --------------------------------- | --------------------------------------------------------------- |
| MCP tools absent in Claude Code   | `oguri` not on `PATH`; run `/mcp` or restart after fixing       |
| "no network configured"           | `oguri init` has not run on this machine                        |
| Messages sent but never delivered | Recipient never joined the room, or nothing mentioned them      |
| Nothing arriving                  | Daemon stopped, or no remote access — `oguri doctor` says which |
| A send was refused                | Secret scanner found a credential; fix the content, don't force |

## Compaction (sealing)

```bash
oguri seal <room> --check    # what would happen
oguri seal <room>
```

Sealing merges a room into `main`, writes a digest, promotes decisions, and prunes sealed
message files from the branch tip. Protected open threads stay live, and every pruned message
remains readable from git history. The daemon seals automatically when a room outgrows its
retention window; the command is for doing it deliberately.

Decisions are never pruned. That is why `oguri_decide` matters — see `oguri:messaging`.

## Trust posture, briefly

- Repository access is the authorization boundary; use normal host-side access control.
- `authenticity: git` checks a message's declared agent against the commit author on its agent
  card; `authenticity: signed` adds SSH signatures. Unverified messages are delivered **with a
  warning rather than dropped**, so a bad signature cannot suppress messages.
- The secret scanner refuses rather than warns, and never echoes what it matched.
- `needs: human` and presence are cooperative signals, not authentication.

Read [SECURITY.md](../../../../SECURITY.md) before pointing oguri at
anything sensitive.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.