intentflow-ios AGENTS.md

intentflow-ios AGENTS.md is an instructions file for Codex, OpenCode from emrecanozturk/intentflow-ios. It costs 431 tokens per session, scanned A, original, MIT.

Repository guidance for IntentFlow, a Swift architecture for iPhone and iPad apps that models features as workflows. It explains where to read first, how state changes should be organized, and how SwiftUI and UIKit fit into the design.

In plain words
What is it for?
Use it when changing IntentFlow features, manifests, reducers, asynchronous effects, navigation, or SwiftUI and UIKit adapters.
Why use it?
It helps an agent follow the project's architecture instead of putting networking, storage, timers, or user-interface work in the wrong layer.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions Codex.

Install

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.

agentmods
npx agentmods add instructions/emrecanozturk/intentflow-ios/agents-md
Clone the repo
git clone --depth 1 https://github.com/emrecanozturk/intentflow-ios

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for intentflow-ios AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/emrecanozturk/intentflow-ios/agents-md.svg)](https://agentmods.dev/instructions/emrecanozturk/intentflow-ios/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/emrecanozturk/intentflow-ios/agents-md"><img src="https://agentmods.dev/badge/instructions/emrecanozturk/intentflow-ios/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 431 This file is loaded in full into every session.
When invoked 431 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What 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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00431 $0.00431
Opus 5 $0.00216 $0.00216
Sonnet 5 $0.00086 $0.00086
Haiku 4.5 $0.00043 $0.00043

Measured 6d ago against content hash e278f60ef02e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

intentflow-ios AGENTS.md 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 6d 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.

AGENTS.md · 40 lines

What it actually says

Agent Instructions

IntentFlow is a workflow-first Swift architecture for iOS. Treat feature behavior as the source of truth, then adapt SwiftUI or UIKit to that behavior.

Read First

  • Start with .ai/agent-context.md for the compact repository map.
  • For AI-mode feature work, read the feature .intentflow.yaml manifest before Swift implementation files.
  • For architecture rationale, read docs/ai/intentflow-ai.md, docs/rationale/design-principles.md, and docs/advanced/memory-and-concurrency.md.
  • Avoid reading generated Xcode project internals unless the task is explicitly about the demo app project.

Architecture Rules

  • Update the manifest before changing AI-mode state, intent, event, effect, output, or route contracts.
  • Keep reducers pure. Reducers must not call networking, persistence, analytics, timers, UI APIs, or start Task.
  • Put async work in FlowEffectHandler and return events to the store.
  • Use EffectID and cancellation policies for long-running, repeatable, or replaceable work.
  • Model navigation as typed Route output and parent communication as typed Output.
  • Keep SwiftUI views and UIKit view controllers as adapters over projected state.
  • Add reducer/trace tests for every behavior branch you introduce.

Commands

swift test
swift run intentflow validate .intentflow/login.intentflow.yaml
swift run intentflow ai-context .intentflow/login.intentflow.yaml --tool codex
./scripts/check.sh

Token Budget

  • Prefer swift run intentflow ai-context <manifest> --tool <codex|claude|gemini|copilot> over loading the whole repository.
  • Use .ai/agent-context.md as the short map and only open files directly touched by the requested change.
  • Do not paste complete generated files into discussion unless the user asks for them.

Release Standard

A change is not ready if it only changes prose or code. It should also update the relevant manifest, tests, docs, and agent instructions when behavior or workflow changes.

Changes

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.

  1. 6d ago First seen · 40 lines · 431 tokens per session scan A e278f60ef02e

Subscribe to this mod's changes

intentflow-ios AGENTS.md is an instructions file published in the GitHub repository emrecanozturk/intentflow-ios (10 stars, last pushed 1mo ago), licensed MIT. It adds 431 tokens to every session, about $0.0022 per session on Opus 5. 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.