No description
Find a file
Snider aff8ff4b3b
Some checks failed
Security Scan / security (push) Successful in 10s
Test / test (push) Failing after 35s
refactor(ax): round 7 AX sweep — replace banned imports with core primitives, add security tests
Replace fmt/strings/path/filepath with core.Sprintf, core.Lower, core.Upper, core.Split,
core.SplitN, core.Trim, core.Join, core.Contains, core.NewBuilder, core.Path across
ai/, cmd/metrics/, and cmd/security/. Add Bad/Ugly test coverage for the untested
security package (AlertSummary, filterBySeverity, buildTargetRepo, buildJobIssueBody).
os/exec kept for gh CLI invocations (no core equivalent in dep graph).
encoding/json kept for MarshalIndent (no core.JSONMarshalIndent yet).

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-31 14:40:57 +01:00
.core chore: add .core/ build and release configs 2026-03-06 18:52:36 +00:00
.forgejo/workflows ci: add Forgejo Actions test and security scan workflows 2026-02-23 03:28:02 +00:00
ai refactor(ax): round 7 AX sweep — replace banned imports with core primitives, add security tests 2026-03-31 14:40:57 +01:00
cmd refactor(ax): round 7 AX sweep — replace banned imports with core primitives, add security tests 2026-03-31 14:40:57 +01:00
docs docs: add AX design principles RFC 2026-03-31 06:07:28 +01:00
.editorconfig chore: add Go repo norms (badges, contributing, lint, taskfile, editorconfig) 2026-02-23 06:45:31 +00:00
.gitignore chore: add .core/ and .idea/ to .gitignore 2026-03-15 10:17:49 +00:00
.golangci.yml chore: add Go repo norms (badges, contributing, lint, taskfile, editorconfig) 2026-02-23 06:45:31 +00:00
brain-seed refactor: swap pkg/{io,log,i18n} imports to go-io/go-log/go-i18n 2026-03-06 12:35:42 +00:00
CLAUDE.md chore: migrate to dappco.re vanity import path 2026-03-21 23:52:57 +00:00
CONTRIBUTING.md chore: add Go repo norms (badges, contributing, lint, taskfile, editorconfig) 2026-02-23 06:45:31 +00:00
go.mod chore: update dependencies to dappco.re tagged versions 2026-03-22 01:10:25 +00:00
go.sum chore: update dependencies to dappco.re tagged versions 2026-03-22 01:10:25 +00:00
README.md chore: add Go repo norms (badges, contributing, lint, taskfile, editorconfig) 2026-02-23 06:45:31 +00:00
TEST-RESULTS.md test: validate MLX inference and scoring pipeline on M3 Ultra 2026-02-16 17:24:36 +00:00

Go Reference License: EUPL-1.2 Go Version

go-ai

MCP (Model Context Protocol) hub for the Lethean AI stack. Exposes 49 tools across file operations, directory management, language detection, RAG vector search, ML inference and scoring, process management, WebSocket streaming, browser automation via Chrome DevTools Protocol, JSONL metrics, and an IDE bridge to the Laravel core-agentic backend. The package is a pure library — the Core CLI (core mcp serve) imports it and handles transport selection (stdio, TCP, or Unix socket).

Module: forge.lthn.ai/core/go-ai Licence: EUPL-1.2 Language: Go 1.25

Quick Start

import "forge.lthn.ai/core/go-ai/mcp"

svc, err := mcp.New(
    mcp.WithWorkspaceRoot("/path/to/project"),
    mcp.WithProcessService(ps),
)
// Run as stdio server (default for AI client subprocess integration)
err = svc.Run(ctx)
// Or TCP: MCP_ADDR=127.0.0.1:9100 triggers ServeTCP automatically

Documentation

Build & Test

go test ./...
go test -race ./...
go build ./...

Licence

European Union Public Licence 1.2 — see LICENCE for details.