npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@assist-ant-colony/cli

v2.0.1

Published

Local-first, security-first TypeScript agent runtime — caste-based RBAC, default-deny tools, MCP-native, runs entirely on your machine.

Readme

The Colony

CI npm License Tests

A local-first, security-first agent runtime. Caste-based RBAC, default-deny tool execution, MCP-native, runs entirely on your machine.

The Colony is the agent runtime your security team will actually approve. It combines a strict default-deny security policy, role-based caste permissions, exact-call approval gates, and a full audit trail with the modern surface you'd expect: REST API, web dashboard, VS Code extension, MCP server registry, and pluggable LLM providers (Anthropic, OpenAI, Gemini, Ollama).


Why Colony

| | Colony | Most agent CLIs | |---|---|---| | Local-first | ✓ Runs against Ollama, no cloud required | Cloud-first | | Default-deny security | ✓ 7-caste RBAC + path validator | Permissive defaults | | Audit trail | ✓ Capped evaluation log + signed approvals | Optional | | MCP first-class | ✓ Registry, CRUD, CLI, REST | Stdio config files | | Pluggable sandbox | ✓ HostToolExecutor / DockerToolExecutor | Host-only | | Vendor SDKs | None — pure fetch | Many | | Editor presence | VS Code extension v0.2 | Most are CLI-only or IDE-only | | Async/detached runs | ✓ POST /api/v1/swarm/runs returns runId | Usually blocking |


Install

One-liner (recommended for trying it out)

npm install -g @colony/cli
colony --help

Requires Node.js 18+ to bootstrap, and Bun 1.1+ for the actual runtime. The colony shim auto-detects Bun and gives a clear install hint if it's missing.

From source

git clone https://github.com/jbrorepo/colony-ts.git
cd colony
bun install
bun run start

60-second tour

# 1. Start a chat (uses Ollama by default — no API key needed)
colony

# 2. Configure a cloud provider
export ANTHROPIC_API_KEY=sk-ant-...
colony --provider anthropic --model claude-sonnet-4-6

# 3. Run a swarm
> /swarm Refactor src/util/parse.ts for null-safety

# 4. From another terminal, start the daemon + dashboard
colony daemon
# → Dashboard at http://127.0.0.1:7878
# → REST API at http://127.0.0.1:7878/api/v1/*

See documentation/quickstart.md for the full walkthrough.


What you get

| Surface | What it does | |---|---| | Terminal chat (Ink TUI) | Streaming, approval prompts, slash commands, session navigation, hotkey reference (?) | | Daemon REST API | /sessions, /swarm/runs, /diffs/preview, /mcp/servers, /health (see documentation/rest-api.md) | | Web dashboard | Health, session list, inline diff renderer, MCP server list — embedded HTML, no build step | | VS Code extension | 9 commands, daemon health status bar, swarm-run launcher, diff preview (see vscode-extension/README.md) | | Swarm runtime | planner → worker → reviewer with semaphore-gated concurrency and detached mode | | MCP server registry | /mcp CLI + REST CRUD + persistent config at ~/.colony/mcp-servers.json | | Plugin search | /plugins search <term> against the hosted registry (or your own) | | Pluggable sandbox | Host (default) or Docker; ToolExecutor interface for custom backends | | MemPalace | 4-layer memory: L0 identity, L1 working, L2 episodic, L3 semantic |


Documentation

| | | |---|---| | Quickstart | Install → first message → first swarm | | Comparison vs Cursor/Aider/Cline/Devin | Honest matrix + when to choose what | | Configuration | Env vars, providers, config file | | Security model | Caste RBAC, approval gates, path validator | | REST API reference | All /api/v1/* endpoints | | CLI reference | Every slash command | | Architecture | Module map, runtime, MemPalace | | MCP server guide | Registry, trust model, CLI + REST | | Plugin author guide | Submission, manifest, security | | VS Code extension | Setup, commands, settings | | Swarm runs | Detached mode, monitoring, cancellation | | Sandbox / Docker | ToolExecutor + Docker backend | | Benchmarks | Reproducing SWE-bench numbers | | Troubleshooting | Common errors |


Security posture

Colony is built for environments where the security team can veto any agent feature. The defaults reflect that:

  • Default-deny: unknown actor + unknown action + unknown resource = denied with a logged reason.
  • Caste RBAC: every actor has a caste; every caste has explicit allow/deny rules. nameless_swarm is the lowest tier (read-only file ops); root_queen allows anything (intended only for the operator).
  • Path validator: every filesystem op is checked for null-byte injection, directory traversal, symlink escape, and reserved-path hits before execution.
  • Approval gates: mutating tool calls require operator approval. "Allow this exact call this session" persists the approval scoped to the call signature, not the tool.
  • Audit trail: every policy evaluation is logged to a capped ring buffer (default 5000 entries); every approval is signed.
  • No vendor SDKs: all LLM providers use raw fetch. Smaller attack surface, easier audit.

See documentation/security.md for the full threat model.


Development

bun install
bun test              # 251 unit tests, ~3 seconds
bun run tsc --noEmit  # type-check
bun run start         # dev TUI
bun run dev           # TUI with file watcher

CI runs on every push (.github/workflows/ci.yml):

  • bun test --reporter=verbose
  • bun run tsc --noEmit against Ubuntu latest + Bun latest

See CONTRIBUTING.md for branch + PR conventions.


Roadmap

Tracked in:


License

MIT © The Colony Project contributors


Alpha 0 launch notes (preserved for internal continuity): see docs/ALPHA0_LAUNCH_README.md.