Skip to content

chore: track AGENTS.md and CLAUDE.md in git - #19

Merged
OctavianTocan merged 1 commit into
mainfrom
octavian/finish-product-store-and-pages
Aug 2, 2026
Merged

chore: track AGENTS.md and CLAUDE.md in git#19
OctavianTocan merged 1 commit into
mainfrom
octavian/finish-product-store-and-pages

Conversation

@OctavianTocan

@OctavianTocan OctavianTocan commented Aug 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • Stop ignoring root AGENTS.md / CLAUDE.md so harness instructions stay in version control
  • Add the thin agentic-stack adapters already used locally

Test plan

  • Diff is docs/config only (no runtime code)
  • CI check passes on this PR

Made with Cursor

Summary by Sourcery

Track agent instruction files in version control and add project-level guidance for using the agentic-stack memory and skills.

Documentation:

  • Add AGENTS.md with project-wide instructions for session setup, memory usage, skills, and manual logging workflows.
  • Add CLAUDE.md as a concise agent-facing alias emphasizing use of the i-have-adhd teaching skill.

Chores:

  • Stop ignoring root AGENTS.md and CLAUDE.md so harness configuration and instructions are kept under git.

Summary by CodeRabbit

  • Documentation
    • Added project guidance for agent workflows, including session procedures, memory maintenance, safety rules, and explanation practices.
    • Added instructions for providing action-oriented guidance with a clear next step.

Stop ignoring the harness adapters so the i-have-adhd teaching rule
and session-start map travel with the repo.

Co-authored-by: Cursor <cursoragent@cursor.com>
@semanticdiff-com

Copy link
Copy Markdown

Review changes with  SemanticDiff

@sourcery-ai

sourcery-ai Bot commented Aug 2, 2026

Copy link
Copy Markdown

Reviewer's Guide

Stops ignoring AGENTS.md/CLAUDE.md and adds project-level agentic-stack instructions so harness behavior is tracked in git without affecting runtime code.

Sequence diagram for recall and memory logging flow from AGENTS.md

sequenceDiagram
    actor Developer
    participant agentic_stack
    participant recall_py as recall_py
    participant memory_reflect_py as memory_reflect_py

    Developer->>recall_py: python3 .agent/tools/recall.py "<task description>"
    recall_py-->>Developer: Consulted lessons before acting
    Developer->>agentic_stack: [perform non-trivial action]

    opt significant_event
        Developer->>memory_reflect_py: python3 .agent/tools/memory_reflect.py "topic" "event" "outcome" --importance N --note "rich note"
        memory_reflect_py-->>Developer: memory entry logged
    end
Loading

File-Level Changes

Change Details Files
Track root AGENTS.md and CLAUDE.md in version control and document agentic-stack usage and workflows.
  • Remove ignore rules so AGENTS.md and CLAUDE.md are committed instead of excluded from git.
  • Add AGENTS.md with detailed project instructions for using the agentic-stack brain, memory, skills, protocols, and tooling.
  • Add CLAUDE.md as a concise pointer to AGENTS.md plus a localized summary of the i-have-adhd teaching/explaining pattern.
.gitignore
AGENTS.md
CLAUDE.md

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@coderabbitai

coderabbitai Bot commented Aug 2, 2026

Copy link
Copy Markdown

Review Change Stack

Walkthrough

The change adds project instructions for agent operation, response formatting, recall, memory maintenance, and safety. It also removes ignore rules so AGENTS.md and CLAUDE.md remain tracked.

Changes

Agent instruction files

Layer / File(s) Summary
Agent operating and response guidance
AGENTS.md, CLAUDE.md
AGENTS.md adds session, skill, recall, workspace, memory, importance, and safety rules. CLAUDE.md adds response guidance.
Instruction file tracking
.gitignore
The ignore rules for AGENTS.md and CLAUDE.md were removed.

Estimated code review effort: 2 (Simple) | ~10 minutes

Poem

A rabbit reads the rules with care,
Loads each skill before repair.
Recall comes first when tasks are wide,
Memory notes stay by its side.
Tracked files guide each hop and stride.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the primary change: tracking AGENTS.md and CLAUDE.md in git.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch octavian/finish-product-store-and-pages

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@sourcery-ai sourcery-ai Bot 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.

Hey - I've left some high level feedback:

  • CLAUDE.md partially duplicates instruction content from AGENTS.md; consider consolidating this into a single source of truth (e.g., via explicit include or reference) to avoid future drift between the two files.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- CLAUDE.md partially duplicates instruction content from AGENTS.md; consider consolidating this into a single source of truth (e.g., via explicit include or reference) to avoid future drift between the two files.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@AGENTS.md`:
- Around line 106-107: Add blank lines immediately before and after the
importance table under the “Importance guide” section in AGENTS.md, then rerun
the check job to verify the MD058 markdownlint error is resolved.
- Around line 18-23: Resolve the ordering conflict in the session-start
instructions by making .agent/protocols/permissions.md the first file read, then
place the remaining files in the documented order. Update the mirrored
session-start rule to use the same ordering, preserving the requirement that
permissions.md is read before any tool call.
- Around line 3-10: Update the i-have-adhd guidance in AGENTS.md to define one
canonical skill source under .agent/, or explicitly document precedence and
fallback paths that always resolve to the intended version. Align the “load and
follow” instruction with the existing .agent/skills/_index.md reference so
agents cannot skip the skill or load an unintended installed copy.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: d2b47159-39ae-4f40-8650-8cacfb73e0c5

📥 Commits

Reviewing files that changed from the base of the PR and between 49f930e and ccef891.

📒 Files selected for processing (3)
  • .gitignore
  • AGENTS.md
  • CLAUDE.md
💤 Files with no reviewable changes (1)
  • .gitignore

Comment thread AGENTS.md
Comment on lines +3 to +10
This project uses the **agentic-stack** portable brain. All memory, skills,
and protocols live in `.agent/`.

## Teaching / explaining — always use `i-have-adhd`

**Whenever you explain anything to the user, teach them how to do something,
walk through a plan, or tell them what to do next:** load and follow the
`i-have-adhd` skill first (`SKILL.md` from the installed plugin / skill dirs).

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

fd -H '(^_index\.md$|^SKILL\.md$)' .agent
rg -n 'i-have-adhd|installed plugin|\.agent/skills' AGENTS.md CLAUDE.md

Repository: OctavianTocan/agentree

Length of output: 254


🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf 'Root tracked files (top-level candidates):\n'
git ls-files | sed -n '1,120p'

printf '\nAgent/config matching files:\n'
git ls-files | rg '(^|/)(AGENTS\.md|CLAUDE\.md|PREFERENCES\.md|REVIEW_QUEUE\.md|LESSONS\.md)|(^|\.)agent/|skills/' || true

printf '\nSearch skill-related text in tracked files:\n'
rg -n 'i-have-adhd|installed plugin|\.agent/skills|SKILL\.md|\.agent/' . || true

Repository: OctavianTocan/agentree

Length of output: 4513


🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf 'AGENTS.md relevant sections:\n'
sed -n '1,80p' AGENTS.md | nl -ba

printf '\nCLAUDE.md relevant sections:\n'
sed -n '1,30p' CLAUDE.md | nl -ba

printf '\nFull AGENTS.md line count:\n'
wc -l AGENTS.md

Repository: OctavianTocan/agentree

Length of output: 229


🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf 'AGENTS.md relevant sections:\n'
awk 'NR<=80{printf "%4d  %s\n", NR, $0}' AGENTS.md

printf '\nCLAUDE.md relevant sections:\n'
awk 'NR<=35{printf "%4d  %s\n", NR, $0}' CLAUDE.md

printf '\nskills-lock.json:\n'
cat skills-lock.json | sed -n '1,120p'

Repository: OctavianTocan/agentree

Length of output: 4598


Define one canonical i-have-adhd source.

AGENTS.md says all skills live in .agent/, but line 10 tells the agent to load SKILL.md from installed plugin/skill directories, and lines 42-43 point to .agent/skills/_index.md. Standardize one source or document explicit precedence and path fallbacks so i-have-adhd cannot be skipped or loaded from an unintended version.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@AGENTS.md` around lines 3 - 10, Update the i-have-adhd guidance in AGENTS.md
to define one canonical skill source under .agent/, or explicitly document
precedence and fallback paths that always resolve to the intended version. Align
the “load and follow” instruction with the existing .agent/skills/_index.md
reference so agents cannot skip the skill or load an unintended installed copy.

Comment thread AGENTS.md
Comment on lines +18 to +23
## Session start — read in this order
1. `.agent/AGENTS.md` — the map of the whole brain
2. `.agent/memory/personal/PREFERENCES.md` — how the user works
3. `.agent/memory/working/REVIEW_QUEUE.md` — pending lessons awaiting review
4. `.agent/memory/semantic/LESSONS.md` — what we've already learned
5. `.agent/protocols/permissions.md` — hard constraints, read before any tool call

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔒 Security & Privacy | 🟠 Major | ⚡ Quick win

Fix the session-start ordering conflict.

Line 23 requires permissions.md before any tool call. Lines 19-22 require four other files first, and reading them is already a tool call. The agent cannot satisfy both rules. Make permissions.md the first file, or remove the “before any tool call” requirement, then update the mirrored session-start rule to match.

As per coding guidelines, the session-start file order is an explicit repository instruction, but permissions.md is also declared mandatory before any tool call.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@AGENTS.md` around lines 18 - 23, Resolve the ordering conflict in the
session-start instructions by making .agent/protocols/permissions.md the first
file read, then place the remaining files in the documented order. Update the
mirrored session-start rule to use the same ordering, preserving the requirement
that permissions.md is read before any tool call.

Source: Coding guidelines

Comment thread AGENTS.md
Comment on lines +106 to +107
### Importance guide
| Value | When |

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Add blank lines around the importance table.

markdownlint-cli2 reports MD058 at Line 107. Add a blank line before and after the table. Rerun the check job after the edit.

🧰 Tools
🪛 markdownlint-cli2 (0.23.1)

[warning] 107-107: Tables should be surrounded by blank lines

(MD058, blanks-around-tables)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@AGENTS.md` around lines 106 - 107, Add blank lines immediately before and
after the importance table under the “Importance guide” section in AGENTS.md,
then rerun the check job to verify the MD058 markdownlint error is resolved.

Source: Linters/SAST tools

@OctavianTocan
OctavianTocan merged commit 37ed663 into main Aug 2, 2026
7 checks passed
@OctavianTocan
OctavianTocan deleted the octavian/finish-product-store-and-pages branch August 2, 2026 09:10
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.

1 participant