Thanks to visit codestin.com
Credit goes to github.com

Skip to content

refactor: target:folder/AGENT.md + rewritten instructions - #1

Merged
meshin-dev merged 5 commits into
mainfrom
fix/folder-structure-and-instructions
May 26, 2026
Merged

meshin-dev merged 5 commits into
mainfrom
fix/folder-structure-and-instructions

Conversation

@meshin-dev

@meshin-dev meshin-dev commented May 26, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Convert to the canonical @CTXR agent convention: ctxr.target: "folder" with an AGENT.md entry. The kit owns the ctxr- prefix (install dir ctxr-agent-codebase-explorer); the agent is invoked by its frontmatter name: agent-codebase-explorer.
  • Rewrite the agent instructions to a complete, tool-agnostic prompt: role, when-to-use, operating procedure, output contract, and a Tools and resilience rule. The agent inherits the full toolset (no tools: restriction, matching agent-staff-engineer), uses whatever capabilities the environment exposes, and never halts on a missing/unhealthy/erroring tool (it notes it and falls back). Read-only is enforced by a firm behavioral rule, not by tool restriction.
  • README aligned to the same design; dropped the stray dispatch schema.

Test plan

  • @ctxr/kit validate passes as target: folder; markdownlint 0; dash-free
  • No tools: restriction; AGENT.md names no concrete tool/MCP/connector (tool-agnostic)
  • npm pack --dry-run ships package.json + AGENT.md + README.md + LICENSE

🤖 Generated with Claude Code

Follow the @ctxr/agent-staff-engineer convention: ctxr.target=folder with an
AGENT.md entry and no ctxr- prefix in source (the kit adds it to the install
dir). Rewrite the agent prompt to a full operating-procedure + output-contract
+ hard-rules instruction set, replace the boilerplate README with a hand-written
one, and drop the stray subagent-dispatch schema (no Tier-2 dispatch here).

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings May 26, 2026 00:49

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Refactors this agent package to the canonical @ctxr “target: folder” bundle layout, moving the agent definition into AGENT.md and updating the package metadata and README accordingly.

Changes:

  • Replace the single-file agent (ctxr-agent-codebase-explorer.md) with a folder-target bundle entrypoint (AGENT.md) and updated, more explicit operating instructions/output contract.
  • Update package.json to ctxr.target: "folder" and adjust published files to ship the bundle contents.
  • Rewrite README.md to a shorter, hand-written usage/install overview and remove the unused subagent dispatch schema.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
subagent-dispatch-v1.schema.json Removed unused schema file from the repo/package surface.
README.md Replaced scaffold README with concise “what/when/install/release” documentation aligned to the new bundle convention.
package.json Switch ctxr.target to folder and publish AGENT.md (and related docs) instead of the old single-file agent.
ctxr-agent-codebase-explorer.md Removed legacy single-file agent definition now superseded by AGENT.md.
AGENT.md New canonical agent entry with rewritten instructions, operating procedure, and strict output contract.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

… on tool errors

Remove the tools: allowlist so the agent inherits the full toolset (matching
agent-staff-engineer). Make the prompt tool-agnostic (no named tools, MCPs, or
connectors, since the tool landscape varies by project and machine) and add a
resilience rule: use whatever capabilities exist, treat them as best-effort, and
NEVER halt on a missing/unhealthy/erroring tool, note it and fall back. Keep the
read-only mission as a firm behavioral rule now that tools no longer enforce it.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.

Comment thread AGENT.md
Comment thread AGENT.md Outdated
Comment thread README.md Outdated
Comment thread package.json
…privilege claim)

The README still claimed the agent carries only built-in tools and no MCP
connectors; that contradicts the new full-toolset, never-halt AGENT.md. Reframe
to: uses whatever the environment exposes, best-effort, falls back rather than
halting, read-only by rule.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Comment thread AGENT.md Outdated
Resolve the ambiguity between the strict Output contract ("exactly these
sections", no narration) and the resilience rule ("note it in one line"): the
one-line note about a missing/unhealthy capability goes under Open questions.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Comment thread AGENT.md

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Comment thread AGENT.md

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.

@meshin-dev
meshin-dev merged commit 0971fa5 into main May 26, 2026
2 checks passed
@meshin-dev
meshin-dev deleted the fix/folder-structure-and-instructions branch May 26, 2026 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants