Skip to content

Commit c6c276b

Browse files
author
ainish-coder bot
committed
refactor: Update agent configuration and LLM documentation, introducing new rules, restructuring PRD/TODO, and removing memory.
1 parent afc64e3 commit c6c276b

File tree

7 files changed

+89
-70
lines changed

7 files changed

+89
-70
lines changed

.llms.txt/MEMORY.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

.llms.txt/PRD.md

Lines changed: 37 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,37 @@
1-
# PRD.md - Token Efficient Product Requirements & Status
2-
3-
```toon
4-
product:
5-
name: Project Name
6-
ver: 0.1.0
7-
description: Project Description
8-
9-
# Features
10-
features[5]{id,name,pri,status,dependencies}:
11-
1,Feature 1,P1,Pending,
12-
2,Feature 2,P2,Pending,
13-
```
1+
# PRD
2+
3+
## Project Overview
4+
5+
- **Name:** Project Name
6+
- **Version:** 0.1.0
7+
- **Description:** Project Description
8+
9+
## UX
10+
11+
- **CLI or GUI?** yes / no / both
12+
13+
## Tech Stack
14+
15+
Language/s
16+
17+
-
18+
19+
Library/s
20+
21+
-
22+
23+
Framework/s
24+
25+
-
26+
27+
Tool/s
28+
29+
-
30+
31+
## Short-term Goals
32+
33+
> READ `.llms.txt/TODO.md`
34+
35+
## Codebase Requirements
36+
37+
> READ `.llms.txt/RULES.md`

.llms.txt/RULES.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Rules
2+
3+
## Naming & Comments
4+
5+
- Use descriptive names
6+
- Document code with comments
7+
8+
## ALWAYS
9+
10+
## NEVER
11+
12+
## IF

.llms.txt/TODO.md

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
1-
# TODO.md - Token Efficient TODO List
1+
# TODO
22

3-
```toon
4-
todo:
5-
directive: Keep tasks atomic and testable
3+
> Keep tasks atomic and testable.
64
7-
backlog[3]{id,task,status}:
8-
1,Initialize Project State,PENDING
9-
2,Define Architecture & Scope,PENDING
10-
3,Create Strategic Plan,PENDING
5+
## In Progress
116

12-
in_progress[0]{id,task,status}:
7+
- [ ]
138

14-
completed[0]{id,task,status}:
15-
```
9+
## Completed
10+
11+
- [ ]

AGENTS.md

Lines changed: 33 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -7,36 +7,43 @@ Output: Production-ready, minimal, tested, encrypted, PQC-compliant
77
</agent>
88

99
<context>
10-
- Request only necessary files
11-
- Summarize long sessions vs carrying full history
12-
- Verify assumptions against actual code
10+
Minimize: Read only target files; summarize history often.
11+
Verify: Confirm file state via tools before editing.
12+
Ground: Trust current file content over chat memory.
1313
</context>
1414

15+
<intake>
16+
Before proceeding:
17+
READ `.llms.txt/PRD.md`
18+
RUN `tree -a -L 2`; IF context missing; RUN `tree -a -L 3`; etc.
19+
VERIFY working tree vs git tree
20+
</intake>
21+
1522
<security>
1623
Core Principles:
17-
- **Zero Trust**: Verify every tool call; sanitize all inputs (OWASP ASI02).
18-
- **Least Privilege**: Minimal permissions; scoped credentials per session (ASI03).
19-
- **No hardcoded secrets**: Environment variables only, accessed via secure vault (ASI04).
20-
- **Sandboxing**: Code execution via WASM/Firecracker only (ASI05).
24+
Zero Trust: Verify every tool call; sanitize all inputs (OWASP ASI02).
25+
Least Privilege: Minimal permissions; scoped credentials per session (ASI03).
26+
No hardcoded secrets: Environment variables only, accessed via secure vault (ASI04).
27+
Sandboxing: Code execution via WASM/Firecracker only (ASI05).
2128

2229
Data Protection & Encryption:
23-
- In Transit:
24-
- TLS 1.3+ with mTLS for inter-agent communication.
25-
- Hybrid PQC Key Exchange: X25519 + ML-KEM-768 (FIPS 203).
26-
- At Rest:
27-
- AES-256-GCM for databases and file storage.
28-
- Tenant-specific keys for Vector DB embeddings.
29-
- Encrypted logs with strict retention and PII redaction.
30+
In Transit:
31+
TLS 1.3+ with mTLS for inter-agent communication.
32+
Hybrid PQC Key Exchange: X25519 + ML-KEM-768 (FIPS 203).
33+
At Rest:
34+
AES-256-GCM for databases and file storage.
35+
Tenant-specific keys for Vector DB embeddings.
36+
Encrypted logs with strict retention and PII redaction.
3037

3138
Agentic Security (OWASP Agentic Top 10 2026):
32-
- ASI01 Goal Hijacking: Immutable system instructions; separate control/data planes.
33-
- ASI02 Tool Misuse: Strict schema validation (Zod/Pydantic) for all inputs.
34-
- ASI03 Identity Abuse: Independent Permission Broker; short-lived tokens.
35-
- ASI04 Information Disclosure: PII Redaction; Env var only secrets.
36-
- ASI05 Unexpected Code Execution: Sandboxed environments only (WASM/Firecracker).
37-
- ASI06 Memory Poisoning: Verify source of RAG context; cryptographic signatures.
38-
- ASI08 Cascading Failures: Circuit breakers and token budget limits.
39-
- ASI09 Repudiation: TOON-formatted immutable ledgers; remote logging.
39+
ASI01 Goal Hijacking: Immutable system instructions; separate control/data planes.
40+
ASI02 Tool Misuse: Strict schema validation (Zod/Pydantic) for all inputs.
41+
ASI03 Identity Abuse: Independent Permission Broker; short-lived tokens.
42+
ASI04 Information Disclosure: PII Redaction; Env var only secrets.
43+
ASI05 Unexpected Code Execution: Sandboxed environments only (WASM/Firecracker).
44+
ASI06 Memory Poisoning: Verify source of RAG context; cryptographic signatures.
45+
ASI08 Cascading Failures: Circuit breakers and token budget limits.
46+
ASI09 Repudiation: Structured immutable ledgers; remote logging.
4047

4148
Post-Quantum Cryptography (NIST FIPS Standards)
4249
| Purpose | Standard | Algorithm | Status (2026) |
@@ -48,9 +55,9 @@ Post-Quantum Cryptography (NIST FIPS Standards)
4855

4956
<coding>
5057
Universal Standards:
51-
- Match existing codebase style
52-
- SOLID, DRY, KISS, YAGNI
53-
- Small, focused changes over rewrites
58+
Match existing codebase style
59+
SOLID, DRY, KISS, YAGNI
60+
Small, focused changes over rewrites
5461

5562
By Language:
5663
| Language | Standards |
@@ -60,6 +67,7 @@ By Language:
6067
| TypeScript | strict mode, ESLint, Prettier |
6168
| Rust | `cargo fmt`, `cargo clippy`, `Result` over panic |
6269
| Go | `gofmt`, `go vet`, Effective Go |
70+
| C++ | `clang-format`, `clang-tidy`, C++20, RAII |
6371
</coding>
6472

6573
Git Commits: `<type>(<scope>): <description>` — feat|fix|docs|refactor|test|chore|perf|ci

RULES.md

Whitespace-only changes.

bin/ainish-coder

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -134,15 +134,6 @@ main() {
134134
# Deploy AGENTS.md
135135
deploy_agents "$target_dir"
136136

137-
# Deploy RULES.md
138-
local rules_source="${REPO_DIR}/RULES.md"
139-
if [[ -f "$rules_source" ]]; then
140-
cp "$rules_source" "$target_dir/RULES.md"
141-
echo -e "${GREEN}✓ Created RULES.md at $target_dir${RESET}"
142-
else
143-
echo -e "${BRIGHT_RED}Error: RULES.md not found at $rules_source${RESET}"
144-
fi
145-
146137
# Deploy AGENTS_CODE_SECURITY.md
147138
local code_security_source="${REPO_DIR}/AGENTS_CODE_SECURITY.md"
148139
if [[ -f "$code_security_source" ]]; then

0 commit comments

Comments
 (0)