CORE Developer Cheat Sheet
This cheat sheet provides a fast, accurate reference for daily development inside CORE. It reflects the real system as it exists today and follows the MindβBodyβWill architecture.
If you need a mental model for how CORE works in less than 5 minutes, this is it.
π· 1. Architecture at a Glance
src/
βββ api/ # HTTP API surface
βββ body/ # CLI, actions, crate services
βββ features/ # autonomy, introspection, self-healing, maintenance
βββ mind/ # governance, policies, auditor, checks
βββ services/ # DB, LLMs, validation, context, storage
βββ shared/ # utilities, config, common models
βββ will/ # agents, orchestration, reasoning
πΈ Mind β Governance (src/mind/ + .intent/)
Defines rules, policies, audits, domain boundaries.
πΈ Body β Execution (src/body/, src/features/, src/services/)
Runs CLI operations, validation, crate lifecycle, knowledge syncing.
πΈ Will β Agents (src/will/)
Reasoning, planning, coding, reviewing. Always governed.
π· 2. Daily Commands
Audit Everything
poetry run core-admin check audit
Runs the full Constitutional Auditor.
Fix Metadata/IDs
poetry run core-admin fix ids --write
poetry run core-admin fix metadata --write # If applicable
Sync Knowledge Graph
poetry run core-admin manage database sync-knowledge
Format & Lint Automatically
poetry run core-admin fix code-style --write
π· 3. Autonomous Development (A1)
Ask CORE to build a feature
poetry run core-admin develop feature "Add health endpoint"
CORE will:
- Create a crate
- Build context
- Generate code/tests
- Validate output
- Run constitutional audits
- Accept/reject the crate
You manually integrate accepted crates.
π· 4. Crate Lifecycle (What Actually Exists Today)
Create a crate through autonomous development
Handled automatically by:
crate_creation_service.pyautonomous_developer.py
Process a crate
poetry run core-admin run process-crate <crate_id>
(If your CLI includes this command β otherwise crates are processed inline.)
Inspect crates (manual inspection)
Look inside:
.core/crates/
for metadata, generated files, validation outputs.
There is no daemon and no crate management CLI beyond what exists in your core-admin tree.
π· 5. Validation Pipeline
CORE automatically uses:
- Black (formatting)
- Ruff (linting)
- Syntax checker
- Pytest runner
- YAML validator (for manifests and policies)
You can run validators manually:
poetry run core-admin check validate
(If present β depends on your CLI setup)
π· 6. Governance & Policies
Policies are stored in:
.intent/policies/*.yaml
Load policies (Mind does this automatically)
policy_loader.pypolicy_resolver.py
Run specific governance checks
poetry run core-admin check audit
Checks include:
- file headers
- imports
- domain boundaries
- ID & capability hygiene
- drift
- coverage
- runtime environment
π· 7. Changing the Constitution
Never edit .intent/ directly.
Always follow the proposal workflow.
Create a proposal
poetry run core-admin manage proposals new "Explain your change"
Generate a signing key
poetry run core-admin keys keygen "your.email@example.com"
Apply canary audit
CORE validates the proposed change against a temporary clone.
Human approval required
No constitutional change can be self-applied by agents.
π· 8. Knowledge Graph & Introspection
Knowledge is stored under:
.intent/knowledge/
Updated using:
poetry run core-admin manage database sync-knowledge
Tools involved:
symbol_index_builder.pyknowledge_vectorizer.pygraph_analysis_service.pysemantic_clusterer.py
Used for:
- capability discovery
- drift detection
- planning (future A2+)
π· 9. Self-Healing Tools
Located in:
src/features/self_healing/
Key tools:
coverage_analyzertest_generatordocstring_serviceheader_serviceclarity_servicecomplexity_filterid_tagging_servicepurge_legacy_tags_service
Run automated improvement steps via:
poetry run core-admin fix all --dry-run
(lists what would be fixed)
Use smaller tools individually for precision.
π· 10. Core Mental Models
Mind = Rules
.intent/ + governance engine.
Body = Execution
All mechanical work: CLI, validators, services, crates.
Will = Autonomous Agents
LLM reasoning, planning, coding β always governed.
Crates = Safe Sandboxes
All autonomous changes happen inside crates until validated and audited.
Knowledge = Self-Understanding
Symbols, capabilities, vectors, drift metrics.
π· 11. Troubleshooting
Audit failing?
Run with verbosity:
poetry run core-admin check audit --verbose
Imports failing?
Check:
- import rules in
.intent/policies - domain boundaries
IDs missing?
Run:
poetry run core-admin fix ids --write
Knowledge outdated?
Run:
poetry run core-admin manage database sync-knowledge
Crate rejected?
Inspect:
.core/crates/<id>/
validation_output/
audit_output/
π· 12. When in Doubt
If you want a quick diagnostic:
poetry run core-admin inspect status
(If available in your CLI β otherwise use check audit.)
Or view CLI command tree:
poetry run core-admin inspect command-tree
π Final Reminder
CORE is a governed system. Every action must respect:
- the Mind (rules),
- the Body (execution),
- the Will (agents),
- the Constitution (
.intent/), - and the Knowledge Graph.
This cheat sheet keeps you aligned with that governance.
If something in the documentation differs from how CORE behaves β treat it as a bug and fix it.
Welcome to the CORE development workflow.