Turbocharge Claude Code, Cursor, Codex, Gemini & every coding agent: faster, cheaper, with contextual understanding specific to your codebase.
TypeScript ai-agentsanthropicclaude-codeclicode-graphcodexcontext-engineeringcursordeveloper-toolsgeminiknowledge-graphllmmcpmcp-serveropen-sourceopenaitree-sitter
feat(hosts): dedicated AdaL skill host
Haoran Zhangbd4758910a81
diff --git a/README.md b/README.mdindex 30e0cf8d..137e46a3 100644--- a/README.md+++ b/README.md@@ -165,11 +165,11 @@ npx @nanonets/graft init# Claude Code additionally gets the live statusline + hooks below```-`init` auto-detects which agents are present (via their config directories) and writes a marker-fenced Graft section into each one's shared instruction file — `AGENTS.md`, `GEMINI.md`, `.github/copilot-instructions.md` — or a wholly-owned rule file for the agents that use one — `.cursor/rules/graft.mdc`, `.kiro/steering/graft.md`, `.windsurf/rules/graft.md`. Re-running only updates Graft's own section (or replaces the owned file) and never touches the rest of your content.+`init` auto-detects which agents are present (via their config directories) and writes a marker-fenced Graft section into each one's shared instruction file — `AGENTS.md` (Codex, OpenCode and other CLIs that read it), `GEMINI.md`, `.github/copilot-instructions.md` — or a wholly-owned rule/skill file for the agents that use one — `.cursor/rules/graft.mdc`, `.kiro/steering/graft.md`, `.windsurf/rules/graft.md`, `.adal/skills/graft/SKILL.md` for [AdaL](https://adal.sylph.ai) (progressive-disclosure skill, same shape as the Claude Code skill below). Re-running only updates Graft's own section (or replaces the owned file) and never touches the rest of your content.| Flag | Effect ||---|---|-| `--agents <ids...>` | wire only these — ids: `agents`, `cursor`, `gemini`, `copilot`, `kiro`, `windsurf`, `claude` |+| `--agents <ids...>` | wire only these — ids: `agents`, `cursor`, `gemini`, `copilot`, `kiro`, `windsurf`, `adal`, `claude` || `--all-agents` | write instruction files for every known agent, detected or not || `--no-agents` | Claude Code wiring only; skip other agents || `--list-agents` | print the known agent ids and exit |@@ -246,7 +246,7 @@ graft viz --port 5000 --no-open # pick a port; don't auto-open the browsergraft init [dir] # wire Graft into the coding agents detected in this repo (Claude Code always gets full hooks + statusline + MCP)graft init --no-build # wire the files only; don't build the graph-graft init --agents cursor kiro # wire only these agents (ids: agents, cursor, gemini, copilot, kiro, windsurf, claude)+graft init --agents cursor kiro # wire only these agents (ids: agents, cursor, gemini, copilot, kiro, windsurf, adal, claude)graft init --all-agents # wire every known agent, detected or notgraft init --list-agents # list known agent ids and exitdiff --git a/src/hosts/registry.ts b/src/hosts/registry.tsindex 9406c62c..4c9be414 100644--- a/src/hosts/registry.ts+++ b/src/hosts/registry.ts@@ -8,6 +8,7 @@*/import { join } from 'node:path';import { instructionBody, cursorRule, kiroSteering, windsurfRule } from './instructions.js';+import { skillTemplate } from '../claude/skill-template.js';export interface DetectProbe {home: string;@@ -37,6 +38,14 @@ export const HOSTS: HostTarget[] = [p.dirExists(join(p.home, '.config', 'opencode')) ||p.dirExists(join(p.home, '.config', 'agents')),},+ {+ id: 'adal',+ name: 'AdaL',+ kind: 'owned',+ relPath: join('.adal', 'skills', 'graft', 'SKILL.md'),+ content: skillTemplate,+ detect: (p) => p.dirExists(join(p.home, '.adal')) || p.dirExists(join(p.repo, '.adal')),+ },{id: 'cursor',name: 'Cursor',diff --git a/test/hosts-init.test.ts b/test/hosts-init.test.tsindex 63233dc8..435cd086 100644--- a/test/hosts-init.test.ts+++ b/test/hosts-init.test.ts@@ -29,7 +29,7 @@ test('explicit agents list overrides detection and flags unknown ids', () => {test('all writes every host and re-run converges (idempotent)', () => {const home = fresh(); const repo = fresh();const first = runHostsInit(repo, { home, all: true });- assert.equal(first.written.length, 6);+ assert.equal(first.written.length, 7);const second = runHostsInit(repo, { home, all: true });assert.ok(second.written.every((w) => w.action === 'unchanged'));const agents = readFileSync(join(repo, 'AGENTS.md'), 'utf8');diff --git a/test/hosts-registry.test.ts b/test/hosts-registry.test.tsindex 15c07680..34aeb8e0 100644--- a/test/hosts-registry.test.ts+++ b/test/hosts-registry.test.ts@@ -14,8 +14,8 @@ function probeFor(home: string, repo: string): DetectProbe {}function fresh(): string { return mkdtempSync(join(tmpdir(), 'graft-registry-')); }-test('registry exposes the six phase-1 hosts', () => {- assert.deepEqual(hostIds().sort(), ['agents', 'copilot', 'cursor', 'gemini', 'kiro', 'windsurf']);+test('registry exposes the known hosts', () => {+ assert.deepEqual(hostIds().sort(), ['adal', 'agents', 'copilot', 'cursor', 'gemini', 'kiro', 'windsurf']);for (const h of HOSTS) {assert.ok(h.relPath.length > 0);assert.ok(h.content().length > 0);@@ -42,3 +42,17 @@ test('repo-local markers also light up hosts', () => {const ids = detectHosts(probeFor(home, repo)).map((h) => h.id).sort();assert.deepEqual(ids, ['copilot', 'kiro']);});++test('~/.adal lights up the adal host', () => {+ const home = fresh(); const repo = fresh();+ mkdirSync(join(home, '.adal'));+ const ids = detectHosts(probeFor(home, repo)).map((h) => h.id).sort();+ assert.deepEqual(ids, ['adal']);+});++test('repo-local .adal also lights up the adal host', () => {+ const home = fresh(); const repo = fresh();+ mkdirSync(join(repo, '.adal'));+ const ids = detectHosts(probeFor(home, repo)).map((h) => h.id).sort();+ assert.deepEqual(ids, ['adal']);+});