AGENTS.md
unoplat-code-confluence-query-engine/AGENTS.mdAGENTS.md
Quality
98/100
Scores the file, not the repository.Length
660 words
23 headings · 0 code blocksRepository
95
— · pushed 3 days agoLast changed
2 days ago
First indexed 2 days ago.1# Agent Guidelines23## Engineering Workflow4- **Install**: `task sync` (from `Taskfile.yml`)5- **Dev**: `task run-query-engine-backend-dev` (from `Taskfile.yml`)6- **Test**: `task test` (from `Taskfile.yml`)7- **Lint**: `task lint` (from `Taskfile.yml`)8- **Type check**: `task typecheck` (from `Taskfile.yml`)910## Dependency Guide11- **Overview**: Full dependency descriptions are maintained in `dependencies_overview.md`.12- **Usage**: Keep this section concise and treat `dependencies_overview.md` as the source-of-truth dependency catalog.1314## Business Logic Domain15- **Overview**: AI-driven codebase analysis service that orchestrates repository workflows to generate structured documentation outputs and track execution across codebases.16- **Core data focus**: Provider configuration (including OAuth flows), model parameters/catalogs, tool/MCP server setup, repository rulesets/metadata, and agent runtime dependencies.17- **Workflow telemetry**: Agent events, workflow envelopes, and usage/cost statistics capture lifecycle and execution monitoring.18- **Structured outputs**: Typed schemas for agent markdown responses, AGENTS.md updates, engineering workflows, and business logic summaries.19- **Primary references**: See `business_logic_references.md` for the source-of-truth module map.2021## App Interfaces22- **Protocol**: FastAPI HTTP endpoints under `src/unoplat_code_confluence_query_engine/api/v1/endpoints`.23- **Surface area**: Model configuration + provider/OAuth flows, feature flag CRUD, repository agent rules/snapshots/markdown PR endpoints, and tool configuration management.24- **Reference map**: See `app_interfaces.md` for endpoint-to-module details.2526## Architecture27See [`architecture.md`](./architecture.md) for the current validated Mermaid architecture diagram when external interfaces are detected.2829## Commands30- **Test all**: `task test` (starts deps, runs tests with coverage, stops deps)31- **Test single**: `uv run --group test pytest tests/path/to/test_file.py::test_function_name -v`32- **Lint**: `task lint` (check) or `task lint-fix` (auto-fix)33- **Format**: `task format` (ruff formatter)34- **Type check**: `task typecheck` (pyrefly strict preset)35- **Dev server**: `task run-query-engine-backend-dev` (port 8001)3637## Code Style38- **Imports**: Absolute only (no relative), use ruff for ordering (`task lint-fix`)39- **Types**: Always precise types - never use `Any`, use `typing` module generics40- **Functions**: No nested functions - keep flat structure at module level41- **Pydantic**: Use `model_dump_json()` for JSON serialization (not `json.dumps`)42- **Docstrings**: Google format, omit `ctx` param (dependency injection magic)43- **Sessions**: Always `session.begin()` but yield `AsyncSession` for auto-transactions44- **Error handling**: Use structured exceptions, add proper context/trace IDs45- **Tool verification**: Use context7 tool to verify API methods before implementation46- **Python commands**: Always use `uv run --group <group>` (e.g., `--group test` for tests)474849## Caveats501. When a shell command fails with "failed in sandbox", use the permission request tool (with 'with_escalated_permissions") to ask the user for approval before51retrying.522. always when want to run python script open shell with 'uv run python'.5354## Backlog Workflow5556This project uses Backlog.md MCP for all task and project management. Before creating tasks or tracking work, read [`backlog_instructions.md`](./backlog_instructions.md) for the complete workflow guidance.5758<!-- UNOPLAT_CODE_CONFLUENCE_CONTEXT:BEGIN -->59<CRITICAL_INSTRUCTION>6061> Generated from branch `dev` at commit `5ecdba39d57f50c5188a8e32b9dd4f52d01611fe` (2026-07-18). Content may become stale as new commits land.6263</CRITICAL_INSTRUCTION>6465## Engineering Workflow66### Install67- `task sync` (repo root; `Taskfile.yml` -> `uv sync`)68### Build69- Not detected70### Dev71- `task run-query-engine-backend-dev` (repo root; `Taskfile.yml` -> `uv run fastapi dev --port 8001` in `src/unoplat_code_confluence_query_engine`)72### Test73- `task test` (repo root; `Taskfile.yml` -> starts dependencies, runs `uv sync --group test`, then `uv run --python 3.13 --group test pytest --cov=src/unoplat_code_confluence_query_engine --cov-report=html:coverage_reports tests/ -v`)74### Lint75- `task lint` (repo root; `Taskfile.yml` -> `uv run --group dev ruff check src/`)76### Type Check77- `task typecheck` (repo root; `Taskfile.yml` -> `uv run --group dev pyrefly check src/`)7879## Dependency Guide80See [`dependencies_overview.md`](./dependencies_overview.md) for the full dependency catalog and usage notes.8182## Business Domain83### Description8485This service is an AI-assisted codebase analysis and repository automation engine. It manages model/provider and tool credentials, launches Temporal workflows that inspect repositories, generate engineering and dependency guidance, validate framework usage, and produce/update AGENTS.md artifacts and pull requests. It also supports Codex OAuth, feedback submission, and feature flags for operating the agent runtime.8687### References8889See [`business_domain_references.md`](./business_domain_references.md) for the supporting source references used to derive this domain summary.9091## App Interfaces92See [`app_interfaces.md`](./app_interfaces.md) for the canonical interface and endpoint reference.9394## Architecture95See [`architecture.md`](./architecture.md) for the canonical system architecture diagram.9697<!-- UNOPLAT_CODE_CONFLUENCE_CONTEXT:END -->98
Also in unoplat/unoplat-code-confluence
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| unoplat/unoplat-code-confluenceunoplat-code-confluence-openmetadata/AGENTS.md · 95 | AGENTS.md | setupbuildtestlint-format+2 | 79/100 | 2 days ago | |
| unoplat/unoplat-code-confluenceAGENTS.md · 95 | AGENTS.md | testlint-formatmonorepoagent-behaviour | 48/100 | 2 days ago | |
| unoplat/unoplat-code-confluenceunoplat-code-confluence-cli/AGENTS.md · 95 | AGENTS.md | setupbuildtestlint-format+3 | 84/100 | 2 days ago | |
| unoplat/unoplat-code-confluenceunoplat-code-confluence-commons/.cursor/rules/use-think-tool.mdc · 95 | Cursor rules | no sections | 30/100 | 2 days ago | |
| unoplat/unoplat-code-confluenceunoplat-code-confluence-commons/AGENTS.md · 95 | AGENTS.md | setupbuildtestlint-format+2 | 88/100 | 2 days ago | |
| unoplat/unoplat-code-confluenceunoplat-code-confluence-docs/AGENTS.md · 95 | AGENTS.md | setupbuildtestlint-format+3 | 75/100 | 2 days ago | |
| unoplat/unoplat-code-confluenceunoplat-code-confluence-docs/CLAUDE.md · 95 | CLAUDE.md | testgitagent-behaviour | 43/100 | 2 days ago | |
| unoplat/unoplat-code-confluenceunoplat-code-confluence-frontend/.cursor/rules/react-vite-tanstack.mdc · 95 | Cursor rules | styleagent-behaviour | 38/100 | 2 days ago | |
| unoplat/unoplat-code-confluenceunoplat-code-confluence-frontend/.cursor/rules/shadcn-tanstack-knowledge.mdc · 95 | Cursor rules | teststyleuiperformance | 48/100 | 2 days ago | |
| unoplat/unoplat-code-confluenceunoplat-code-confluence-frontend/AGENTS.md · 95 | AGENTS.md | setupbuildtestlint-format+6 | 100/100 | 2 days ago | |
| unoplat/unoplat-code-confluenceunoplat-code-confluence-frontend/CLAUDE.md · 95 | CLAUDE.md | setupstylearchui+1 | 62/100 | 2 days ago | |
| unoplat/unoplat-code-confluenceunoplat-code-confluence-ingestion/code-confluence-flow-bridge/.cursor/rules/code-structure.mdc · 95 | Cursor rules | no sections | 16/100 | 2 days ago | |
| unoplat/unoplat-code-confluenceunoplat-code-confluence-ingestion/code-confluence-flow-bridge/.cursor/rules/fastapi-pydantic.mdc · 95 | Cursor rules | styletypes | 38/100 | 2 days ago | |
| unoplat/unoplat-code-confluenceunoplat-code-confluence-ingestion/code-confluence-flow-bridge/AGENTS.md · 95 | AGENTS.md | setupbuildtestlint-format+3 | 77/100 | 2 days ago | |
| unoplat/unoplat-code-confluenceunoplat-code-confluence-ingestion/code-confluence-flow-bridge/CLAUDE.md · 95 | CLAUDE.md | testlint-formatstylearch+6 | 96/100 | 2 days ago | |
| unoplat/unoplat-code-confluenceunoplat-code-confluence-query-engine/CLAUDE.md · 95 | CLAUDE.md | agent-behaviour | 25/100 | 2 days ago |
Diff against unoplat-code-confluence-openmetadata/AGENTS.md Diff against AGENTS.md Diff against unoplat-code-confluence-cli/AGENTS.md Diff against unoplat-code-confluence-commons/.cursor/rules/use-think-tool.mdc Diff against unoplat-code-confluence-commons/AGENTS.md Diff against unoplat-code-confluence-docs/AGENTS.md Diff against unoplat-code-confluence-docs/CLAUDE.md Diff against unoplat-code-confluence-frontend/.cursor/rules/react-vite-tanstack.mdc Diff against unoplat-code-confluence-frontend/.cursor/rules/shadcn-tanstack-knowledge.mdc Diff against unoplat-code-confluence-frontend/AGENTS.md Diff against unoplat-code-confluence-frontend/CLAUDE.md Diff against unoplat-code-confluence-ingestion/code-confluence-flow-bridge/.cursor/rules/code-structure.mdc Diff against unoplat-code-confluence-ingestion/code-confluence-flow-bridge/.cursor/rules/fastapi-pydantic.mdc Diff against unoplat-code-confluence-ingestion/code-confluence-flow-bridge/AGENTS.md Diff against unoplat-code-confluence-ingestion/code-confluence-flow-bridge/CLAUDE.md Diff against unoplat-code-confluence-query-engine/CLAUDE.md
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| mui/material-uiAGENTS.md · 99k | AGENTS.md | setupbuildtestlint-format+9 | 100/100 | 3 days ago | |
| SkeneTechnologies/skene-cookbookAGENTS.md · 51 | AGENTS.md | setupbuildtestlint-format+7 | 100/100 | 2 days ago | |
| OnlyTerp/prompt-cache-skillsAGENTS.md · 111 | AGENTS.md | setupbuildtestlint-format+5 | 100/100 | 3 days ago | |
| code-yeongyu/oh-my-openagentpackages/web/AGENTS.md · 67k | AGENTS.md | setupbuildtestlint-format+6 | 100/100 | 2 days ago | |
| aaif-goose/gooseAGENTS.md · 52k | AGENTS.md | setupbuildtestlint-format+6 | 100/100 | 3 days ago | |
| duckduckgo/content-scope-scriptsspecial-pages/AGENTS.md · 70 | AGENTS.md | buildteststylearch+3 | 100/100 | 3 days ago | |
| n8n-io/n8npackages/@n8n/agents/AGENTS.md · 199k | AGENTS.md | buildteststylearch+3 | 100/100 | 3 days ago | |
| TryGhost/Ghoste2e/AGENTS.md · 55k | AGENTS.md | setupteststylearch+2 | 100/100 | 3 days ago |
