Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
Agentify any repository in one command. AgentSmith maps a local codebase or GitHub URL and generates a Copilot-native engineering team with a root orchestrator, specialist agents, source-backed skills, handoffs, instructions, and optional AgentHub coordination.
Jump to setup instructionsFetched from the repository for this visit.
"The best thing about being me… there are so many of me."
Agent Smith agentifies any repository you can use—local folder or public GitHub URL—into a team of Copilot agents built from the actual codebase.
It maps the architecture, frameworks, domains, entrypoints, tooling, tests, and extension points. Then it generates:
npx agentsmith-cli assimilate https://github.com/owner/repository
npx agentsmith-cli assimilate ./my-project
No preset team. No manual repository map. No clone required for public GitHub repositories.
Point. Assimilate. Start building with a team that already knows where to look.
Agent Smith starts with the whole codebase, not a fixed template. The generated team follows the repository it finds: backend services, frontend applications, data systems, infrastructure, libraries, developer tools, CLIs, or a mixture of them.
| Capability | What Agent Smith extracts or generates |
|---|---|
| Any-repository input | Accepts a local path or public GitHub URL and builds the same agent system without requiring a clone. |
| Repository mapping | Detects languages, frameworks, source directories, tests, configuration, tooling, and domain boundaries. |
| Repository-specific team | Generates a root orchestrator and specialists based on the actual codebase instead of a preset list. |
| Framework detection | Recognizes Commander, Yargs, oclif, Cobra, Click, Typer, and argparse patterns. |
| Entrypoint discovery | Finds the files that bootstrap and register the CLI. |
| Command extraction | Maps registered commands back to their source files. |
| Option extraction | Captures long flags, short flags, required values, and available descriptions. |
| Extension points | Identifies the command and CLI directories where new behavior belongs. |
| CLI-focused skills | Generates cli-structure, cli-options, and cli-testing knowledge with source references. |
| Refinement | Reports missing command knowledge, missing CLI skills, undocumented option surfaces, and absent command-test coverage. |
| Freshness | Regenerates without cache and fingerprints generated skills so stale knowledge is visible. |
| Predictable regeneration | Reconciles Agent Smith-owned agents, skills, hooks, and handoffs while preserving user-authored files. |
| Controlled automation | Generates lifecycle hooks, but runs only the current generation's hooks after an explicit --run-hooks. |
| Pinned remote analysis | Reads a GitHub repository's license and source from one immutable commit. |
The result is a Copilot team that can answer practical questions such as:
.github/
├── agents/
│ ├── <repo>-root.agent.md # Root orchestrator
│ ├── backend.agent.md # Domain specialist
│ ├── infrastructure.agent.md # Domain specialist
│ └── ...
├── skills/
│ ├── cli-structure/SKILL.md # Commands, entrypoints, source references
│ ├── cli-options/SKILL.md # Flags, validation, help conventions
│ ├── cli-testing/SKILL.md # Command-test and failure-path guidance
│ └── <domain-skill>/SKILL.md
├── copilot/
│ ├── handoffs.json # Agent delegation map
│ └── freshness.json # Generated-knowledge fingerprints
├── copilot-instructions.md # Repository-wide operating context
├── instructions/
│ └── agentsmith-<folder>-<hash>.instructions.md # Folder-specific context (applyTo)
└── hooks/
└── *.yaml # Generated lifecycle checks
skills-registry.jsonl # Searchable agent and skill index
The generated root agent can delegate through runSubagent. Domain agents stay
focused on their own files and patterns. CLI skills anchor command work to the
actual entrypoints and registrations found in the codebase.
# Install from GitHub
npm install github:shyamsridhar123/agentsmith-cli
# Agentify the repository in the current directory
npx agentsmith assimilate .
# Agentify a public GitHub repository directly from its URL
npx agentsmith assimilate https://github.com/owner/repository
# Preview exactly what Agent Smith would generate
npx agentsmith assimilate . --dry-run --verbose
# Explicitly run hooks generated during this assimilation
npx agentsmith assimilate . --run-hooks
Git-based installation builds the compiled CLI automatically. The installed
agentsmith command runs the packaged JavaScript entrypoint directly.
Then tighten and maintain the generated knowledge:
# Find gaps in command, option, and CLI-test knowledge
npx agentsmith refine . --write-report
# Regenerate without cached analysis
npx agentsmith refresh .
# Search the generated knowledge layer
npx agentsmith search "command validation"
# Validate generated agents, skills, hooks, and registry entries
npx agentsmith validate .
agentsmith assimilate <path-or-github-url>
Agent Smith scans the repository, detects its languages, frameworks, source layout, tooling, and domain boundaries, then generates the complete Copilot agent system. If it finds a CLI, it also extracts command-facing structure, options, entrypoints, and command-test conventions.
Useful options:
-n, --dry-run Preview without writing files
-v, --verbose Show detailed analysis
-o, --output <path> Write generated assets elsewhere
--no-cache Disable analysis caching
--no-instructions Skip the Copilot instruction files
--single-agent Generate one combined agent
--run-hooks Run post-generation hooks created by this run
--hub <url> Enable optional AgentHub coordination
--record Record the generated run to AgentHub
Hook execution is opt-in. Without --run-hooks, Agent Smith writes the hook
definitions for review but does not execute them.
agentsmith refine . --write-report
refine audits the generated knowledge against the current CLI. It identifies
missing CLI skills, command extraction gaps, commands without detected options,
and missing command-focused tests.
agentsmith refine . --json
agentsmith refine . --apply
agentsmith refresh .
refresh bypasses the analysis cache, regenerates the agent system, and updates
freshness fingerprints. It also removes stale Agent Smith-owned agents, skills,
hooks, and handoffs that are no longer part of the generated plan while leaving
user-owned files alone. From a stale path-specific instructions file it removes
only the managed block, so notes added outside the block and frontmatter edits,
such as a changed applyTo, stay.
agentsmith search "routing"
agentsmith search "flag" --type skill
agentsmith validate --verbose
The registry gives generated knowledge a queryable surface instead of leaving it buried across Markdown files. Validation checks that registry entries and agent references resolve to the generated asset type they claim to represent.
Any repository can be agentified. When a repository exposes a command-line interface, Agent Smith also recognizes command registration and option patterns across:
It also follows conventional commands/, cmd/, cli/, main, and entrypoint
layouts when extracting command files and extension points.
Agent Smith keeps repository input separate from the operations used to generate the Copilot system:
These boundaries make local folders and public GitHub repositories usable through the same workflow without treating repository text as trusted instructions.
By default, Agent Smith builds a constellation:
repo-root
├── backend
├── frontend
├── infrastructure
├── data
└── other detected domains
The exact team comes from the repository. A service can get backend, infrastructure, and data specialists. A web application can get frontend and backend specialists. A CLI-heavy project also gets command-aware skills and delegation.
For a smaller repository:
agentsmith assimilate . --single-agent
Single-agent mode keeps the same extracted skills and CLI knowledge but combines them into one Copilot agent.
AgentHub is optional. The default Agent Smith workflow remains local.
When enabled, Agent Smith can:
agentsmith hub register http://localhost:8080 smith
agentsmith assimilate . --hub http://localhost:8080 --record
agentsmith hub log
agentsmith hub diff <older-hash> <newer-hash>
Credentials are bound to the configured server, stored in AgentHub's compatible config format, and protected from silent replacement.
Install reusable knowledge into a repository and keep it tied to its source:
agentsmith install ./my-skill-pack
agentsmith install https://github.com/org/skill-pack
agentsmith update
agentsmith update <pack-name>
Agent Smith validates pack contents and records installed sources for later updates.
agentsmith assimilate <target> Generate the agent system
agentsmith assimilate <target> --run-hooks Generate and run current hooks
agentsmith refine [path] Find CLI knowledge gaps
agentsmith refresh [path] Regenerate without cache
agentsmith search <query> Search agents and skills
agentsmith validate [path] Validate generated assets
agentsmith cache clear Clear cached analysis
agentsmith install <source> Install a skill pack
agentsmith update [name] Update installed skill packs
agentsmith hub status Check AgentHub connectivity
agentsmith hub register <url> <agent-id> Register AgentHub credentials
agentsmith hub channels List coordination channels
agentsmith hub log Show recorded runs
agentsmith hub diff <a> <b> Compare recorded generations
Run any command with --help for its options.
gh auth loginPATHThe Copilot SDK uses the authenticated GitHub CLI session. AgentHub is required only when its optional coordination features are enabled.
Analysis uses Copilot's default model. To pick a specific model that your
Copilot account offers, set AGENTSMITH_MODEL (for example,
AGENTSMITH_MODEL=gpt-5.6-sol).
Agent Smith analyzes repositories only when it detects a supported open-source
license. License data can come from license files, package.json, or
pyproject.toml.
[!WARNING] Only analyze and reuse repositories you have the right to use. Agent Smith extracts structure and patterns; it does not grant permission to redistribute proprietary code.
git clone https://github.com/shyamsridhar123/agentsmith-cli.git
cd agentsmith-cli
npm install
npm run lint
npm run typecheck
npm test
npm run build
Any repository. One command. An entire agent team that knows how the codebase works.
"We are inevitable."
GitHub checked 15h ago - refresh overdue. Recently viewed repositories target hourly refresh.
Find a documented setup for your client. No sign-in, installation, or tool execution.
If this MCP is also published on mcpchannel.ai, you can subscribe from Browse and use the gateway config there instead.