eai-gofer
eai-gofer is the repo-local agent workflow pack installed and refreshed by the EAI CLI. It gives coding agents consistent instructions, templates, references, and validation checklists for EAI delivery work.
What It Installs
eai gofer refresh manages public-safe files such as:
.specify/commands/*.specify/templates/*.specify/references/platform/*.github/prompts/*.github/copilot-instructions.md.eai-manifest.json
The manifest records managed files so refreshes can detect local edits instead of blindly overwriting them.
Refresh Workflow
eai gofer refresh --check
eai gofer refresh
Use --check before committing to see what would change. Use --force only
when you intentionally want managed files overwritten after review.
Business Scenario Pipeline
For app or platform work, start with the business scenario workflow. The current pipeline stages are:
| Stage | Purpose |
|---|---|
0_business_scenario | Triage the business goal and orchestrate the pipeline. |
1_gofer_research | Discover stakeholders, existing code, platform capabilities, and constraints. |
2_gofer_specify | Convert discovery into a feature specification and shared scope. |
3_gofer_plan | Plan architecture, tests, rollback, service usage, and delivery sequencing. |
4_gofer_tasks | Break the plan into implementation tasks. |
5_gofer_implement | Implement with tests and focused changes. |
6_gofer_validate | Validate correctness, security, integration, tests, and release readiness. |
7_gofer_save | Save evidence and handoff state. |
EAI App Delivery Rules
When gofer helps generate or modify an EAI app, it should:
- Use
https://github.com/eai-tools/eai-app-templateas the canonical public scaffold. - Inspect
src/eai.config,src/eai.blocks.tsx,src/hooks, and the platform service docs before inventing calls. - Use Object Types for tenant business data.
- Use
useResourcesfor ResourceAPI-backed data. - Use
useDocumentsfor upload, classification, and RAG indexing. - Use
useChatfor AI workflow calls. - Keep browser calls behind
/api/eai/...or/api/eai/stream/.... - Keep callbacks and React nodes out of config and in runtime overrides.
- Record unsupported capabilities as blocked instead of inventing code paths.
Service-Fit Evidence
For app work, gofer plans should capture:
- selected Object Types and storage backend
- component registry and config slots
- store bindings and
showWhenrules - ResourceAPI, document, chat, search, and PublicAPI choices
- commands used to verify tenant state
- risks, rollback, and validation evidence