Develop and Extend
Purpose
Understand AE package boundaries, services, and ports so you can extend or debug the core, CLI, or MCP adapter safely.
Prerequisites
- Dart toolchain and repo checkout (see Local development below).
Summary
AE is split into core, CLI, and MCP adapter packages.
Architecture map
Package structure
agentic_executables_core/: typed business logic, ports, adapters, and service contractsagentic_executables_cli/:aeexecutable interfaceagentic_executables_mcp/: MCP-facing adapter
Capability model
text
┌→ Implement directly (human/agent reads knowledge)
ae know build ──────┤
└→ ae generate --know ──┬→ hub/use/{project}/
└→ ae package (optional)Core service map
| Service | Purpose |
|---|---|
AeHubService | Hub init, status, pull, push |
AeKnowService | Build, list, show, remove, update, diff knowledge packs |
AeGenerationService | Generate ae_use files (template or inference engine) |
AeRegistryService | Fetch/submit to remote registry |
AeInstructionService | Load context-appropriate prompt documents |
AeValidationService | Verify and evaluate AE compliance |
Port/adapter pattern
All external I/O flows through ports (interfaces) with swappable adapters:
HubResolver→FileHubResolverKnowledgeExtractor→PassthroughExtractor,UrlExtractor,RepoExtractorKnowledgeStore→FileKnowledgeStoreRegistryClient→GitHubRawRegistryClientGenerationEngine→TemplateGenerationEngine,InferenceGenerationEngine
Local development
bash
cd agentic_executables_core && dart test
cd ../agentic_executables_cli && dart test
cd ../agentic_executables_mcp && dart testDesign and DX references
Verify
dart test passes in agentic_executables_core, agentic_executables_cli, and agentic_executables_mcp after your change.
If it fails
See failing package tests and Troubleshooting for environment issues.
Contribution rule for docs quality
Any CLI or MCP behavior change must update:
Get StartedorInstalldocs if onboarding impact exists.- Error/recovery docs when new codes or failure modes are introduced.
- Agent contract docs when payload shape changes.