Managed Node Config Inventory (agentconfigsvc/inventory.go)

observer · internal/agentconfigsvc/inventory.go · go · Apache-2.0
ai, pos, infra, security, lang:go

Reads installed AI-tool settings and instruction files (skills, agents, commands, rules) on managed nodes without writing. Reuse when an org needs a full agent-config catalog with values passed through secret scrubbing.

// Source: https://github.com/superbasedapp/observer | License: Apache-2.0 | Copyright 2026 Gaja AI
// Provided via justclaw.it.com; keep this notice with the code.
package agentconfigsvc

import (
	"context"
	"encoding/json"
	"path/filepath"
	"regexp"
	"sort"
	"strings"
	"time"
	"unicode/utf8"

	"github.com/marmutapp/superbased-observer/internal/agentconfig"
	"github.com/marmutapp/superbased-observer/internal/integration"
	"github.com/marmutapp/superbased-observer/internal/orgcontract"
	"github.com/marmutapp/superbased-observer/internal/scrub"
)

// The managed node's AI tool configuration inventory (D-112 "the org sees
// everything on managed nodes", T-427). Inventory reads, it never writes:
// every catalogued setting found in an installed tool's settings files (user,
// system and man

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key