Commit graph

422 commits

Author SHA1 Message Date
Snider
7a531d1112 perf(mcp): reduce tool count from 189 to 82
Gate non-essential MCP tools behind CORE_MCP_FULL=1 env var.
Core factory tools (dispatch, status, plan, issue, PR, scan, mirror,
watch, brain, files) always registered. Extended tools (session, sprint,
state, phase, task, template, message, content, platform, epic, remote,
review-queue, setup, metrics, RAG, webview) only when full mode enabled.

189 → 82 tools in default mode. Fixes slow MCP startup and tool
registration timeout in Claude Code.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-08 19:17:21 +01:00
Snider
e8862e26be feat(dispatch): LEM profiles + native Claude agents
- Add isLEMProfile(): codex:lemmy/lemer/lemma/lemrd use --profile not --model
- Add isNativeAgent(): Claude agents run natively (not in Docker)
- Update localAgentCommandScript for LEM profile support
- 12 new tests (Good/Bad/Ugly for profiles, native agent, codex variants)

Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-08 17:17:33 +01:00
Snider
9c6f10902e fix(agent): mcp.Register startup panic + test isolation + CLI test standard
- Replace broken registerMCPService with mcp.Register (fixes nil ServiceRuntime panic)
- Remove dead mcp_service.go, update tests to use mcp.Register directly
- Add setTestWorkspace() helper to clear workspaceRootOverride between tests
- Fix 40+ test files with workspace state poisoning from loadAgentConfig
- Fix forge.lthn.ai → dappco.re in findConsumersList test
- Fix BranchWorkspaceCount test to use isolated temp dir
- Add CLI test standard: 32 tests across 19 subsystems (tests/cli/)
- All 9 packages pass, 0 failures

Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-08 16:15:14 +01:00
Snider
5f0878d93d fix(mcp): update Subsystem interface to match mcp v0.5.1 Service API
All RegisterTools and internal register*Tool methods updated from
*mcp.Server to *coremcp.Service. Tool registration calls updated to
use svc.Server() for SDK AddTool calls. Monitor subsystem updated
to store *coremcp.Service and access Server() for Sessions/ResourceUpdated.
Tests updated to create coremcp.Service via New() instead of raw SDK server.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-07 14:11:19 +01:00
Snider
a4b72c6129 fix: migrate module paths from forge.lthn.ai to dappco.re
Replace all forge.lthn.ai import paths in Go source files with dappco.re
equivalents. Update go.mod deps to dappco.re versions as specified.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-07 13:09:47 +01:00
Virgil
2a95ba6ff5 fix(agentic): normalise remote host inputs
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 09:12:49 +00:00
Virgil
6bc24d5213 docs(ax): replace alias descriptions with usage examples
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 09:07:12 +00:00
Virgil
ea53bdbf8c fix(agentic): normalise issue context keys
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 09:01:55 +00:00
Virgil
4c6296c1c1 refactor(agentic): replace core path helpers
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 08:58:17 +00:00
Virgil
165db215a2 docs(ax): improve remote client usage example
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 08:53:28 +00:00
Virgil
103fcb473b ax(brain): normalise remember response keys
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 08:49:22 +00:00
Virgil
8b159abd17 refactor(agentic): wire service runtime directly
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 08:44:48 +00:00
Virgil
ce6f016d63 ax(brain): rename direct options for clarity
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 08:40:24 +00:00
Virgil
c27f019a02 feat(agentic): add provider retry backoff
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 08:36:01 +00:00
Virgil
5f59911e52 ax(agentic): align provider manager comments with ax
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 08:29:59 +00:00
Virgil
5dc0983b77 feat(agentic): align model contracts with RFC
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 08:26:02 +00:00
Virgil
4e82ec8da6 feat(agentic): add auth IP restrictions
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 08:18:43 +00:00
Virgil
44321aab25 fix(agentic): use typed EOF handling
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 08:08:20 +00:00
Virgil
791fc1a3a1 docs(agentic): improve handler usage example
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 08:04:51 +00:00
Virgil
9f9e42768d fix(agentic): add task aliases and session model normalization
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 07:59:58 +00:00
Virgil
92703d5af5 fix(agentic): route root plan command
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 07:47:59 +00:00
Virgil
428cd25ebc feat(agentic): add RFC model aliases
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 07:43:15 +00:00
Virgil
dfa466707d refactor(agentic): name platform tool inputs
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 07:37:44 +00:00
Virgil
a18723d564 refactor(agentic): clarify local agent command quoting
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 07:32:23 +00:00
Virgil
7389b2f801 fix(agentic): add missing plan MCP aliases
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 07:27:48 +00:00
Virgil
ceaa1601de refactor(agentic): improve prompt builder naming
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 07:23:08 +00:00
Virgil
b693695e41 feat(agentic): add content provider registry
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 07:18:38 +00:00
Virgil
75fc9d4bf4 fix(agentic): add namespaced MCP aliases for core tools
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 07:11:13 +00:00
Virgil
f5fdbb8cac fix(agentic): close transport response bodies
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 07:01:51 +00:00
Virgil
e5472f6aa5 ax(agentic): add platform command aliases
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 06:58:12 +00:00
Virgil
1dd6170dd4 refactor(agentic): validate forge command inputs
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 06:54:05 +00:00
Virgil
9f1315d1a8 refactor(agentic): add namespaced command aliases
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 06:47:34 +00:00
Virgil
7a034ccbe8 feat(agentic): expose setup action surface
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 06:39:02 +00:00
Virgil
613e1fc58e refactor(agentic): add namespaced action aliases
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 06:29:46 +00:00
Virgil
2d3ec1e8c3 refactor(agentic): centralise remote MCP client
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 06:23:07 +00:00
Virgil
8c2884cc6f fix(agentic): keep process actions registered
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 06:14:48 +00:00
Virgil
9a8aa2bfac refactor(agentic): improve AX naming and context propagation
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 06:10:33 +00:00
Virgil
652548a60a feat(agentic): add phase cli commands
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 06:05:31 +00:00
Virgil
a136c04aa1 feat(agentic): extract structured agent output
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 05:44:39 +00:00
Virgil
52a431867a feat(agentic): expose content schema generation on CLI
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 05:39:01 +00:00
Virgil
1b986f9f2d fix(agentic): preserve fleet SSE event names
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 05:33:16 +00:00
Virgil
9a9cf8e40b fix(agentic): forward fleet capabilities to fallback polling
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 05:27:33 +00:00
Virgil
ace8cf4462 feat(agentic): add prompt command alias
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 05:22:43 +00:00
Virgil
7253e1240e feat(session): validate agent type against spec
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 05:17:37 +00:00
Virgil
2b40d0a3b0 feat(brain): surface deleted_at in memory outputs
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 05:11:48 +00:00
Virgil
f6e1e64a0c feat(agentic): add namespaced template action aliases
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 05:07:54 +00:00
Virgil
c32b4de28e feat(agentic): expose generate action alias
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 05:03:08 +00:00
Virgil
3b16ddbfbd feat(agentic): add plan templates command
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 04:51:19 +00:00
Virgil
efd86a87b1 feat(agentic): add forge command aliases
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 04:46:50 +00:00
Virgil
a3043e786a feat(agentic): preserve nullable fleet task id
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-02 04:42:58 +00:00