- Truncate content to 3800 chars before embedding (embeddinggemma has
a 2048-token context, ~4K char limit). Eliminates all 73 Ollama 500
errors from oversized plan sections.
- Clear brain_memories DB table when --fresh is used, keeping DB rows
in sync with Qdrant vectors.
Co-Authored-By: Virgil <virgil@lethean.io>
Discovers markdown across 4 source types:
- memory: ~/.claude/projects memory files
- plans: docs/plans across repos + ~/.claude/plans
- claude-md: CLAUDE.md repo instructions
- tasks: core/tasks research and ideas
Supports --fresh to clear collection, --dry-run for preview,
and --source to target specific types.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The `*/` in `projects/*/memory/` was closing the docblock comment
early, causing PHP to see `for` as a keyword on the same line.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Scans ~/.claude/projects/*/memory/ for MEMORY.md and topic markdown
files, parses sections, infers memory types, and imports into
OpenBrain via BrainService::remember().
Supports --dry-run, --workspace, --agent, and --path options.
Co-Authored-By: Virgil <virgil@lethean.io>
- Add `agentic.plan_retention_days` config (default 90 days via AGENTIC_PLAN_RETENTION_DAYS env)
- Add SoftDeletes and `archived_at` timestamp to AgentPlan model
- Add migration for `deleted_at` and `archived_at` columns on agent_plans
- Create `agentic:plan-cleanup` command with --dry-run and --days options
- Schedule retention cleanup to run daily via service provider
- Register PlanRetentionCommand in ConsoleBooting handler
- Add PlanRetentionTest feature test suite covering all retention scenarios
- Fix archive() to store archived_at as dedicated column (not metadata string)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Add phpunit.xml for standalone test execution.
Apply Laravel Pint formatting fixes across all source files.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Updates all classes to use the new modular namespace convention.
Adds Service/ layer with Core\Service\Agentic for service definition.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>