From 94568d9f70b12fa348040a7998dac7b0808b0258 Mon Sep 17 00:00:00 2001 From: t Date: Fri, 3 Jul 2026 09:49:13 -0600 Subject: Initial changes: agent.rules and agent.skill extensions panto-agent is a luarocks rock providing the agent.* extension suite for pantograph's panto CLI: - agent.rules: injects AGENTS.md/CLAUDE.md (AGENTS.md wins, never both) from the base agent dir, user config dir, and project root into the system prompt at session start. Also hooks std.read tool results to append rules files found between a read location and the project root, each injected at most once per session. - agent.skill: discovers Agent Skills (SKILL.md with YAML frontmatter) across data/config/home/project skill dirs with later dirs shadowing earlier ones, and exposes them via an agent.skill tool whose enum and description are built from the surviving skills. The tool returns the skill's instructions with frontmatter stripped. Not registered when no skills are found. Includes a rockspec, README, and a panto-runnable self-check (_selfcheck.lua, underscore-prefixed so panto's directory scan skips it). Sources live under panto-agent/ so require works the same installed or from a checkout. --- panto-agent-scm-1.rockspec | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 panto-agent-scm-1.rockspec (limited to 'panto-agent-scm-1.rockspec') diff --git a/panto-agent-scm-1.rockspec b/panto-agent-scm-1.rockspec new file mode 100644 index 0000000..bd3e459 --- /dev/null +++ b/panto-agent-scm-1.rockspec @@ -0,0 +1,31 @@ +rockspec_format = "3.0" +package = "panto-agent" +version = "scm-1" + +source = { + -- Placeholder until the suite moves to its own repository. + url = "git+https://example.invalid/panto-agent.git", +} + +description = { + summary = "The agent.* extension suite for pantograph", + detailed = [[ +Coding-agent extensions for the panto CLI: rules-file context injection +(agent.rules), with skills and subagents to follow. Load by adding +"panto-agent" to `extensions.rocks` in panto's config.toml. +]], + license = "MIT", +} + +dependencies = { + "lua >= 5.1", +} + +build = { + type = "builtin", + modules = { + ["panto-agent"] = "panto-agent/init.lua", + ["panto-agent.rules"] = "panto-agent/rules.lua", + ["panto-agent.skill"] = "panto-agent/skill.lua", + }, +} -- cgit v1.3