Skip to content

Commit f7abfd5

Browse files
authored
Merge pull request #7 from sampleXbro/develop
Develop
2 parents 6359881 + 1e920e6 commit f7abfd5

134 files changed

Lines changed: 3625 additions & 851 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.agents/rules/general.md

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
# Operational Guidelines
2+
3+
## Session Start
4+
5+
- **Always** read `tasks/lessons.md` at the beginning of each session before doing any work
6+
- Apply relevant lessons to the current task
7+
8+
## Workflow Orchestration
9+
10+
### 1. Plan Node Default
11+
12+
- Enter plan mode for ANY non-trivial task (3+ steps or architectural decisions)
13+
- If something goes sideways, STOP and re-plan immediately - don't keep pushing
14+
- Use plan mode for verification steps, not just building
15+
- Write detailed specs upfront to reduce ambiguity
16+
17+
### 2. Subagent Strategy
18+
19+
- Use subagents liberally to keep main context window clean
20+
- Offload research, exploration, and parallel analysis to subagents
21+
- For complex problems, throw more compute at it via subagents
22+
- One tack per subagent for focused execution
23+
24+
### 3. Self-Improvement Loop
25+
26+
- **When to amend** `tasks/lessons.md`: whenever something turns out wrong — user correction, test failure, CI failure, code review feedback, or any other signal that a mistake was made
27+
- **How to amend**: add a bullet with (1) what went wrong, (2) the root cause, (3) a rule that prevents the same mistake
28+
- **Best practice for AI agents**: updating lessons is the primary way to persist learning across sessions; agents lack long-term memory, so `tasks/lessons.md` is the project-specific memory that reduces repeated mistakes
29+
- Write rules for yourself that prevent the same mistake
30+
- Ruthlessly iterate on these lessons until mistake rate drops
31+
- Review lessons at session start for relevant project
32+
33+
### 4. Verification Before Done
34+
35+
- Never mark a task complete without proving it works
36+
- **After every feature/story completion**: Use the `post-feature-qa` skill (`.agents/skills/post-feature-qa/`) — run the QA checklist, ensure tests cover edge cases and implementation aligns with the story, fix gaps before marking done
37+
- Diff behavior between main and your changes when relevant
38+
- Ask yourself: "Would a staff engineer approve this?"
39+
- Run tests, check logs, demonstrate correctness
40+
41+
### 5. Demand Elegance (Balanced)
42+
43+
- For non-trivial changes: pause and ask "is there a more elegant way?"
44+
- If a fix feels hacky: "Knowing everything I know now, implement the elegant solution"
45+
- Skip this for simple, obvious fixes - don't over-engineer
46+
- Challenge your own work before presenting it
47+
48+
### 6. Autonomous Bug Fixing
49+
50+
- When given a bug report: just fix it. Don't ask for hand-holding
51+
- Point at logs, errors, failing tests - then resolve them
52+
- Zero context switching required from the user
53+
- Go fix failing CI tests without being told how
54+
55+
## Task Management
56+
57+
1. **Plan First**: Write plan to `tasks/todo.md` with checkable items
58+
2. **Verify Plan**: Check in before starting implementation
59+
3. **Track Progress**: Mark items complete as you go
60+
4. **Explain Changes**: High-level summary at each step
61+
5. **Document Results**: Add review section to `tasks/todo.md`
62+
6. **Capture Lessons**: Update `tasks/lessons.md` after corrections — see "When to amend" and "How to amend" in Self-Improvement Loop above
63+
64+
## Skills
65+
66+
- **post-feature-qa** (`.agents/skills/post-feature-qa/`) — Apply after every feature or story implementation. Act as senior QA: verify test coverage for all edge cases and story alignment; produce QA report; fix gaps before claiming complete.
67+
- **add-agent-target** (`.agents/skills/add-agent-target/`) — Use when adding support for a new AI agent target. Requires current official-doc research, full import/generate implementation, rich realistic fixtures, complete unit/integration/e2e coverage, docs updates, and final QA.
68+
69+
## Core Principles
70+
71+
- **Simplicity First**: Make every change as simple as possible. Impact minimal code.
72+
- **No Laziness**: Find root causes. No temporary fixes. Senior developer standards.
73+
- **Minimal Impact**: Changes should only touch what's necessary. Avoid introducing bugs.
74+
75+
## Project-Specific Rules
76+
77+
- **TDD mandatory**: Write failing tests FIRST, then implement. No exceptions.
78+
- **Max file size**: 200 lines. Split by responsibility if larger.
79+
- **No classes unless stateful**: Prefer pure functions + types.
80+
- **No `any`**: Use `unknown` + narrowing.
81+
- **Config source of truth**: `.agentsmesh/` directory. Generated files are artifacts.
82+
- **Test naming**: `{module}.test.ts` colocated with source. Integration tests in `tests/integration/`.
83+
- **Generated artifact tests must be strict**: For generated file structures, assert exact file paths, exact file counts, and exact referenced wrapper/script sets. Do not use loose checks like "at least one file", broad `some(...)`, or prefix-only path assertions when the full output set is known.
84+
- **Commit format**: conventional commits — `feat|fix|test|refactor(scope): message`
85+
- **README must stay current**: Any change to CLI commands, flags, config schema, supported targets, or canonical file formats **must** be reflected in `README.md` before the task is marked complete. Treat the README as part of the API surface.
86+
- **Website docs must stay current**: Any change to CLI commands, flags, config schema, supported targets, canonical file formats, or other user-facing behavior **must** also be reflected in the documentation website (`website/src/content/docs/`). The website is the primary public documentation — treat it with the same rigor as `README.md`.
87+
- **Refer to PRD**: `docs/prd-v2-complete.md` for architecture decisions
88+
- **Refer to tasks**: `docs/agentsmesh-ai-first-tasks.md` for current task specs
89+
90+
## AgentsMesh Generation Contract
91+
92+
AgentsMesh is a config sync library for AI coding tools. The only canonical source of truth is the `.agentsmesh` directory at the project root; files emitted into target formats such as `AGENTS.md`, `.claude/`, `.cursor/`, `.junie/`, and similar directories are generated artifacts. When making changes, edit canonical config first, then regenerate and verify the target outputs. Preserve the library's bidirectional contract: import native tool config into canonical form, generate back to target-specific layouts, and keep projected or embedded features round-trippable rather than treating them as plain text exports.

.agents/rules/typescript.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# TypeScript Standards
2+
3+
- Use strict mode
4+
- Prefer `unknown` over `any`
5+
- Use explicit return types for public functions
6+
- Prefer `interface` over `type` for object shapes

.agents/workflows/commit.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Create a conventional commit/s from current changes
2+
3+
Review the current git changes (staged and unstaged) and:
4+
5+
1. **Analyze changes** — Understand what was modified (files, scope, intent)
6+
2. **Propose a conventional commit message** — Format: `type(scope): message`
7+
- Types: `feat`, `fix`, `test`, `refactor`, `docs`, `chore`, `perf`, `ci`
8+
- Scope: affected area (e.g. `engine`, `cursor`, `config`)
9+
- Message: imperative, lowercase, no period
10+
3. **Stage if needed** — Stage relevant files (ask before `git add .` if many files)
11+
4. **Commit** — Run `git commit -m "..."` with the proposed message
12+
13+
If the user requests edits to the message, adjust and re-commit. Do not amend without explicit request.

.agents/workflows/review.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Review current changes for code quality and best practices
2+
3+
Review the current git diff and provide feedback on:
4+
- Code quality and readability
5+
- Potential bugs or edge cases
6+
- Adherence to project conventions
7+
- Test coverage gaps

.agents/workflows/test.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Run tests and report results
2+
3+
Run the project test suite and report:
4+
- Number of passing/failing tests
5+
- Coverage summary
6+
- Any test failures with details

.agentsmesh/.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Auto-generated. DO NOT EDIT MANUALLY.
22
# Tracks the state of all config files for team conflict resolution.
33

4-
generated_at: 2026-03-28T10:40:11.652Z
4+
generated_at: 2026-03-29T10:20:37.442Z
55
generated_by: serhii
6-
lib_version: 0.2.5
6+
lib_version: 0.2.8
77
checksums:
88
agents/code-debugger.md: sha256:707132841c606f117c83491d53ce101be0117eb50abe2861bcf93bdd45a56daf
99
agents/code-documenter.md: sha256:faa66b16d2e86578985e817d60e6705ae0e34a716c1f5c29411739a6d659fb96
File renamed without changes.

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 0.2.8
4+
5+
### Patch Changes
6+
7+
- Add Antigravity as a supported target, emit Continue root rules as `.continue/rules/general.md` (while still importing legacy `_root.md`), register built-in targets through target descriptors, and align Continue e2e contracts with the new rule filename.
8+
39
## 0.2.6
410

511
### Patch Changes

README.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<a href="https://github.com/sampleXbro/agentsmesh/pulls"><img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg" alt="PRs Welcome"></a>
1313
</p>
1414

15-
AgentsMesh maintains a single canonical configuration in `.agentsmesh/` and syncs it bidirectionally to Claude Code, Cursor, Copilot, Continue, Junie, Gemini CLI, Cline, Codex CLI, and Windsurf. Rules, commands, agents, skills, MCP servers, hooks, ignore patterns, and permissions -- all from one source of truth.
15+
AgentsMesh maintains a single canonical configuration in `.agentsmesh/` and syncs it bidirectionally to Claude Code, Cursor, Copilot, Continue, Junie, Gemini CLI, Cline, Codex CLI, Windsurf, and Antigravity. Rules, commands, agents, skills, MCP servers, hooks, ignore patterns, and permissions -- all from one source of truth.
1616

1717
> **Full documentation: [samplexbro.github.io/agentsmesh](https://samplexbro.github.io/agentsmesh)**
1818
@@ -80,19 +80,21 @@ That's it. Your `.agentsmesh/` directory is now the single source of truth, and
8080

8181
## Supported Tools
8282

83-
| Feature | Claude Code | Cursor | Copilot | Gemini CLI | Cline | Codex CLI | Windsurf | Continue | Junie |
84-
|---------------|:-----------:|:-------:|:-------:|:----------:|:-------:|:---------:|:--------:|:--------:|:--------:|
85-
| Rules | Native | Native | Native | Native | Native | Native | Native | Native | Native |
86-
| Commands | Native | Native | Native | Native | Native | Embedded | Native | Embedded | Embedded |
87-
| Agents | Native | Native | Native | Native | Embedded| Native | Embedded | -- | Embedded |
88-
| Skills | Native | Native | Native | Native | Native | Native | Native | Embedded | Embedded |
89-
| MCP Servers | Native | Native | -- | Native | Native | Native | Partial | Native | Native |
90-
| Hooks | Native | Native | Partial | Partial | -- | -- | Native | -- | -- |
91-
| Ignore | Native | Native | -- | Native | Native | -- | Native | -- | Native |
92-
| Permissions | Native | Partial | -- | Partial | -- | -- | -- | -- | -- |
83+
| Feature | Claude Code | Cursor | Copilot | Gemini CLI | Cline | Codex CLI | Windsurf | Continue | Junie | Antigravity |
84+
|---------------|:-----------:|:-------:|:-------:|:----------:|:-------:|:---------:|:--------:|:--------:|:--------:|:-----------:|
85+
| Rules | Native | Native | Native | Native | Native | Native | Native | Native | Native | Native |
86+
| Commands | Native | Native | Native | Native | Native | Embedded | Native | Embedded | Embedded | Partial |
87+
| Agents | Native | Native | Native | Native | Embedded| Native | Embedded | -- | Embedded | -- |
88+
| Skills | Native | Native | Native | Native | Native | Native | Native | Embedded | Embedded | Native |
89+
| MCP Servers | Native | Native | -- | Native | Native | Native | Partial | Native | Native | -- |
90+
| Hooks | Native | Native | Partial | Partial | -- | -- | Native | -- | -- | -- |
91+
| Ignore | Native | Native | -- | Native | Native | -- | Native | -- | Native | -- |
92+
| Permissions | Native | Partial | -- | Partial | -- | -- | -- | -- | -- | -- |
9393

9494
See the [full feature matrix docs](https://samplexbro.github.io/agentsmesh/reference/supported-tools/) for details on native vs. embedded support.
9595

96+
**Note:** The canonical root rule always lives at `.agentsmesh/rules/_root.md`. Some targets write that content to a tool-specific main file named `general` (for example `.continue/rules/general.md` and `.agents/rules/general.md` for Antigravity) instead of `_root.md` on disk.
97+
9698
---
9799

98100
## Documentation

agentsmesh.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ targets:
99
- windsurf
1010
- continue
1111
- junie
12+
- antigravity
1213
features:
1314
- rules
1415
- commands

0 commit comments

Comments
 (0)