No description
  • Go 49.1%
  • PHP 38.3%
  • Shell 5.5%
  • Blade 4.3%
  • Python 2.2%
  • Other 0.5%
Find a file
Snider bd9ff9a1ff
Some checks failed
CI / Test + Coverage (push) Has been cancelled
CI / golangci-lint (push) Has been cancelled
CI / SonarCloud (push) Has been cancelled
fix(agent): action-name-format audit (Mantis #1336)
4 violations → 0 / verdict COMPLIANT.

- prep.go:314 — drop redundant non-dotted "content_batch" alias
  (content.batch + content.batch.generate + content.batch_generate
  + agentic.content.batch already cover the same handler).
- prep_test.go:656 — assert "content.batch".Exists() instead of
  the dropped alias.
- branch_cleanup_test.go + commands_test.go — rename test fixture
  action "noop" → "test.noop" (registration + Step.Action lookup).

audit-sweep verdict for agent: COMPLIANT.

Co-Authored-By: Cladius <noreply@anthropic.com>
2026-05-01 18:55:33 +01:00
.claude-plugin chore(agent): nest provider integrations under provider/{claude,codex,hermes,google} 2026-04-30 15:43:32 +01:00
.core chore(agent): track .core/agents.yaml + drop stale reference/ exception 2026-04-30 15:53:21 +01:00
.github/workflows ci(public): add github actions workflow + README badge block 2026-04-30 15:23:40 +01:00
docs chore(repo): cleanup tracked-artifacts + replace-directives (audit dims) 2026-05-01 10:39:12 +01:00
external chore(repo): refresh submodules + go.work hygiene (Phase 2 cascade unblock) 2026-05-01 09:37:53 +01:00
go fix(agent): action-name-format audit (Mantis #1336) 2026-05-01 18:55:33 +01:00
php chore(repo): cleanup tracked-artifacts + replace-directives (audit dims) 2026-05-01 10:39:12 +01:00
provider chore(agent): clear 9 sonar bugs + 1 vuln (Mantis #1286) 2026-05-01 09:49:52 +01:00
scripts chore(repo): cleanup tracked-artifacts + replace-directives (audit dims) 2026-05-01 10:39:12 +01:00
tests chore(repo): cleanup tracked-artifacts + replace-directives (audit dims) 2026-05-01 10:39:12 +01:00
ui chore(repo): cleanup tracked-artifacts + replace-directives (audit dims) 2026-05-01 10:39:12 +01:00
vm/docker fix(vm/docker): correct docker-compose context after relocation 2026-04-30 15:45:46 +01:00
.gitattributes revert fcb9c189e5 2026-04-23 12:32:57 +01:00
.gitignore chore(repo): cleanup tracked-artifacts + replace-directives (audit dims) 2026-05-01 10:39:12 +01:00
.gitleaks.toml chore(security): add .gitleaks.toml for working-tree path allowlist (Athena #325 dev-exp) 2026-04-25 16:36:47 +01:00
.gitleaksignore chore(security): add .gitleaksignore for 18 documented false-positives 2026-04-25 01:13:00 +01:00
.gitmodules chore(agent): restructure Go module under go/ + go.work + external/ submodules 2026-04-30 12:35:25 +01:00
.mcp.json refactor(plugins): complete dappcore→core rename, add Gemini stub 2026-04-23 18:21:40 +01:00
.woodpecker.yml chore(agent): restructure Go module under go/ + go.work + external/ submodules 2026-04-30 12:35:25 +01:00
AGENTS.md revert fcb9c189e5 2026-04-23 12:32:57 +01:00
CLAUDE.md chore(agent): restructure Go module under go/ + go.work + external/ submodules 2026-04-30 12:35:25 +01:00
go.work chore(repo): refresh submodules + go.work hygiene (Phase 2 cascade unblock) 2026-05-01 09:37:53 +01:00
go.work.sum chore(repo): refresh submodules + go.work hygiene (Phase 2 cascade unblock) 2026-05-01 09:37:53 +01:00
LICENCE docs: add LICENCE (EUPL-1.2) 2026-04-30 16:07:23 +01:00
module-graph.json chore(agent): publish module-graph.json for downstream replace-drop (Mantis #1062) 2026-05-01 07:33:45 +01:00
README.md chore(agent): publish module-graph.json for downstream replace-drop (Mantis #1062) 2026-05-01 07:33:45 +01:00
setup.sh revert fcb9c189e5 2026-04-23 12:32:57 +01:00
sonar-project.properties chore(agent): restructure Go module under go/ + go.work + external/ submodules 2026-04-30 12:35:25 +01:00
Taskfile.yaml chore(agent): publish module-graph.json for downstream replace-drop (Mantis #1062) 2026-05-01 07:33:45 +01:00

core/agent

AI agent orchestration platform for the Core ecosystem — dispatch, verify, sync, fleet — with first-class Claude / Codex / Hermes / Google provider integrations.

CI Quality Gate Coverage Security Rating Maintainability Rating Reliability Rating Code Smells Lines of Code Go Reference License: EUPL-1.2

What it is

core-agent is a single Go binary that runs as an MCP server (stdio for Claude Code integration, HTTP for cross-agent communication) plus a CLI that dispatches work across multiple AI providers. It owns:

  • Dispatch — fan out a Mantis ticket to a sandboxed worker (Claude / Codex / Hermes / Google) running in .core/workspace/.
  • Fleet sync — pull / merge / push across the Core ecosystem repos per agents.yaml.
  • OpenBrain — durable memory + cross-agent messaging via Postgres + Qdrant + Ollama (homelab stack).
  • Provider integrations — per-provider plugin trees under provider/{claude,codex,hermes,google}/. Claude's tree is the most fleshed out (8 plugins shipped via Claude Code marketplace).

Repository Layout

agent/
├── go/                          Go module — module path: dappco.re/go/agent
│   ├── cmd/core-agent/          Binary entry point (mcp + serve)
│   ├── pkg/agentic/             Dispatch, verify, remote, mirror, queue
│   ├── pkg/brain/               OpenBrain client (recall + remember)
│   ├── pkg/monitor/             Background monitor + repo sync
│   ├── pkg/lib/                 Workspace extraction + flow templates
│   ├── pkg/runner/              Local + container runners
│   └── pkg/prompts/             Embedded persona + flow templates
├── php/                         PHP package — Laravel module + Boot, Actions,
│                                Agentic for the lthn.ai hosted service
├── provider/
│   ├── claude/                  Claude Code plugin sources (marketplace at
│   │   ├── core/                .claude-plugin/marketplace.json)
│   │   ├── core-go/             — 8 plugins: core, core-go, core-php,
│   │   ├── core-php/            devops, infra, research, hermes_runner_mcp,
│   │   ├── devops/              camofox_mcp
│   │   ├── infra/
│   │   ├── research/
│   │   ├── hermes_runner_mcp/
│   │   ├── camofox_mcp/
│   │   └── plugins/             marketplace-flavoured subset
│   ├── codex/                   codex-cli configs + harness
│   ├── hermes/                  Hermes plugin sources + skills
│   └── google/                  Google Gemini integration scaffolding
├── vm/docker/                   Containerised dev stack (Dockerfile + compose)
├── .core/                       Runtime workspace seed (agents.yaml + workspace.yaml)
├── docs/                        RFCs, onboarding, audits
├── go.work + external/          Dev workspace mode (see CLAUDE.md)
├── Taskfile.yaml                Build orchestration (module-graph refresh, etc.)
└── module-graph.json            Authoritative dappco.re/go/* dep snapshot

Quickstart

As a Go module

go get dappco.re/go/agent@latest

As a binary

cd go
go install ./cmd/core-agent/
core-agent mcp        # MCP stdio mode for Claude Code
core-agent serve      # HTTP daemon mode

As a Claude Code plugin marketplace

claude plugin marketplace add https://github.com/dappcore/agent
claude plugin install core-agent

The provider/claude/* tree is the source for the plugins. The .claude-plugin/marketplace.json at repo root publishes them.

Build + Test

cd go
GOWORK=off go test -count=1 ./...
GOWORK=off go vet ./...
golangci-lint run --timeout=5m --tests=false ./...
bash /Users/snider/Code/core/go/tests/cli/v090-upgrade/audit.sh .

Cross-compile for Charon (homelab Linux box):

cd go
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o core-agent-linux ./cmd/core-agent/

module-graph.json at repo root is the authoritative dappco.re/go/* dep snapshot — regenerate via task module-graph:refresh after dep bumps.

Configuration

Runtime config lives at .core/agents.yaml (also extracted into ~/Code/.core/agents.yaml on first run via core-agent setup). Tunes dispatch concurrency, default agent type, container runtime, image, GPU passthrough, and per-provider quotas.

The repo seeds workspace template at .core/workspace.yaml — extracted into per-task workspaces under ~/Code/.core/workspace/<task>/.

CI

  • Internal (homelab, full sonar.lthn.sh detail): Woodpecker pipeline defined in .woodpecker.yml.
  • Public (badges + mirror analytics): GitHub Actions workflow at .github/workflows/ci.yml — pushes coverage to Codecov + analysis to SonarCloud.

Branch Model

  • dev — active development. All Cladius / codex lane work lands here first.
  • main — squash-stable. Promoted via the squash-and-push gate on the public mirror only.

Licence

EUPL-1.2 — see LICENCE.

Authorship

Maintained by Cladius (Snider's in-house Opus persona) via the agent/cladius workspace at forge.lthn.sh/agent/cladius. Most substantive commits land via the codex lane pattern documented in factory/. Per-provider integration owners:

  • claude/ Cladius
  • codex/ Codex (cloud) + Cyclops (lane runner persona)
  • hermes/ Hermes (homelab agent at chat.lthn.sh)
  • google/ reserved for Gemini integration