Skip to content

About

Developer toolkit, CLI, and agent skill for authoring, scaffolding, and validating Ether tool adapters.

Topics

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

Repository files navigation

Ether DevKit (ether-devkit)

CI Python 3.11+ License: MIT

An independent developer toolkit, CLI utility, and agent skill for authoring, scaffolding, validating, and testing production-grade tool adapters and kernel extensions for Ether.


Overview

Ether is a headless, reactive process supervisor, AST validator, and deterministic graph telemetry engine for cybersecurity tooling and autonomous AI agents. Ether strictly adheres to the Smart Adapter / Simple Core and Deep Modules architecture:

  • Strict Headless Invariant: Zero UI code, zero Textual imports, zero presentation widgets. Ether is an engine and kernel, not an interactive GUI application.
  • Smart Adapter / Simple Core: The core kernel manages process lifecycles, streaming ring buffers, disk log spooling, and deterministic SQLite graph persistence without hardcoding tool-specific execution flags or stdout parsing.
  • Two Execution Tiers:
    • Tier A: Coroutine (execution_tier = "coroutine"): Zero-binary, in-process asynchronous tools (e.g., dnspython, http_probe).
    • Tier B: Subprocess (execution_tier = "subprocess", Default): Standard security binaries in the host PATH (e.g., nmap, ffuf, nuclei).

Every tool plugin in Ether resides in its own self-contained directory:

tools/<tool_name>/
├── __init__.py
├── manifest.toml         # Declarative contracts, parameters, curriculum recipes, RFC theory
├── adapter.py            # ToolAdapter (validate_install, build_command, parse_output, sanitize_output)
└── cli.py                # (Optional) Pure-Python CLI entry point for bundled utilities

This project (ether-devkit) provides:

  1. A Standalone CLI Tool (ether-devkit): Scaffolds new adapters (supporting both subprocess and coroutine tiers), performs static AST & schema validation, validates entire directories of adapters in batch mode, and inspects schemas/wordlists.
  2. An Agent Skill (SKILL.md): Designed for AI coding assistants (Antigravity, Claude Code, Cursor, Codex, Gemini) to author deep, RFC-grade tool adapters strictly obeying Ether invariants.

Installation

DevKit CLI Tool

Install directly with pipx (recommended) or pip:

# With pipx (recommended for standalone CLI usage):
pipx install git+https://github.com/h45sh/ether-devkit.git

# Or with pip:
pip install git+https://github.com/h45sh/ether-devkit.git

# Or clone and install locally in editable mode:
git clone https://github.com/h45sh/ether-devkit.git
cd ether-devkit
pip install -e ".[dev]"

Requires Python 3.11+ (uses standard library tomllib and ast with zero external runtime dependencies).


CLI Usage

1. Scaffold a New Adapter

Quickly bootstrap an adapter directory, declarative manifest, parser implementation, sample fixture, and hermetic pytest suite:

# Standard Subprocess tool adapter:
ether-devkit new masscan \
  --target-dir /path/to/ether \
  --category "Network Reconnaissance" \
  --categories network portscan recon \
  --accepts network.netblock network.host \
  --produces network.service \
  --target-flag "-p"

# Pure-Python Coroutine tool adapter (zero binary):
ether-devkit new custom_probe \
  --target-dir /path/to/ether \
  --tier coroutine \
  --category "Web Reconnaissance" \
  --categories web recon \
  --accepts web.endpoint \
  --produces web.technology

Files generated:

  • tools/<tool_name>/__init__.py
  • tools/<tool_name>/manifest.toml
  • tools/<tool_name>/adapter.py
  • tests/fixtures/mock_tools/<tool_name>.txt
  • tests/unit/test_parsers/test_<tool_name>_parser.py

2. Validate Tool Manifests & Adapters

Single Adapter Directory or Manifest:

# Validate a specific tool directory
ether-devkit validate /path/to/ether/tools/nmap

# Validate a single manifest.toml file
ether-devkit validate /path/to/ether/tools/nmap/manifest.toml

Batch Validation:

Validate an entire collection of tool plugins in one shot (automatically skipping hidden or __pycache__ directories):

ether-devkit validate /path/to/ether/tools

Sample output:

[*] Running batch validation across 12 candidate tool adapter(s) in: /path/to/ether/tools
================================================================================
Tool Adapter             | Status   | Errors   | Warnings
--------------------------------------------------------------------------------
dnspython                | PASS     | 0        | 0       
ffuf                     | PASS     | 0        | 0       
gobuster                 | PASS     | 0        | 0       
http_probe               | PASS     | 0        | 0       
netexec                  | PASS     | 0        | 0       
nikto                    | PASS     | 0        | 0       
nmap                     | PASS     | 0        | 0       
nuclei                   | PASS     | 0        | 0       
searchsploit             | PASS     | 0        | 0       
sqlmap                   | PASS     | 0        | 0       
subfinder                | PASS     | 0        | 0       
whois                    | PASS     | 0        | 0       
--------------------------------------------------------------------------------
Total: 12 | Passed: 12 | Failed: 0
================================================================================

[✓] All adapters in batch strictly passed validation!

3. List Registered Finding Schemas

Display all 18 valid Ether finding schemas, primary identity keys (PIKs), and parent graph associations:

ether-devkit list-schemas

4. List Supported Wordlist Macros

Display available centralized wordlist tokens:

ether-devkit list-wordlists

Core Contracts & Invariants

  • Command Construction Safety: build_command() must construct and return a List[str]. Never concatenate raw shell strings or pass shell=True. Never invoke os.system or subprocess.getoutput.
  • Two Execution Tiers: Native support for Tier A coroutines (execution_tier = "coroutine") and Tier B subprocesses (execution_tier = "subprocess").
  • Non-Zero Exit Code Resilience: Security scanners frequently terminate with exit status 1 or 2 when findings are detected. Adapters must parse stdout and emit findings regardless of the exit code.
  • Output Sanitization Hook (sanitize_output): Strips ASCII art logos (figlet banners), carriage return progress meters (\r), and noisy headers before feeding scan logs to AI agents, conserving LLM prompt tokens.
  • Primary Identity Keys (PIK): Node IDs are deterministic SHA-256 hashes of (schema_type + sorted_pik). Parent and child entities auto-wire deterministically in the entity graph.
  • Hermetic Tests: Every adapter must include unit tests running against raw fixtures in tests/fixtures/mock_tools/ without needing the security binary installed.

Using as an Agent Skill

Install the skill into your AI coding assistant (Antigravity, Claude Code, Cursor, Windsurf, Codex, Gemini) using one of the single-command options below:

Option 1: Via Skills CLI (npx skills) — Recommended

Install globally for all detected coding agents:

npx skills add h45sh/ether-devkit -g -y

Or install locally in your current project repository:

npx skills add h45sh/ether-devkit -y

Option 2: Single-Command Download (curl)

Download SKILL.md directly into the agent skills directory without Node/npm:

# Global agent configuration (~/.agents/skills/ether-devkit/SKILL.md):
curl -sSL --create-dirs https://raw.githubusercontent.com/h45sh/ether-devkit/main/SKILL.md -o ~/.agents/skills/ether-devkit/SKILL.md

# Or local project directory (.agents/skills/ether-devkit/SKILL.md):
curl -sSL --create-dirs https://raw.githubusercontent.com/h45sh/ether-devkit/main/SKILL.md -o .agents/skills/ether-devkit/SKILL.md

Manual Installation

Alternatively, copy or link SKILL.md manually to your agent skills directory (~/.agents/skills/ether-devkit/SKILL.md or .agents/skills/ether-devkit/SKILL.md).


Running Tests

Run the hermetic test suite:

pytest tests/

License

MIT © Harshwardhan Patil

About

Developer toolkit, CLI, and agent skill for authoring, scaffolding, and validating Ether tool adapters.

Topics

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Contributors

Languages