Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add rules/syntaxarc/archipy-plugin/using-archipy-servicesgit clone --depth 1 https://github.com/SyntaxArc/archipy-pluginWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00000 | $0.00526 |
| Opus 5 | $0.00000 | $0.00263 |
| Sonnet 5 | $0.00000 | $0.00105 |
| Haiku 4.5 | $0.00000 | $0.00053 |
Grade A, and why
using-archipy-services scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
Using ArchiPy Services
Services are thin transport adapters (HTTP routers / gRPC servicers). Bootstrap often lives in manage.py — follow this rule there too.
Live: https://syntaxarc.github.io/ArchiPy/getting-started/project_structure/
Responsibilities
- Validate and translate HTTP/gRPC requests into domain
*InputDTO. - Call the appropriate logic class; return domain
*OutputDTO. - Map domain errors → HTTP/gRPC status codes.
- Version in path:
services/{domain}/v{n}/— not in business logic.
Bootstrap via AppUtils + FastAPIConfig
uv add "archipy[fastapi]" # and/or archipy[grpc]
from archipy.helpers.utils.app_utils import AppUtils
from archipy.configs.base_config import BaseConfig
# FastAPI — reads BaseConfig.FASTAPI for title, docs, middleware
app = AppUtils.create_fastapi_app()
app.include_router(create_user_v1_router(container))
# gRPC sync / async — do not mix servicer styles
config = BaseConfig.global_config()
server = AppUtils.create_grpc_app(config) # sync servicers
# server = AppUtils.create_async_grpc_app(config) # async servicers
Do not re-implement CORS, exception handlers, or stock gRPC interceptors that AppUtils already wires.
manage.py / uvicorn
Bind from config.FASTAPI — never hardcode host/port/reload/proxy:
config = BaseConfig.global_config()
uvicorn.run(
"manage:create_app",
factory=True,
host=config.FASTAPI.SERVE_HOST,
port=config.FASTAPI.SERVE_PORT,
reload=config.FASTAPI.RELOAD,
proxy_headers=config.FASTAPI.PROXY_HEADERS,
forwarded_allow_ips=config.FASTAPI.FORWARDED_ALLOW_IPS or "127.0.0.1",
)
CLI flags may override for local runs; defaults always come from FASTAPI.
Do Not
- Put business rules or
@postgres_sqlalchemy_atomic_decoratorin services. - Hand-roll bare
FastAPI()/grpc.server()when AppUtils extras are installed. - Hardcode uvicorn host/port — use
FastAPIConfig.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 66 lines · 526 tokens per session scan A 340f10e8a74d
using-archipy-services is a cursor rule published in the GitHub repository SyntaxArc/archipy-plugin (2 stars, last pushed 8d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 526 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other cursor rules, from other repositories
python
Cursor rule "python" from jhl-labs/vibe-project, covering python rules, style guide, naming, imports and order: stdlib → third-party → local.
typescript
TypeScript/JavaScript specific rules.
architecture
Clean Architecture rules.
cursorrules
Cursor rule "cursorrules" from jhl-labs/vibe-project, covering cursor ai rules, ⚠️ deprecation notice, this .cursorrules file format is deprecated, please migrate to the new project rules system and 📁 .cursor/rules/.mdc.
general
General coding rules for all files.
architect
Winston — System Architect agent.