Skip to content

docs: add agents.md file - #1071

Open
steveiliop56 wants to merge 1 commit into
mainfrom
docs/agents
Open

docs: add agents.md file#1071
steveiliop56 wants to merge 1 commit into
mainfrom
docs/agents

Conversation

@steveiliop56

@steveiliop56 steveiliop56 commented Aug 11, 2026

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • Documentation

    • Added repository guidance covering architecture, configuration, development workflows, testing, and contribution conventions.
  • Chores

    • Added convenient commands for frontend linting and Go code formatting.
    • Updated ignore rules for local development directories.

@dosubot dosubot Bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Aug 11, 2026
@coderabbitai

coderabbitai Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The pull request adds repository guidance in AGENTS.md, adds frontend lint and Go formatting Make targets, and updates ignored paths for .deepsec and .claude.

Changes

Repository maintenance

Layer / File(s) Summary
Repository guidance
AGENTS.md
Documents project architecture, technical conventions, directory structure, and pull-request requirements.
Development workflow and tooling
AGENTS.md, Makefile, .gitignore
Documents development commands, adds lint-webui and fmt targets, and updates ignored paths.

Estimated code review effort: 1 (Trivial) | ~5 minutes

🚥 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 identifies the primary change: adding the repository's AGENTS.md guidance file.
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 docs/agents

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.

@codecov

codecov Bot commented Aug 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 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`:
- Line 48: Add the text language identifier to all five fenced code block
openings in AGENTS.md, including the directory-tree and branch-name examples, so
each uses a text-labeled fence and satisfies MD040.
- Line 34: Correct the Gin guidance to state that *gin.Context is not compatible
with all standard-library signatures; instruct callers to pass c.Request and
c.Writer for functions requiring *http.Request or http.ResponseWriter, or use an
appropriate adapter.
🪄 Autofix

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: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: bd45fcb3-396f-4c4d-b6a7-709305d4a3c5

📥 Commits

Reviewing files that changed from the base of the PR and between ad700e7 and bc56ff7.

📒 Files selected for processing (3)
  • .gitignore
  • AGENTS.md
  • Makefile

Comment thread AGENTS.md

When updating translations, you should only update the `frontend/src/lib/i18n/locales/en.json` and `frontend/src/lib/i18n/locales/en-US.json` files (they should be exactly the same). Crowdin will handle the generation of the keys for the rest of the available locales. NEVER hard-code plain English in the frontend, instead use the available `i18next` library and the respective translations.

For the REST framework we use Gin. However functions or methods should avoid using the Gin Context (`gin.Context`) and default to stdlib arguments and outputs. The Gin Context is compatible with all stdlib declarations so it will not pose any issues with them.

Copy link
Copy Markdown
Contributor

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

go doc github.com/gin-gonic/gin.Context
rg -n --glob '*.go' 'gin\.Context|http\.ResponseWriter|\*http\.Request' .

Repository: tinyauthapp/tinyauth

Length of output: 13717


🏁 Script executed:

#!/bin/bash
set -euo pipefail

sed -n '28,38p' AGENTS.md
go doc github.com/gin-gonic/gin.ResponseWriter
go doc net/http.Handler

Repository: tinyauthapp/tinyauth

Length of output: 4531


Correct the gin.Context compatibility guidance.

*gin.Context is not compatible with all standard-library signatures. Pass c.Request and c.Writer to functions that require *http.Request and http.ResponseWriter, or use an adapter.

🤖 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` at line 34, Correct the Gin guidance to state that *gin.Context is
not compatible with all standard-library signatures; instruct callers to pass
c.Request and c.Writer for functions requiring *http.Request or
http.ResponseWriter, or use an appropriate adapter.

Source: MCP tools

Comment thread AGENTS.md

A high level of the backend is as follows:

```

Copy link
Copy Markdown
Contributor

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 language identifiers to the fenced code blocks.

markdownlint-cli2 reports MD040 for these five fence openings. Use text for the directory trees and branch-name examples.

Proposed fix
-```
+```text

Based on static analysis, markdownlint-cli2 reports MD040 on these lines.

Also applies to: 73-73, 133-133, 139-139, 145-145

🧰 Tools
🪛 markdownlint-cli2 (0.23.2)

[warning] 48-48: Fenced code blocks should have a language specified

(MD040, fenced-code-language)

🤖 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` at line 48, Add the text language identifier to all five fenced
code block openings in AGENTS.md, including the directory-tree and branch-name
examples, so each uses a text-labeled fence and satisfies MD040.

Source: Linters/SAST tools

Comment thread AGENTS.md

## Overview

Tinyauth is a lightweight and open-source authentication server written in Go and TypeScript (React). It acts as either an authentication middleware (forward_auth, ext_authz or auth_request) to protect applications using proxy authentication or as an OpenID Connect provider to offer SSO (Single-Sign-On) to your self-hosted apps. It supports 2FA (via TOTP), LDAP, access controls (ACLs), local users and SSO users via OAuth. Tinyauth can be deployed with Docker, Kubernetes or bare-metal with a binary.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
Tinyauth is a lightweight and open-source authentication server written in Go and TypeScript (React). It acts as either an authentication middleware (forward_auth, ext_authz or auth_request) to protect applications using proxy authentication or as an OpenID Connect provider to offer SSO (Single-Sign-On) to your self-hosted apps. It supports 2FA (via TOTP), LDAP, access controls (ACLs), local users and SSO users via OAuth. Tinyauth can be deployed with Docker, Kubernetes or bare-metal with a binary.
Tinyauth is a lightweight and open-source authentication server written in Go and TypeScript (React). It acts as either an authentication middleware (forward_auth, ext_authz or auth_request) to protect applications using proxy authentication or as an OpenID Connect provider to offer SSO (Single-Sign-On) to your self-hosted apps. It supports local users with optional 2FA (via TOTP), LDAP, SSO users via OAuth, and access controls (ACLs). Tinyauth can be deployed with Docker, Kubernetes or bare-metal with a binary.

Comment thread AGENTS.md
feat/add-oauth-support
```

The smaller branch name, the better.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Maybe something like Shorter branch names that still describe the general change are preferred ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants