Appearance
Tutorial: Feature Bundles
Use the built-in feature bundles when you want a copy-ready .env starting point for common Aionis operating modes.
What this tutorial covers
- The four built-in feature bundles.
- Which bundle to use for each situation.
- How to apply a bundle without overwriting the rest of your
.env.
Why bundles exist
Aionis keeps many higher-risk or experimental capabilities disabled by default.
That is good for safety, but it also means new users can spend too much time flipping individual flags by hand.
Feature bundles solve that problem by grouping the most common default-off and opt-in toggles into a managed .env block.
The bundles do not replace your whole .env.
They only replace the managed feature-bundle section and leave the rest of your config and secrets untouched.
Available bundles
| Bundle | Best for | What it does |
|---|---|---|
local_safe | local development and first-time setup | keeps experimental and dangerous features off |
experimental | recall / context optimization evaluation | enables safer evaluation defaults without opening execution surfaces |
team_shared | shared team or staging environments | adds production-style auth and shared-environment placeholders while keeping dangerous features off |
high_risk | short-lived approved operator windows | enables sandbox local execution, replay learning, request-side repair override, and dangerous Ops actions |
Commands
Apply one of the built-in bundles:
bash
npm run -s env:bundle:local-safe
npm run -s env:bundle:experimental
npm run -s env:bundle:team-shared
npm run -s env:bundle:high-riskList the available bundles:
bash
npm run -s env:bundle:listShow which bundle is currently managed in .env:
bash
npm run -s env:bundle:statusShow the active bundle plus all managed keys:
bash
npm run -s env:bundle:status:verbosePreview the difference between the current managed bundle block and a target bundle:
bash
npm run -s env:bundle:diff -- experimentalPrint the current status, the diff, and the managed block preview in one command:
bash
npm run -s env:bundle:plan -- experimentalPreview the managed block that would be written, without changing .env:
bash
npm run -s env:bundle:apply -- --dry-run experimentalApply the bundle after backing up the current .env:
bash
npm run -s env:bundle:apply -- --backup experimentalOr use the generic entrypoint:
bash
npm run -s env:bundle:apply -- experimentalWhat each bundle changes
local_safe
Use this when you want the most conservative local baseline.
It keeps:
SANDBOX_ENABLED=falseREPLAY_LEARNING_PROJECTION_ENABLED=falseREPLAY_REPAIR_REVIEW_AUTO_PROMOTE_DEFAULT=falseMEMORY_SHADOW_DUAL_WRITE_ENABLED=falseOPS_DANGEROUS_ACTIONS_ENABLED=false
experimental
Use this when you want better recall and context experiments without opening high-risk execution paths.
It enables:
MEMORY_RECALL_CLASS_AWARE_ENABLED=trueMEMORY_PLANNING_CONTEXT_OPTIMIZATION_PROFILE_DEFAULT=balancedMEMORY_CONTEXT_ASSEMBLE_OPTIMIZATION_PROFILE_DEFAULT=balancedMEMORY_RECALL_TEXT_CONTEXT_TOKEN_BUDGET_DEFAULT=1200
It still keeps sandbox, auto-promotion, and dangerous Ops actions off.
team_shared
Use this for shared team environments or staging.
It switches to a service-style baseline and includes placeholders for:
MEMORY_AUTH_MODE=api_keyMEMORY_API_KEYS_JSONCORS_ALLOW_ORIGINSCORS_ADMIN_ALLOW_ORIGINSOPS_BASIC_AUTH_*
You must replace the placeholder values before using this in a real environment.
high_risk
Use this only for short-lived, approved evaluation windows.
It enables:
SANDBOX_ENABLED=trueSANDBOX_EXECUTOR_MODE=local_processSANDBOX_LOCAL_PROCESS_ALLOW_IN_PROD=trueREPLAY_GUIDED_REPAIR_ALLOW_REQUEST_BUILTIN_LLM=trueREPLAY_LEARNING_PROJECTION_ENABLED=trueREPLAY_REPAIR_REVIEW_AUTO_PROMOTE_DEFAULT=trueOPS_DANGEROUS_ACTIONS_ENABLED=true
This is intentionally not a normal default.
Recommended usage order
- Start with
local_safe. - Move to
experimentalwhen you want recall or context optimization evidence. - Use
team_sharedfor shared non-local environments. - Use
high_riskonly with explicit operator approval and a rollback plan.
File locations
These bundles live in:
scripts/env/feature-bundles/local_safe.envscripts/env/feature-bundles/experimental.envscripts/env/feature-bundles/team_shared.envscripts/env/feature-bundles/high_risk.env
The apply script is:
scripts/env/apply-feature-bundle.sh