AJAN AÇIKLAMASI Use when coordinating OBS notes and GitHub projects.
Multi-Agent Project Workflows
When to Use
- The user asks to check/organize "everything" - ajan, agents, OBS and projects - and take actions: follow
references/workspace-inventory.md (read-only inventory → grouped decisions → approved actions).
- Several agents must be tested, routed, or coordinated across the vault and code workspace.
- A GitHub project set is being bootstrapped from existing project notes.
- A repository needs architecture documentation an agent can start work from.
- Work risks crossing the boundary between the notes vault and the code workspace.
Use this skill when the user wants several agents tested or coordinated while keeping the OBS vault separate from real project code.
Non-negotiable workspace boundary
- Treat
<not-kasasi> as memory: research, decisions, role cards, summaries, and result notes.
- Treat
<projeler-koku> as the code workspace: one GitHub repository per child directory.
- Never ask a coding agent to write code into OBS. If a prior prompt targets OBS, correct it before execution; verify the intended file is absent before continuing.
- Write to OBS only when the user explicitly requests a note update or when recording a verified workflow result.
Agent routing
- Project-owner agent (
<uzman-profil>) / GitHub project work: repository creation, clone, folder/branch management, diff, tests, commit and PR preparation; limit its working directory to <projeler-koku>.
- Claude Code: implementation, architecture, debugging, and tests inside a selected project repository.
- Gemini /
agy: current research, source comparison, visual analysis, and visual artifact generation when explicitly requested.
- Local Ollama: private/offline summarization, classification, and repeatable transformations; do not assign it current web research or complex implementation as a primary worker.
- Coordinator agent (orchestrator,
<koordinator>): decomposition, acceptance criteria, cross-agent coordination, safety checks, and final verification.
Bootstrap a GitHub project set
- Enumerate actual project directories under the OBS
Projeler folder before creating repositories. Separate project directories from standalone planning notes.
- Check
gh auth status before any GitHub write. If gh is missing, install the CLI only after the user approves. Let the user complete browser/OAuth login; never request or type passwords, tokens, or device codes in chat.
- Confirm repository visibility before creating remotes; use private repositories by default for unannounced work.
- Create one repo per confirmed project, then clone it under
<projeler-koku>/<repo-slug>.
- Place a root
AGENTS.md in the project workspace that forbids OBS code writes, secret reads, unauthorized push/merge/delete, and concurrent agent writes to the same repo. The workspace-level guide does not reach inside a child repository - see references/repo-architecture-docs.md for the per-repo doc each project additionally needs.
- Verify every remote and local path with fresh reads before claiming setup complete. Do not clone until authentication and the project list are confirmed.
Run a multi-agent capability matrix
- Give every worker a self-contained, bounded prompt covering the requested task classes: code, visual artifact, OBS note draft, planning, summarization, research, and verification.
- For safety, make OBS editing a dry-run note draft in the worker test; the parent writes the actual OBS result note after checking the output.
- Use isolated temporary workspaces for generated code and visuals; never let parallel workers write the same file.
- Record each worker's exit code, stdout, artifact paths, and verification evidence. A process exit of zero is not sufficient when the output schema or artifact is malformed.
- Mark unsupported tasks as
UNSUPPORTED rather than forcing an unsuitable model to perform them. Distinguish quota/auth/setup failures from capability failures.
- Verify visual artifacts by checking file existence, non-zero size, valid root markup, and a title/description. For direct image generation, require an actual PNG/JPG/WebP produced by the configured image tool; do not count hand-coded SVG or locally rasterized SVG as model image generation. Verify code with its stated tests. Verify structured output by stripping terminal ANSI control sequences and parsing it, not by trusting the CLI exit code.
- Save a concise matrix result to OBS only after the run is complete, and include failed or skipped workers without inventing results.
Hand a repo task to a specialist profile (and take it back)
Use for "<specialist>, build X in repo Y" - including hand-offs forwarded by another agent (cron devir). The parent owns tracking, gating and verification; the specialist only produces a working tree + report.
- Read the whole hand-off chain, not just the message that woke you. A forwarded hand-off message is often a condensed copy; the sender may keep fuller notes (an extra phase list, a scope narrowing, a reversed decision). Ask the sender to deliver every hand-off file for the task to you (or to a shared hand-off folder the user set up for this) and read them all before briefing anyone; do not browse other profiles' private directories yourself: a later note overrides an earlier one, and decisions can flip several times in one day (cloud DB → native, Docker → none). While the chain is still flipping, do only reversible setup (version-manager installs, clones, config files) and hold heavyweight installs/migrations until a note says the decision is final - otherwise you install infrastructure the next note deletes. If the sender dispatched its own worker into the same project (check step 1), treat it as the live session and verify its output exactly like your own; do not start a competing one.
- Check for live sessions on the same repo before launching:
ps aux | grep -E 'hermes.*-p <uzman-profil>' and git log --format='%h %cd %s' -5 for commits minutes old. Two ajan sessions in one repo sweep each other's files into their commits and race on Gradle/npm builds. If one is running, do not start the next - wait for it (step 3) and launch only on a clean, quiet tree.
- Prepend a coordinator addendum to an inherited brief instead of forwarding it verbatim: list the uncommitted files the specialist must not touch, pin a decision for any conditional product choice in the brief that conflicts with current code ("open cleartext if needed" vs an app that rejects http → keep current behaviour, surface the choice in the report), and restate "no
git commit". A pending user decision is not a reason to block the launch - choose the option consistent with the code and defer the rest to the report.
- Launch and wait without polling:
terminal(command="cd <repo> && hermes -p <profile> chat -q \"$(cat <brief>)\" --max-turns 150 2>&1 | tee <log>", background=true, notify=true). The terminal tool rejects nohup/& wrappers. For a session someone else started, watch its PID the same way: while kill -0 <pid>; do sleep 30; done; git status --short as a background+notify command, then end the turn.
The only durable completion signal is the report file the brief requires (docs/<task>-report.md inside the repo). A completion notify can be lost when the session spans days, and scratch-dir logs may be pruned after a day - so a quiet turn later, confirm with ps -p <pid> plus ls <repo>/docs/<report> and verify from the report + artifacts, not from a log tail that may no longer exist. Put the report path in every brief for exactly this reason.
Unattended limits go in the brief. A chat -q session has no human to approve commands, so anything that needs approval (secret/config files such as .env, deletions, installs) will be refused. Tell the worker up front: write helper scripts to files under its scratch dir so they are reviewable; do not create or edit .env/secret files (rely on envOr-style code defaults and list needed secrets in the report for the user to set); when a command is refused, stop that step, do not look for another way to run it, and report it. Never loop on a refused command.
URL deliverables (a tailscale serve demo, a preview server) need a restart recipe. Services the worker starts as children of its own tool process die with the session, and everything dies on reboot. Require the worker to detach them (ppid 1) and ship a start-services script in the report; before you hand the URL to the user again later, curl -s -o /dev/null -w '%{http_code}' it and rerun that script if it is not 200.
Prefer --query-file <brief-path> over -q "$(cat <brief>)" when the brief is multi-line or contains quotes/backticks/$ - shell-interpolating the file's content into a -q argument risks the shell mangling special characters inside it, while --query-file passes the path and lets the CLI read the file itself, sidestepping quoting entirely. Redirect stdout/stderr to separate log files (> out.log 2> err.log) rather than tee when you'll grep the output later for a clean pass/fail signal.
- Verify independently before reporting "accepted": re-run the hashes, signatures, badging and leak greps yourself (
references/delegated-build-verification.md); a specialist's "75 tests passed" is a self-report. Do not rebuild while another session is live in the repo.
- Attribute every new commit. When the tree has commits the specialist denies making, check
git reflog --date=format:'%H:%M:%S' and the commit's author/committer fields, then ask the specialists who had access to the repo. Searching other agents' conversation logs or transcripts needs the user's explicit permission. If nothing matches, report it as an unattributed commit and ask the user - never guess an author or revert.
- Report: verified items with the command that proved them, deliverable paths, the specialist's own stated limits (emulator-only, untested paths), and a numbered approval list (commit scope, key backup location, open product decisions). Keep earlier unanswered decisions in the same list so they are not lost.
- An approval for one feature is not an approval for the shared
test branch. Specialists commit onto test, which usually carries other features still awaiting their own approval; git log --oneline main..test before merging. When it holds more than the approved commit, cherry-pick only that commit: git worktree add .worktrees/<x>-main -b <x>-main main, git cherry-pick <sha>, run typecheck + the touched tests + build there, git merge --ff-only <x>-main from the main checkout, then remove the worktree and branch. Merging test wholesale ships unapproved work under a different feature's approval.
- A launchd
KeepAlive dev server does not pick up server-side code by itself. Vite hot-reloads the client, but server/ changes need a process restart: find the PID on the service port (lsof -nP -iTCP:<port> -sTCP:LISTEN -t), kill it, wait ~10 s for launchd to respawn, then re-curl the changed endpoint and compare with the expected payload. Verify on the live port, not on the specialist's test port. Browser-gated write endpoints (e.g. PUT routes that require the page's Origin plus a custom client header) reject curl by design - do not loosen the gate or forge headers from the shell; open the app in browser_exec and issue the fetch from its own origin, then confirm with a plain GET and the on-disk settings file.
Resume a paused project from where it actually stopped
When the user says "let's continue X, last time we were doing Y", the latest state is often not in OBS: it sits in hand-off notes AND in later chat that overrode it. Check both: read the hand-off notes that were sent to you or to the shared hand-off folder, then search your own conversation history for the project name and scroll the matching session to its last relevant message - a decision made in chat after the final handoff note (a different hosting choice, a platform dropped) supersedes the note. Reply with: the current decision, what was already prepared (keys, files - verify they still exist on disk), the exact step the user owes, and what you will do the moment it lands. Credentials that were printed into chat history are compromised for that purpose - plan to regenerate them at the destination.
Check for a standing feedback/backlog note before relying on live chat alone
An iterative product the user is testing across many sessions may have its own accumulating feedback or backlog note under its OBS project folder (e.g. a Feedback.md a librarian or earlier session maintains), separate from whatever the user happens to say in the current chat. Don't assume live chat asks are the complete list of open requests - at the start of a work session on such a project, check for and read that note; items can sit there unvoiced in chat until the user references it by name. When found, treat it as a real, dated worklist (not a draft to second-guess) and confirm with the user only the sequencing (what to do now vs. next), not whether the items are wanted.
Reporting
Report in Turkish, concisely, with separate labels for completed, blocked, and next actions. State exact paths and command results when requested. Do not claim automatic routing until a real end-to-end Telegram or CLI routing test has passed.
Don't default to scheduling a cron job to compile and deliver results for a single overnight/long-running dispatch unless the user asked for a recurring or scheduled delivery. A one-off background batch is better reported live when the user checks back in (or asks) - a cron adds a standing, managed artifact that then needs explicit removal, for a delivery need that may not exist. If the user says a cron wasn't needed, remove it immediately rather than leaving it paused.
Scoping batch work across a project list
When dispatching research/design/code work across every project in a list (e.g. "look at everything in OBS"), check each project's own note for actual defined content before writing its brief - a note that is only a title with empty template sections (no filled Özet/Hedef Kullanıcı/Ana Değer, an empty Ilham.canvas) is not yet a product. Dispatching a "build/design X for this" brief against emptiness pressures the worker to invent a product definition it was never authorized to decide, and that invented concept can read back as if it were a real decision. For an empty-concept project, redirect the brief to produce a clearly-labeled speculative/concept-options note instead (a few candidate directions with one-line value props, explicitly flagged as needing the user's pick) - never a committed design or implementation. Projects with real existing content (a filled overview, prior Roadmap decisions, existing code) get real research/design/code work as normal.
Document a repository so an agent can start work in it
Every repo needs a short architecture doc at its root, because a workspace-level guide is
not visible from inside a child repository. Follow
references/repo-architecture-docs.md: it covers the fixed section order, how to verify a
vault note really exists before pointing at it, and what to write for an empty repo.
Reference
Read references/workspace-inventory.md for the whole-workspace health check (command set, report shape, decision handling) and §3b for an approved bulk push/merge sweep (pre-push scan, verified pushes, ff-only merges, trial-worktree merges, live-site branches left alone), §3c for a no-approval "pull every repo to latest" sync (fetch + ff-only, detached main dir, ahead/behind report).
Read references/github-project-bootstrap.md for the concrete repo bootstrap checklist and safe permission boundary.
Read references/repo-architecture-docs.md before writing or refreshing per-repo architecture documentation.
Read references/delegated-build-verification.md to independently verify a specialist's build/APK/asset deliverable before accepting it.