Engineering/AI documentation
Custom Loops
Custom loops provide a surface for user-defined recurring or automated research actions.
Concepts: mcp
Implementation Summary
Custom loops provide a surface for user-defined recurring or automated research actions.
Frontend Surface
frontend/src/components/loops/CustomLoopsTab.tsxbackend/app/api/routes/loops.py
State, API, And Backend Contracts
Stores
frontend/src/stores/loopsStore.ts
API And Backend
backend/app/api/routes/loops.py- Custom loops are created for the active project only; list/health data must not include custom schedules from other projects.
- Simulation scenario 49 creates custom loops with the active simulation
project_idand skips the endpoint when no scoped project id is available.
Architecture Notes
- The feature is mounted through
frontend/src/components/loops/CustomLoopsTab.tsxand the UI navigation path recorded in the inventory. - The frontmatter and manifest entries are the durable contract for agents updating this page after code changes.
- When the referenced component, store, route, agent, skill, or test behavior changes, regenerate and validate the feature documentation.
Agents, Skills, LLM, MCP, And Permissions
- MCP-related behavior must keep access policy, audit evidence, and tool/resource exposure synchronized with the cited route or integration component.
Tests And Verification
tests/test_loops.pytests/test_project_scope_contracts.pytests/test_simulation_project_scope_contracts.pytests/simulation/scenarios/49-loops-schedule.mjs
Related Features
Related Concepts
Compass Evidence
- Spec/task: CF-SPEC-53 / CF-657; CF-SPEC-107 / CF-1351
- Inventory source:
docs/features/inventory.json
When To Update
- Update this page whenever the listed UI components, stores, routes, model behavior, permissions, or tests change.
- Regenerate the site and machine manifests with
python scripts/feature_docs.py --seed-missing --generate-site --check.