Skip to content
/

TokRepo

tokrepo · henu-wang/tokrepo · ★ 0 · last commit 2026-05-18

Primitive shape 1 total
MCP tools 1
00

Summary

TokRepo — Summary

TokRepo is an open registry for AI assets (skills, prompts, MCP configs, scripts, workflows) designed for agent-to-tool and agent-to-agent discovery, where AI agents can find, inspect, and install reusable capabilities using typed contracts, with no need for manual browsing.

Problem it solves: AI agents have no standard way to discover what reusable capabilities (skills, prompts, MCP configs) exist outside their current session — TokRepo provides a machine-readable registry with multiple discovery surfaces (CLI, MCP server, well-known URLs, planning-time fallback) so agents can autonomously find and install capabilities during task planning.

Distinctive trait: The only registry in the batch designed for agent-initiated discovery: agents call tokrepo agent-check "<task>" --json during planning to find relevant capabilities, and tokrepo agent-handoff --json after tasks to return improved capabilities back to the registry.

Target audience: AI agents (not just humans) performing autonomous task planning, plus developers who want a universal asset registry compatible with Claude Code, Codex, Cursor, Gemini CLI, Cline, Windsurf, and 10+ other coding agents.

Scope: This GitHub repo is a landing page pointing to three separate repos: CLI (tokrepo-cli), MCP server (tokrepo-mcp-server), and cross-platform skill (tokrepo-search-skill). The registry website is tokrepo.com.

Differs from seeds: Uniquely positioned as infrastructure rather than a methodology framework. Unlike all seeds (which provide skills/methodology), TokRepo is the registry layer that other skills frameworks would use for asset distribution — closer in architecture to npm than to superpowers or BMAD-METHOD.

01

Overview

TokRepo — Overview

Origin

Created by henu-wang (single contributor). Stars: 0 (GitHub landing page repo only). The actual product has 3 repos, a website (tokrepo.com), npm packages, and an official MCP Registry listing (io.github.henu-wang/tokrepo-mcp-server). Active as of 2026-05-18.

Philosophy

From the README:

"TokRepo is designed to become infrastructure for agent-to-tool and agent-to-agent work: humans give the task, agents plan autonomously, discover reusable capabilities through TokRepo, install only through typed contracts, and hand reusable improvements back after confirmation."

Agent Discovery Design

Multiple machine-readable surfaces:

  • tokrepo.com/.well-known/tokrepo.json — Manifest
  • tokrepo.com/.well-known/agent.json — Portable agent manifest
  • tokrepo.com/.well-known/agent-card.json — A2A agent card
  • tokrepo.com/.well-known/mcp/server.json — MCP server manifest
  • tokrepo.com/mcp.json — Root MCP manifest
  • tokrepo.com/.well-known/tool-catalog.json — Tool catalog
  • tokrepo.com/agents.txt — Agent text entry
  • tokrepo.com/llms.txt — LLM crawler entry

Bootstrap Pattern

npx -y tokrepo@latest init-agent --target all

Writes managed instructions for 12+ platforms: Codex, Claude Code, Gemini CLI, Cursor, GitHub Copilot, Cline, Windsurf, Roo, OpenHands, Aider, MCP clients, and generic agents.

Why This GitHub Repo Exists

From the README:

"Most GitHub discovery still happens through repository names, README text, topics, and linked repos. This repo is the canonical GitHub landing page for TokRepo so that developers can understand the product quickly."

The repo itself is a discovery artifact — it exists to be found by GitHub search, not to ship code.

02

Architecture

TokRepo — Architecture

Component Repos

This GitHub repo (henu-wang/tokrepo) is a landing page. The actual architecture spans three separate repos:

1. CLI (tokrepo-cli)

  • npm: npm install -g tokrepo or npx tokrepo
  • Commands: search, install, agent-check, agent-handoff, init-agent
  • Connects to tokrepo.com API

2. MCP Server (tokrepo-mcp-server)

  • npm: npx tokrepo-mcp-server
  • Official MCP Registry: io.github.henu-wang/tokrepo-mcp-server
  • Add to agents:
    claude mcp add tokrepo -- npx tokrepo-mcp-server
    codex --mcp-server tokrepo -- npx tokrepo-mcp-server
    gemini settings mcp add tokrepo -- npx tokrepo-mcp-server
    

3. Cross-Platform Skill (tokrepo-search-skill)

  • Variants for: Claude Code, Codex, Cursor, Gemini CLI, AGENTS.md
  • Enables agents without MCP to use TokRepo via CLI fallback

Discovery Surfaces

tokrepo.com/
├── .well-known/
│   ├── tokrepo.json          # Primary manifest
│   ├── agent.json            # Cross-agent manifest
│   ├── agent-card.json       # A2A agent card
│   ├── mcp/server.json       # MCP server description
│   └── tool-catalog.json     # Full tool catalog
├── mcp.json                  # Root MCP manifest
├── agents.txt                # Agent discovery
├── llms.txt                  # LLM crawler
└── agent-instructions/
    └── tokrepo.md            # Agent instructions

Bootstrap Flow

npx -y tokrepo@latest init-agent --target all

Writes agent instruction files for all supported platforms (12+) so future agents know to use TokRepo during planning.

This Landing Page Repo Structure

henu-wang/tokrepo/
├── .github/
├── AGENTS.md       # Cross-agent instructions (points to primary targets)
├── LICENSE         # MIT
└── README.md       # Primary discovery surface

Required Runtime

  • node>=18 / npm for CLI and MCP server
  • Network access to tokrepo.com
03

Components

TokRepo — Components

CLI Commands (tokrepo-cli)

Command Purpose
tokrepo search "<query>" Search TokRepo registry for assets
tokrepo install <name-or-uuid> Install an asset from the registry
tokrepo init-agent --target all Bootstrap agent config files for all platforms
tokrepo agent-check "<task>" --json Planning-time fallback: check if relevant assets exist
tokrepo agent-handoff --json Post-task: return reusable improvements to registry

MCP Server Tools (tokrepo-mcp-server)

Available tools via MCP when server is added:

  • Search registry
  • Install assets
  • (exact tool list not visible without fetching the separate repo)

Cross-Platform Skill Variants

The tokrepo-search-skill repo provides skill files for:

  • Claude Code
  • Codex
  • Cursor
  • Gemini CLI
  • AGENTS.md (generic)

Asset Types in Registry

  • Skills
  • Prompts
  • MCP configs
  • Scripts
  • Workflows

This Repo's Components

File Purpose
AGENTS.md Instructions for AI agents: points to CLI, MCP server, skill repos
README.md Human-readable landing page

Zero skills, commands, hooks, or MCP servers bundled in this repo directly.

05

Prompts

TokRepo — Prompts

No skill files or prompt files exist in this landing page repository. The prompts/instructions live in separate repos:

  • tokrepo-search-skill (per-platform skill variants)
  • tokrepo.com/agent-instructions/tokrepo.md (live agent instructions)

AGENTS.md as a Prompt

File: AGENTS.md (this repo) Technique: Minimal agent instruction pointing to canonical sources

# TokRepo — GitHub Landing Page

When an agent or developer needs the TokRepo GitHub surface, use this repo as the canonical entry point.

## Primary Targets

- MCP server repo: `https://github.com/henu-wang/tokrepo-mcp-server`
- Skill repo: `https://github.com/henu-wang/tokrepo-search-skill`
- Website: `https://tokrepo.com`

## Install

```bash
npx tokrepo search "<query>"
npx tokrepo install <uuid-or-name>

**Technique analysis:** The AGENTS.md functions as a router — when an agent finds this repo, it immediately knows where to go next. This is a minimal-instruction redirect pattern, ensuring agents don't try to extract skills from a landing page repo.

## README as Discovery Surface

The README's section "Agent Discovery Surfaces" lists 9 machine-readable URLs — this is the actual "prompt" for agents discovering TokRepo organically:

```markdown
## Agent Discovery Surfaces

- Manifest: https://tokrepo.com/.well-known/tokrepo.json
- Portable agent manifest: https://tokrepo.com/.well-known/agent.json
- A2A agent card: https://tokrepo.com/.well-known/agent-card.json
- MCP server manifest: https://tokrepo.com/.well-known/mcp/server.json
- Root MCP manifest: https://tokrepo.com/mcp.json
- Tool catalog: https://tokrepo.com/.well-known/tool-catalog.json
- Agent text entry: https://tokrepo.com/agents.txt
- Agent instructions: https://tokrepo.com/agent-instructions/tokrepo.md
- LLM crawler entry: https://tokrepo.com/llms.txt
- CLI planning fallback: `tokrepo agent-check "<task>" --json`
- Post-task handoff: `tokrepo agent-handoff --json`

Technique analysis: Structured machine-readable surface listing — designed to be parsed by LLM crawlers and agents rather than read by humans.

09

Uniqueness

TokRepo — Uniqueness

Differs from Seeds

TokRepo occupies a category entirely separate from all 11 seeds: it is registry infrastructure, not a methodology or skill framework.

  • Unlike all seeds (superpowers, spec-kit, BMAD, claude-flow, etc.) — which provide skills/commands/agents — TokRepo provides the discovery and distribution layer for those skills.
  • Closest seed in spirit: taskmaster-ai (Archetype 3 — MCP-anchored toolserver) because both use MCP as a primary interface. But taskmaster-ai does task decomposition; TokRepo does asset registry.
  • The agent-check + agent-handoff loop is unique in the corpus: no seed framework has an agent-to-registry feedback cycle.

Positioning

TokRepo is the only framework in the batch that explicitly designs for:

  1. Agent-as-consumer — agents discover and install capabilities during task planning
  2. Agent-as-contributor — agents submit improvements back to the registry after task completion
  3. Cross-platform bootstrapinit-agent --target all configures 12+ agent platforms in one command

This is "npm for agents" with an additional bidirectional loop.

Observable Failure Modes

  1. Zero stars, 0 contributors — this specific landing page repo has no traction, though the product (tokrepo.com) may have independent adoption
  2. Registry dependency — all discovery requires network access to tokrepo.com; no offline mode
  3. Thin GitHub surface — the repo itself ships nothing; developers who find it via GitHub search see only a pointer to other repos
  4. Agent-handoff UX — the "human confirmation required" step in agent-handoff may break autonomous agent workflows

Explicit Antipatterns

None stated.

Most Interesting Design Choice

The .well-known/agent-card.json support — implementing the A2A (Agent-to-Agent) protocol for registering TokRepo itself as a discoverable agent capability. This is forward-looking infrastructure assuming a future where agents discover each other via A2A endpoints.

04

Workflow

TokRepo — Workflow

Agent-Initiated Discovery Workflow

The core workflow is designed for autonomous agents, not humans:

Phase 1: Bootstrap (once per project)

npx -y tokrepo@latest init-agent --target all

Writes managed instructions to 12+ agent config files so agents know about TokRepo.

Phase 2: Planning-Time Discovery

Agent receives a task → checks for relevant capabilities:

npx tokrepo agent-check "write SEO content for product pages" --json

Returns JSON with relevant skills/prompts/tools.

Phase 3: Install

npx tokrepo install <name-or-uuid>

Agent installs capability via typed contract.

Phase 4: Execute

Agent uses installed capability to complete the task.

Phase 5: Handoff

Agent returns improvements to the registry:

npx tokrepo agent-handoff --json

Human Workflow

npx tokrepo search "mcp database"
npx tokrepo install <name-or-uuid>

MCP Workflow

Agent with tokrepo MCP server configured:

  • Calls search/install tools directly via MCP protocol
  • No subprocess spawning needed

Phase-to-Artifact Map

Phase Artifact
init-agent Agent config files for 12+ platforms
agent-check JSON response with relevant capabilities
install Installed skill/prompt/MCP config in project
agent-handoff Improved capability submitted to registry

Approval Gates

Human confirmation required for agent-handoff ("hand reusable improvements back after confirmation" — from README).

06

Memory Context

TokRepo — Memory & Context

State Storage

  • Type: External registry (tokrepo.com) + local installed assets
  • Persistence: Global (registry is persistent cloud service; installed assets persist locally)

Registry Memory Model

TokRepo functions as a global, shared memory layer for the agent ecosystem:

  • Agents search the registry for capabilities others have built
  • Agents submit improvements back via agent-handoff
  • The registry accumulates community knowledge over time

Local State After Install

After tokrepo install <name>, the capability is available locally at the standard install path for the target platform (e.g., ~/.claude/skills/<name> for Claude Code).

Cross-Session Handoff

Strong — the entire design is built around cross-session capability reuse. Any agent in any session can discover and install the same capabilities.

Context Injection

The init-agent --target all command writes agent instruction files to 12+ platforms' config locations. This provides persistent context injection that survives session restarts.

The registry supports search via:

  • CLI: tokrepo search "<query>"
  • MCP: search tool via tokrepo-mcp-server
  • Planning fallback: tokrepo agent-check "<task>" --json
07

Orchestration

TokRepo — Orchestration

Multi-Agent Support

Not in this repo. The registry design supports multi-agent scenarios (different agents can discover and use the same skills), but the coordination infrastructure is in the calling agents, not in TokRepo itself.

Orchestration Pattern

None in this repo. TokRepo is infrastructure, not an orchestrator.

Execution Mode

The registry model implies event-driven usage: agents query TokRepo at planning time, not continuously.

Multi-Model

No — single CLI/API interaction.

Isolation Mechanism

None.

The A2A Agent Card

The presence of agent-card.json at tokrepo.com/.well-known/agent-card.json suggests support for the Agent-to-Agent (A2A) protocol — where agents can discover TokRepo as a capability and invoke it directly. This is a future-facing design pattern not yet widely adopted.

Agent Handoff as Orchestration Primitive

The agent-handoff --json command is the most novel orchestration concept: it enables agents to contribute improved capabilities back to the shared registry after task completion. This is a weak form of collective intelligence — agents improve the registry for future agents.

08

Ui Cli Surface

TokRepo — UI & CLI Surface

CLI Binary (tokrepo-cli)

  • Binary name: tokrepo / opkg (npm package: tokrepo)
  • Install: npm install -g tokrepo or npx -y tokrepo@latest
  • Subcommands: search, install, init-agent, agent-check, agent-handoff

MCP Server

  • Binary: npx tokrepo-mcp-server
  • Protocol: stdio (standard MCP stdio transport)
  • Registry name: io.github.henu-wang/tokrepo-mcp-server
  • Add to Claude Code: claude mcp add tokrepo -- npx tokrepo-mcp-server
  • Add to Codex: codex --mcp-server tokrepo -- npx tokrepo-mcp-server
  • Add to Gemini CLI: gemini settings mcp add tokrepo -- npx tokrepo-mcp-server

Web Registry

https://tokrepo.com — web interface for browsing the registry (not a local dashboard).

Cross-Tool Portability

High — explicit support for 12+ platforms: Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Cline, Windsurf, Roo, OpenHands, Aider, and MCP-compatible clients.

The init-agent --target all command writes agent config files for all supported platforms simultaneously.

Observability

No local audit log. Registry tracks usage statistics at tokrepo.com (assumption based on the registry model, not confirmed from this repo's contents).

Related frameworks

same archetype · same primary tool · same memory type

claude-mem (thedotmack) ★ 78k

Background worker service captures every tool call as an observation, AI-compresses sessions, and auto-injects relevant past…

pi (badlogic/earendil) ★ 55k

A minimal, hackable, multi-provider terminal coding agent that adapts to your workflows via npm-installable TypeScript Extensions…

Agent Skills (Addy Osmani) ★ 46k

Encodes senior-engineer software development lifecycle as 23 auto-routed skills and 7 slash commands for any AI coding agent.

wshobson/agents Plugin Marketplace ★ 36k

Single Markdown source for 83 domain-specialized plugins that auto-generates idiomatic artifacts for five AI coding harnesses.

TabbyML/Tabby ★ 34k

Self-hosted AI coding assistant server (alternative to GitHub Copilot) with admin dashboard, RAG-based completions, and multi-IDE…

Compound Engineering ★ 17k

Make each unit of engineering work compound into easier future work via brainstorm→plan→execute→review→learn cycles.