@sallmarta/eye-hate-agent
v1.0.15
Published
A simple Spec-Driven Development (SDD) for AI-agent-assisted project workflows.
Maintainers
Readme
Eye Hate Agent (EHA)
A simple Spec-Driven Development (SDD). Unified set of rules, specialist skills, and dynamic project documentation workflows, standardizing how AI coding agents receive instructions to make collaborative development completely predictable and highly efficient.
Get Started
1. Initialize EHA in your project
Run directly in your project/repo root:
$ npx @sallmarta/eye-hate-agentOr install globally and run it:
$ npm i -g @sallmarta/eye-hate-agent
$ cd your-project
$ eha2. Trigger your agent
Once projected, EHA files are immediately active in your IDE. Trigger the workflows using your agent's native slash commands, file mentions, or prompt attachments (read more on EHA Commands).
3. Commit the contract
The projected files such as .claude/ act as your project's AI contract.
EHA Commands
Once initialized, EHA projects a series of interactive workflows directly into your agent's configuration directory (e.g., .agents/ or .github/). You can trigger these workflows inside your IDE chat using slash commands, file mentions, or prompt attachments:
| Slash Trigger | Primary Purpose |
| :--- | :--- |
| /eha-bootstrap | Initializes the SDD document set for repos with no existing documentation. Scans codebase complexity, asks for a Taxonomy Tier (Lite/Standard/Enterprise), generates the tailored doc set. Stops and redirects to Refresh if existing docs or legacy docs are detected. |
| /eha-refresh | The main workhorse for repos with any existing documentation. Updates active SDD docs, migrates legacy docs, converts non-SDD docs, and creates missing SDD files — all by cross-referencing the actual codebase alongside existing material. Auto-detects the appropriate Taxonomy Tier for migration scenarios. Prompts the user to resolve any drift between codebase and docs. |
| /sdd-discuss | Collaborative brainstorming. Interviews you about edge cases, API shapes, data models, and constraints, then drafts spec snippets ready for injection into project docs. No code output. |
| /sdd-execute | Spec-Driven code generation via strict TDD. Reads specs → generates tests → generates code → validates against architecture. Refuses to code features not in the spec. |
| /eha-help | EHA Help & Tutorial. Interactive guide providing descriptions of EHA's 4-layer taxonomy, active workflows, and specialist skills. |
Looking for parity audits? Use the
parity-auditskill directly:@agent use parity-audit on this repositoryThis provides a full drift analysis without needing a dedicated command.
Greenfield vs. Brownfield Workflows
EHA adapts its behavior automatically based on your repository's state:
Greenfield Projects
Start with Discussion: run
/sdd-discussto brainstorm the tech stack and project specifications, then run
/eha-bootstraponce the discussion is mature.
Bootstrap Redirect: If you run /eha-bootstrap in a brand-new empty repository, the agent will automatically redirect you to /sdd-discuss first.
Brownfield Projects
No Project Docs Yet: Run
/eha-bootstrapto scan your codebase complexity and generate an appropriate Taxonomy Tier (Lite, Standard, or Enterprise).
Already Has Project Docs: Run
/eha-refreshto sync docs with code, migrate legacy folders, and resolve codebase-vs-doc drift with user guidance.
EHA CLI Command
The EHA CLI provides a lightweight, frictionless setup and maintenance toolbelt:
| Command | Primary Purpose |
| :--- | :--- |
| eha | Unified wizard: banner → agent selection → scope selection (project/device) → install. |
| eha doctor | Performs a health check verifying that all generated files are present and intact. |
| eha remove [agent] | Safely deletes EHA's generated project-level contract files for the specified agent (or all agents if omitted), along with configuration files. |
| eha uninstall | Safely deletes EHA's generated device-level contract files from your machine. |
Updating
When a new version of EHA is released, simply run:
$ ehain your repository or from anywhere on your machine. The engine will detect the version mismatch automatically, prompt you to update the files, and update them to the latest standards seamlessly.
Uninstallation
To completely remove EHA:
1. Remove project-level (Local) files
To clean up locally run the following command in your project root. Possible to specify a target agent (e.g. claude):
$ eha remove [agent]2. Remove device-level (Global) files
To clean up globally from your machine, run:
$ eha uninstall3. Remove the CLI Completely
$ npm uninstall -g @sallmarta/eye-hate-agentEHA Philosophy
Eye Hate Agent is built upon a core set of operational beliefs designed to optimize the synergy between human developers and AI coding agents:
- Readability First (Dual-Audience Design): Every registry, template, and workspace document generated by EHA strictly adheres to standard markdown structures, numbered stable headings, and clean tables. This ensures maximum readability for humans while granting AI agents 100% syntactic parsing clarity (completely eliminating context loss).
- Flexible, Non-Deterministic Context: EHA documents define clear constraints, design parameters, and business logic (specific) but avoid locking implementation down into rigid boilerplate (generic and non-deterministic). This allows both developers and agents to exercise active engineering judgment and choose the best implementation pathways.
- Zero Agent Hallucination: By anchoring AI agents to EHA's Single Master Registry catalog (
index.md) and a strict 4-layer folder structure, EHA eliminates path hallucination, stale references, and prompt redundancy. Agents always know exactly where to read and write. - Brainstorming & Discussion are Sacred: Specifications are never written in isolation. EHA integrates a dedicated discuss loop (
02-sdd-discuss.md), establishing collaborative brainstorming as the mandatory first step to align human intent with agent understanding before any code is generated. - Native Agile & Scrum Alignment: EHA is built for real-world software delivery. With structured sprint and epic trackers (
foundation/phases/,foundation/status.md), EHA fits seamlessly into standard corporate Agile/Scrum lifecycles, enabling agents to act as high-velocity scrum contributors.
